AI Models Prediction
Get Model Prediction
Retrieve the status and results of a model prediction by its ID.
Prediction statuses are starting or processing while work is in flight. Terminal statuses are success, failed, and cancelled.
get/v1/prediction/{id}
Request
- Base URL: https://api.eachlabs.ai
- URL: https://api.eachlabs.ai/v1/prediction/{id}
- Auth: HTTP bearer
Path parameters
idstring required
Prediction ID
Response
Prediction retrieved successfully
Example response
{
"id": "abc123-def456-ghi789",
"input": {
"prompt": "A beautiful sunset over the ocean with vibrant colors",
"aspect_ratio": "16:9"
},
"status": "success",
"metrics": {
"predict_time": 12.5,
"cost": 0.05,
"tier": "cpu",
"billed_seconds": 191,
"output_gb": 0.0024
},
"urls": {
"cancel": "https://api.eachlabs.ai/v1/prediction/abc123-def456-ghi789/cancel",
"get": "https://api.eachlabs.ai/v1/prediction/abc123-def456-ghi789"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.