Skip to main content
POST
Create Model Prediction

Authorizations

Authorization
string
header
required

API key passed as an Authorization Bearer token: Authorization: Bearer YOUR_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:
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 July 27, 2026