Skip to main content

Normalized error codes

ModelRoute maps all provider-specific errors into 12 deterministic error codes. Regardless of which provider executes your request, you always receive the same error taxonomy.

Detailed guidance

INPUT_VALIDATION_ERROR

Action: Fix the input based on the details array and resubmit.

CONTENT_MODERATION_REJECTED

Action: Review and modify your input content. This error is deterministic — the same input will always be rejected.

FILE_NOT_FOUND

Action: Verify the file reference is correct. If the upload was incomplete, re-upload and use the new file reference.

FILE_FORMAT_UNSUPPORTED

Action: Convert the file to a supported format. Check the model’s documentation for accepted file types.

INSUFFICIENT_BALANCE

Action: Top up your balance at app.modelroute.ai. Consider enabling auto-topup to prevent interruptions.

RATE_LIMITED

Action: Check the X-RateLimit-Reset response header for the reset timestamp. Implement exponential backoff.

MODEL_OVERLOADED

Action: The model’s providers are temporarily at capacity. Retry with exponential backoff. ModelRoute may automatically route to an alternative provider.

MODEL_UNAVAILABLE

Action: All providers for this model are temporarily down. Retry after a short delay.

GENERATION_TIMEOUT

Action: The provider took too long. Retry the request. For consistently slow models, use async executions.

GENERATION_FAILED

Action: The provider encountered an error during generation. Retry — ModelRoute may route to a different provider.

SERVICE_UNAVAILABLE

Action: The ModelRoute platform is experiencing issues. Check status.modelroute.ai and retry.

INTERNAL_ERROR

Action: An unexpected error on our end. Contact support@modelroute.ai with the request_id from the error response.