Tarseek

Tarseek API

Errors

Every public chat error uses one stable envelope:

{
  "error": {
    "message": "Human-readable explanation",
    "type": "authentication_error",
    "code": "invalid_api_key",
    "param": null,
    "retryable": false
  },
  "request_id": "req_..."
}

x-request-id matches the body request_id. Send an optional printable-ASCII X-Client-Request-Id (maximum 512 characters) to correlate the call with your own logs. Retryable provider throttling includes Retry-After and error.retry_after_seconds when a delay is known.

HTTPCodeTypeRetryCauseAction
400validation_errorinvalid_request_errorNoInvalid JSON or request schemaFix the request
401invalid_api_keyauthentication_errorNoMissing, unknown, or disabled keyUse an active project key
402insufficient_creditsbilling_errorNoPrepaid balance too lowAdd credits
404model_not_foundinvalid_request_errorNoUnknown or unlisted model IDUse the catalog
400unsupported_parameterinvalid_request_errorNoParameter not supported by this modelRemove the field
400context_length_exceededinvalid_request_errorNoPrompt longer than contextShorten input
429rate_limit_exceededrate_limit_errorYesProject or key RPM/TPM/concurrency limitBackoff using Retry-After
429provider_rate_limitrate_limit_errorYesUpstream 429 after failover exhaustedRetry later or another model
503model_unavailableservice_unavailable_errorYesNo healthy deploymentRetry or switch model
502provider_errorapi_errorYesUpstream failure after failoverRetry with backoff
502provider_authentication_errorprovider_errorYesTarseek’s provider credential failedReport to support; try another model
504provider_timeouttimeout_errorYesUpstream deadlineRetry; reduce max output
500internal_errorinternal_errorYesUnexpected Tarseek errorRetry; contact support with request_id