Light Logo
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?

optional signal: AbortSignal

Optional AbortSignal to cancel the call.

Inherited from

CallOptions.signal


validateInput?

optional validateInput: boolean

Enable input validation against the schema before processing.


wait?

optional wait: boolean | Partial<CreatePredictionWaitOptions>

Options for waiting for the prediction to finish.


webhook?

optional webhook: null | Webhook

Details about the webhook to post prediction updates to.