You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicfuncgetModel(owner: String, name: String) asyncthrows-> Model
79
80
```
80
81
81
82
```swift
83
+
/// Create prediction
82
84
/// - Parameters:
83
85
/// - versionId: Version id
84
86
/// - input: Input data
@@ -94,6 +96,18 @@ You can find input format for models at [the model page](https://replicate.com/s
94
96
95
97
```
96
98
99
+
```swift
100
+
/// Get prediction
101
+
/// Returns the same response as the create a prediction operation
102
+
/// status will be one of ``Prediction.Status``
103
+
/// In the case of success, output will be an object containing the output of the model. Any files will be represented as URLs. You'll need to pass the Authorization header to request them.
Copy file name to clipboardExpand all lines: Sources/replicate-kit-swift/ReplicateAPI.swift
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,24 @@ public struct ReplicateAPI{
131
131
return prediction
132
132
}
133
133
}
134
+
135
+
/// Returns the same response as the create a prediction operation
136
+
/// status will be one of ``Prediction.Status``
137
+
/// In the case of success, output will be an object containing the output of the model. Any files will be represented as URLs. You'll need to pass the Authorization header to request them.
/// Returns the same response as the create a prediction operation
175
-
/// status will be one of ``Prediction.Status``
176
-
/// In the case of success, output will be an object containing the output of the model. Any files will be represented as URLs. You'll need to pass the Authorization header to request them.
/// Calling this operation starts a new prediction for the version and inputs you provide. As models can take several seconds or more to run, the output will not be available immediately. To get the final result of the prediction you should either provide a webhook URL for us to call when the results are ready, or poll the get a prediction endpoint until it has one of the terminated statuses.
0 commit comments