Skip to main content
POST
Run Model Prediction Synchronously

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 completed or failed synchronously

status
enum<string>

Final terminal status of the synchronous prediction

Available options:
success,
failed,
cancelled
Example:

"success"

message
string

Human-readable message

Example:

"Prediction completed successfully"

predictionID
string

Unique prediction identifier

Example:

"abc123-def456-ghi789"

output

Prediction output, when available

error
string

User-facing error message when the prediction failed

Example:

""

Last modified on July 27, 2026