Get prediction details
Authorization
bearerAuth AuthorizationBearer <token>
Authenticate using an API Key:
Authorization: Bearer rk_live_your-api-keyIn: header
Path Parameters
id*string
Prediction ID
Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://api.routeany.com/v1/predictions/pred_01HXYZ..."{
"id": "pred_01HXYZ...",
"model": "google/veo-3.1",
"capability": "text-to-video",
"input": {},
"logs": "string",
"output": "string",
"data_removed": true,
"error": {
"code": "string",
"message": "string"
},
"source": "api",
"status": "starting",
"metrics": {
"predict_time": 0,
"total_time": 0
},
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z",
"urls": {
"cancel": "http://example.com",
"get": "http://example.com",
"web": "http://example.com"
}
}{
"type": "https://api.routeany.com/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing API key",
"code": "AUTH_INVALID_TOKEN"
}{
"type": "https://api.routeany.com/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "The requested resource was not found",
"code": "RESOURCE_NOT_FOUND"
}Create a prediction
Submit a video/image generation request. The task will be processed asynchronously. Results can be obtained via polling or webhook. **Supported capabilities**: - `text-to-video`: Generate video from text (all models) - `image-to-video`: Generate video from image (some models) - `reference-to-video`: Generate video guided by reference images (some models) **Note**: Different models support different parameters. Unsupported parameters are silently ignored.
List predictions
Get a list of predictions for the current user. Supports pagination and status filtering.