Skip to content
SETU by SUPREME AI

Basics

Errors

Status codes, error codes and what to do about each.

Error body

Errors are JSON. Chat, audio and model endpoints use the OpenAI shape, { "error": { "message", "type", "code", "param" } }. Tool and connection endpoints return { "error", "type", "code", "requestId" }. Quote the requestId when you contact support.

Codes

StatusCodeMeaning
400invalid_request_errorA field is missing or invalid; param names it.
400idempotency_key_requiredPOST /v1/executions needs an Idempotency-Key header.
401invalid_api_keyThe key is missing, wrong or revoked.
402insufficient_creditsNot enough credits in your SUPREME AI account.
403insufficient_scopeThe key lacks the scope this endpoint needs.
403model_not_availableThe model needs a higher plan.
404model_not_foundUnknown model id. See GET /v1/models.
428connect_requiredYour user has not connected the app yet. Send a connect link.
429rate_limit_exceededWait for Retry-After, then retry.
502upstream_errorThe model provider failed. Retry later.
503spend_cap_pausedPaid calls are paused: the platform’s monthly spending limit was reached. Buying credits will not help.
503media_disabledImage generation is switched off.

Not errors

  • 202 with approval_required: a write action is waiting for approval.