Errors
Errors use one shape.Common codes
Retrying requests
Retry transient429, 502, 503, and 504 responses with exponential backoff.
For billable creation endpoints, always include an Idempotency-Key header before retrying.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Keyframe API is in beta. Schemas, limits, and pricing may change before public launch.
Understand API error responses and retry behavior.
{
"error": {
"code": "invalid_request",
"message": "duration_seconds must be between 5 and 120.",
"request_id": "req_abc123"
}
}
| Code | Meaning |
|---|---|
invalid_request | The request body, parameters, or uploaded file are invalid. |
authentication_failed | The API key is missing, invalid, or expired. |
permission_denied | The key does not have access to the requested resource. |
not_found | The requested resource does not exist. |
rate_limited | The request exceeded the current rate limit. |
provider_unavailable | A generation provider is temporarily unavailable. |
internal_error | An unexpected error occurred. |
429, 502, 503, and 504 responses with exponential backoff.
For billable creation endpoints, always include an Idempotency-Key header before retrying.