api_key_invalid
Invalid API key. This API key is not valid. It may have been revoked or mistyped.
| HTTP status | 401 |
| Type | authentication_error |
| Code | api_key_invalid |
| Can retrying help? | No. The same request gets the same answer until you change it or fix the cause. |
| Charged? | No. This refusal is free. |
What to do
Section titled “What to do”Check the key, or create a new one in Account → Developers.
Example
Section titled “Example”{ "error": { "type": "authentication_error", "code": "api_key_invalid", "message": "This API key is not valid. It may have been revoked or mistyped.", "param": null, "doc_url": "https://docs.halationlab.ai/errors/api-key-invalid/", "request_id": "req_01JD3Y5RJ6M3XW6J8K2N4P7Q9T" }}Returned by
Section titled “Returned by”GET /v1/voices: List voicesPOST /v1/quotes: Get a quotePOST /v1/generations: Start a generationGET /v1/generations: List generationsGET /v1/generations/{id}: Get a generationPOST /v1/generations/{id}/cancel: Cancel a generationGET /v1/projects: List projectsPOST /v1/projects: Create a projectGET /v1/projects/{id}: Get a projectPATCH /v1/projects/{id}: Update a projectPOST /v1/projects/{id}/archive: Archive a projectGET /v1/assets: List assetsPOST /v1/assets: Import a fileGET /v1/assets/{id}: Get an assetDELETE /v1/assets/{id}: Delete an assetPOST /v1/assets/{id}/transform: Transform an assetPOST /v1/uploads: Start an uploadGET /v1/uploads/{id}: Get an uploadPOST /v1/uploads/{id}/complete: Complete an uploadGET /v1/account: Get the accountGET /v1/webhook_endpoints: List webhook endpointsPOST /v1/webhook_endpoints: Create a webhook endpointDELETE /v1/webhook_endpoints/{id}: Delete a webhook endpointGET /v1/events: List events
See Errors for the error shape and how to handle errors in general, and Billing outcomes for what every outcome costs.