Run Model Prediction Synchronously
Create a prediction and wait for the result. This compatibility endpoint is only supported for models with synchronous execution enabled; unsupported models return a bad request error.
Authorizations
API key for authentication
Body
Model slug or identifier
"flux-1-1-pro"
Input parameters for the prediction
{
"prompt": "A beautiful sunset over the ocean with vibrant colors",
"aspect_ratio": "16:9"
}Deprecated. This field is ignored. Kept for backwards compatibility.
"0.0.1"
Optional webhook URL to receive prediction result asynchronously
"https://your-app.com/webhook"
Optional secret used to sign webhook requests
"your-secret-key"
Response
Prediction completed or failed synchronously
Final terminal status of the synchronous prediction
success, failed, cancelled "success"
Human-readable message
"Prediction completed successfully"
Unique prediction identifier
"abc123-def456-ghi789"
Prediction output, when available
User-facing error message when the prediction failed
""