All errors return a consistent JSON body with anDocumentation Index
Fetch the complete documentation index at: https://docs.prismvideos.com/llms.txt
Use this file to discover all available pages before exploring further.
error code and a human-readable message.
Error format
Error codes
| HTTP Status | Error Code | Description |
|---|---|---|
| 400 | validation_error | The request body or parameters are invalid |
| 400 | pricing_error | No pricing available for the model configuration |
| 401 | unauthorized | The API key is missing, invalid, or expired |
| 402 | insufficient_credits | Not enough credits for the requested generation |
| 403 | forbidden | The API key does not have the required scope |
| 404 | not_found | The requested resource does not exist |
| 422 | invalid_template | The template has an invalid or incomplete configuration |
| 500 | server_error | An unexpected error occurred on the server |
| 500 | generation_error | An unexpected error occurred during generation |
Common scenarios
Missing API key
Invalid character search query
Revoked API key
A revoked key returns the same401 response as an invalid key. Create a new key if yours has been revoked.

