Skip to main content
POST
Create Model Prediction

Authorizations

Authorization
string
header
required

API key passed as Authorization: Bearer <api_key>

Body

application/json
model
string
required

Model slug or identifier

Example:

"flux-1-1-pro"

input
object
required

Input parameters for the prediction

Example:
fallback_selector
string

Optional opt-in to an enabled, saved fallback configuration for this organization and primary model. Use the configuration's slug, not a fallback model slug or ID. Set this at the top level of the request, not inside input. Saving a configuration alone does not enable fallback for a request: omitting this field runs only the primary model. Use 1-50 lowercase letters and digits separated by single hyphens.

Required string length: 1 - 50
Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
Example:

"quality-recovery"

version
string
deprecated

Deprecated. This field is ignored. Kept for backwards compatibility.

Example:

"0.0.1"

webhook_url
string<uri>

Optional webhook URL to receive prediction result asynchronously

Example:

"https://your-app.com/webhook"

webhook_secret
string

Optional secret used to sign webhook requests

Example:

"your-secret-key"

Response

Prediction created successfully

status
string

Status of the prediction creation request

Example:

"success"

message
string

Human-readable message about the prediction creation

Example:

"Prediction created successfully"

predictionID
string

Unique prediction identifier

Example:

"abc123-def456-ghi789"

Last modified on September 30, 2026