Quickly identify and resolve your technical incidents. This section lists the AlphaEdge API error codes, their causes and the corresponding fixes.
Error structure
Every error returns a structured JSON body with the error family (type), the precise cause (code), the offending field if any (param) and a readable message:
{
"error": {
"type": "insufficient_quota",
"code": "credit_balance_exhausted",
"param": null,
"message": "Solde insuffisant. Rechargez votre portefeuille sur le Dashboard."
},
"request_id": "9f3c…"
}
X-Request-ID— unique identifier present on every response (auto-generated or an echo of the value sent by the client). Send it to support to help correlate on the server side.Retry-After— present on 429, 502, 503 and 504 responses. Gives the recommended wait time (in seconds) before a retry. Respect this value on the client side (backoff).
Error messages emitted by the gateway are in French. A few default 404 / 405 messages ("Not Found", "Method Not Allowed") remain in English — this is the standard FastAPI fallback.
For billing and quota errors, retrying does not restore access: update your balance or limits before sending another request.
List of error codes
Authentication
— authentication_error · 401
expired_api_key — Expired API key
Cause : The key’s expiration date has passed.
Solution : Create a new API key or remove its expiration date.
invalid_api_key — Invalid API key
Cause : The key provided is incorrect, malformed or unknown.
Solution : Check the key (format sk_ai_...) and make sure no space was added.
ip_not_authorized — IP not authorized
Cause : The calling IP is not in the project’s allowlist.
Solution : Call from an authorized IP or update the IP list.
missing_api_key — Missing API key
Cause : No API key was provided in the request.
Solution : Add the header X-API-Key: YOUR_KEY or Authorization: Bearer YOUR_KEY.
not_in_organization — Not in an organization
Cause : The account is not attached to any organization.
Solution : Contact us or ask an organization manager for an invitation.
revoked_api_key — Revoked API key
Cause : The key was revoked from the Dashboard.
Solution : Create a new API key in your dashboard.
Authorization
— permission_error · 403
admin_secret_invalid — Invalid admin secret
Cause : Internal call without the expected administration secret.
Solution : Internal error (gateway synchronization) — check the secrets configuration.
context_mismatch — Inconsistent context
Cause : The key does not belong to the current organization/workspace.
Solution : Select the organization and workspace matching the key.
host_not_allowed — Domain not allowed
Cause : Call made by raw IP, wrong domain, or internal route.
Solution : Always call the API through the official public domain name.
role_insufficient — Insufficient role
Cause : Attempt to assign a role that is too high.
Solution : Choose a role lower than your own.
scope_denied — Missing permission
Cause : The key’s scopes do not cover the requested operation.
Solution : Change the key’s permissions or use an authorized key.
Field concerned : see error.param.
Bad request
— invalid_request_error · 400 / 405 / 413 / 422
invalid_content_type — Invalid Content-Type
Cause : The Content-Type or the multipart boundary is incorrect.
Solution : For a multipart request, let the client generate the boundary.
invalid_json — Invalid JSON
Cause : The request body is not valid JSON.
Solution : Check the JSON syntax and the Content-Type: application/json.
invalid_option — Invalid option
Cause : A value is not among the allowed values.
Solution : Correct the indicated value according to the documentation.
Field concerned : see error.param.
missing_parameter — Missing parameter
Cause : A required parameter was not provided.
Solution : Add the parameter named in the message.
Field concerned : see error.param.
method_not_allowed — Method not allowed
Cause : The HTTP method used is not supported by the route.
Solution : Check the response’s Allow header for the accepted methods.
file_too_large — File too large
Cause : The file sent exceeds the maximum allowed size.
Solution : Reduce the file size or split it.
Field concerned : see error.param.
payload_too_large — Payload too large
Cause : The payload exceeds the maximum accepted size.
Solution : Reduce the size of the request or the result.
invalid_boolean — Invalid boolean
Cause : A boolean value is not among the accepted values.
Solution : Use 1/0, true/false, yes/no or on/off.
Field concerned : see error.param.
invalid_file — Invalid file
Cause : The file is corrupted or in an unsupported format.
Solution : Provide a file in a supported, readable format.
Field concerned : see error.param.
invalid_parameter — Invalid parameter
Cause : A parameter is present but invalid.
Solution : Correct the value of the indicated parameter.
Field concerned : see error.param.
missing_file — Missing file
Cause : The required file (audio or image) is missing from the multipart body.
Solution : Add the file using the exact expected field name.
Field concerned : see error.param.
Resource not found
— not_found_error · 404
entity_not_found — Item not found
Cause : The requested resource does not exist.
Solution : Check the resource identifier.
job_not_found — Job not found
Cause : The job identifier (transcription/OCR) is unknown.
Solution : Check the job identifier.
Field concerned : see error.param.
model_not_found — Model not found
Cause : The model slug is unknown or the model is inactive.
Solution : Check the slug using the GET /models catalog.
Field concerned : see error.param.
route_not_found — Route not found
Cause : The requested URL does not exist.
Solution : Check the method, the path and the URL parameters.
Conflict
— conflict_error · 409
resource_conflict — Conflict
(retryable)
Cause : The resource was modified in the meantime (concurrent update).
Solution : Reload the resource, then retry the operation.
Credits and limits
— insufficient_quota · 402 / 429
account_spend_limit_exceeded — Account limit reached
Cause : The account’s monthly spending limit has been reached.
Solution : Raise or remove the limit in the account settings.
credit_balance_exhausted — Insufficient balance
Cause : The account balance does not cover the estimated cost of the request.
Solution : Top up your account from the dashboard.
key_spend_limit_exceeded — Key limit reached
Cause : The API key’s monthly spending limit has been reached.
Solution : Raise or remove the key’s limit.
trial_quota_exhausted — Free trial finished
Cause : The free trial quota is exhausted for this model.
Solution : Create an API key and top up your account to continue.
Rate limit
— rate_limit_error · 429
rate_limit_reached — Too many requests
(retryable)
Cause : Too many requests sent in a short period.
Solution : Honor the Retry-After header and space out your requests.
slow_down — Slow down
(retryable)
Cause : The request rate increased faster than the service can absorb.
Solution : Reduce the rate, then increase it gradually.
Service unavailable
— service_unavailable_error · 502 / 503 / 504
bad_gateway — Upstream error
(retryable)
Cause : The upstream service (ASR/OCR) returned an error that could not be translated.
Solution : Retry; honor Retry-After. Contact support if the problem persists.
upstream_upload_failed — Upstream upload failed
(retryable)
Cause : The upload to the gateway failed.
Solution : Retry after a short delay.
gateway_not_configured — Gateway not configured
Cause : The gateway URL is not configured.
Solution : Internal/configuration error — contact support.
server_is_overloaded — Model overloaded
(retryable)
Cause : The requested model does not have enough capacity at the moment.
Solution : Honor Retry-After, then retry.
Field concerned : see error.param.
service_unavailable — Service unavailable
(retryable)
Cause : Starting up, overload or occasional maintenance.
Solution : Honor Retry-After and retry with exponential backoff.
staging_disabled — Staging disabled
Cause : Staging mode (JWT) is disabled on this server.
Solution : Retry later or use standard mode.
trial_unavailable — Trial unavailable
(retryable)
Cause : The free trial is not available (server configuration).
Solution : Retry later or create an API key.
upstream_timeout — Upstream timeout
(retryable)
Cause : The gateway could not reach an upstream service in time.
Solution : Retry after Retry-After.
Internal error
— internal_server_error · 500
internal_error — Internal error
(retryable)
Cause : The server hit an unhandled problem. On pipeline routes, the error is emitted with the pipeline_error family.
Solution : Retry after a short delay and send the request_id to support.
persistence_error — Save error
(retryable)
Cause : A create/update operation failed.
Solution : Retry; contact support if the problem persists.
token_generation_failed — Token failure
(retryable)
Cause : Token (JWT) generation failed.
Solution : Retry; contact support if the problem persists.
webhook_not_configured — Webhook not configured
Cause : The expected webhook is not configured on the server side.
Solution : Internal error — contact support.
Invalid pipeline
— invalid_pipeline · 422
hash_mismatch — Hash mismatch
Cause : The provided pipeline_hash differs from the fingerprint computed by the platform.
Solution : Recompute the hash on the canonical form of the graph (see "Graph format"), or omit the field.
invalid_pipeline — Invalid pipeline
Cause : The submitted graph does not follow the validation rules. Details are in error.errors[] (code, node_id, port, message).
Solution : Fix the graph according to error.errors[]; test it without a document with POST /pipelines/{kind}/validate.
limit_exceeded — Limit exceeded
Cause : Number of nodes (40), links (80), graph size (64 KiB), pages (100) or execution time (3600 s) exceeded. Depending on the case, error.type is invalid_pipeline or pipeline_error.
Solution : Reduce the graph or the document. The effective limits are in GET /pipelines/capabilities (limits field).
Pipeline execution
— pipeline_error · 402 / 422 / 502 / 503 / 504
quota_exceeded — Quota reached
Cause : The quota associated with pipeline execution has been reached.
Solution : Check your balance and spending limits in the Dashboard before retrying.
invalid_document — Unsupported document
Cause : The file has a rejected format (text or office file) or is unreadable.
Solution : Send a PNG or JPEG image, or a PDF.
password_required — Password required
Cause : The PDF is protected and the password is missing or incorrect.
Solution : Send the password in the pdf_password field.
diarization_failed — Diarization failure
(retryable)
Cause : The diarization block (speaker separation) failed.
Solution : Retry; if the error persists, send the request_id to support.
layout_failed — Layout failure
(retryable)
Cause : The layout block failed on the document.
Solution : Retry; if the error persists, send the request_id to support.
model_unavailable — Model unavailable
(retryable)
Cause : A model of the pipeline or the AI server is not responding.
Solution : Retry after the delay given by Retry-After. GET /pipelines/capabilities shows what is available.
model_timeout — Timeout
(retryable)
Cause : A model took too long to respond.
Solution : Retry with a shorter document or a lighter graph (avoid layout_word in front of an OCR model).
Best practices
To avoid errors and improve your application's robustness:
- Error handling : Catch all 4xx and 5xx codes and read
error.codeto identify the precise cause (rather than the HTTP status alone). - Retry logic : Only retry errors marked as retryable (429 / 502 / 503 / 504) and honor the
Retry-After. - Validation : Validate your parameters before sending to avoid
invalid_parameter. - Traceability : Keep the header
X-Request-IDreturned by every response. - Monitoring : Monitor your balance regularly to avoid
credit_balance_exhausted.