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.
Documentation Index
Fetch the complete documentation index at: https://docs.eachlabs.ai/llms.txt
Use this file to discover all available pages before exploring further.
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 status of the synchronous prediction
"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
""