Forge is available: build a website with AI from your RodiumAi account.

Try Forge
RodiumAi docs
API reference

Authentication

Send Authorization: Bearer rd_sk_… on every billable route. x-api-key is an exception for Anthropic-style clients.

Credentials

…
CredentialHeaderBilled to
API key rd_sk_prod_… / rd_sk_dev_…Authorization: Bearer rd_sk_…Your RODI wallet (or the key's provided-credit allotment)
API key, Anthropic stylex-api-key: rd_sk_… (only /v1/messages*, /v1/audio/*)Same as above
OIDC access token ("Sign in with RodiumAI")Authorization: Bearer <JWT>The signed-in user's FRODI allotment

Rules per route

RouteBearer key or tokenx-api-keyNo credential
POST /v1/chat/completions, /v1/responses, /v1/embeddings, /v1/images/generations, /v1/videos/generationsRequiredRejected (401)401
POST /v1/messages, /v1/messages/count_tokensAcceptedAccepted401
POST /v1/audio/transcriptions, /v1/audio/speechAcceptedAccepted401
GET /v1/models, /v1/models/{id}Optional: filters by the key's allowed modelsIgnoredPublic
GET /v1/models/codingIgnoredIgnoredPublic
GET /v1/wallet, /v1/pricingRequired (/v1/wallet needs an rd_sk_ key)Rejected (401)401
GET /v1/healthz, /v1/readyzNot neededNot neededPublic

Authentication errors

HTTPerror.codeMeaning
401invalid_api_keyMissing or malformed header, wrong prefix, unknown, revoked or expired key
401invalid_tokenOIDC token expired, badly signed or issued for another client
401insufficient_scopeOIDC token without the inference scope
403insufficient_scopeAPI key with explicit scopes that exclude this endpoint
403model_not_allowedModel outside the key's allowed models
403api_key_quota_exceededMonthly RODI quota of the key reached

Full list: API errors. Key options and OIDC: Authentication guide.