AI Models Prediction
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.
post/v1/prediction/run
Request
- Base URL: https://api.eachlabs.ai
- URL: https://api.eachlabs.ai/v1/prediction/run
- Auth: HTTP bearer
Request body
Example request
{
"model": "flux-1-1-pro",
"fallback_selector": "quality-recovery",
"version": "0.0.1",
"input": {
"prompt": "A beautiful sunset over the ocean with vibrant colors",
"aspect_ratio": "16:9"
},
"webhook_url": "https://your-app.com/webhook",
"webhook_secret": "your-secret-key"
}Response
Prediction completed or failed synchronously
Example response
{
"status": "success",
"message": "Prediction completed successfully",
"predictionID": "abc123-def456-ghi789"
}Changes
No recorded changes to this operation across all 1 revision of this API.