JavaScript SDK (v0.56.0)Reference
CreatePredictionParams
Prediction creation parameters.
Interface: CreatePredictionParams
Prediction creation parameters.
Extends
Properties
input
input:
Record<string,JsonValueWithFile>
Input data provided for the prediction.
model
model:
string
The model reference in either owner/name or owner/name:version-number format (for example: deepseek-ai/deepseek-r1 or deepseek-ai/deepseek-r1:1).
signal?
optionalsignal:AbortSignal
Optional AbortSignal to cancel the call.
Inherited from
validateInput?
optionalvalidateInput:boolean
Enable input validation against the schema before processing.
wait?
optionalwait:boolean|Partial<CreatePredictionWaitOptions>
Options for waiting for the prediction to finish.
webhook?
optionalwebhook:null|Webhook
Details about the webhook to post prediction updates to.