Documentation

List predictions

GET
/v1/predictions

Authorization

bearerAuth
AuthorizationBearer <token>

Authenticate using an API Key:

Authorization: Bearer rk_live_your-api-key

In: header

Query Parameters

status?string

Filter by status

Value in"starting" | "processing" | "succeeded" | "failed" | "canceled"
limit?integer

Number of results (default 20, max 100)

Default20
Range1 <= value <= 100
offset?integer

Offset for pagination

Default0
Range0 <= value

Response Body

application/json

application/problem+json

application/problem+json

curl -X GET "https://api.routeany.com/v1/predictions"
{
  "results": [
    {
      "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"
      }
    }
  ],
  "next": "string",
  "previous": "string",
  "total_count": 0
}
{
  "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/rate-limit",
  "title": "Rate Limit Exceeded",
  "status": 429,
  "detail": "You have exceeded the rate limit. Please retry after 60 seconds.",
  "code": "RATE_LIMIT_EXCEEDED"
}