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

Try Forge
RodiumAi docs
API reference

Overview

OpenAI clients use api.rodiumai.io/v1. Anthropic clients use api.rodiumai.io (SDK adds /v1/messages). Same rd_sk_… keys and RODI billing.

OpenAI-compatible base URL

https://api.rodiumai.io/v1

Anthropic SDK base URL

https://api.rodiumai.io

Conventions

  • Authentication: Authorization: Bearer rd_sk_… on billable routes; x-api-key only on /v1/messages and /v1/audio/*. See Authentication.
  • Bodies: JSON (UTF-8) except /v1/audio/transcriptions (multipart). Every request body is capped at 10 MiB (413 payload_too_large).
  • Errors: {"error": {"message", "type", "param", "code"}}, catalogued in Errors.
  • Long calls: providers may take minutes (reasoning, video). Use generous client timeouts and stream text where possible.
  • Maintenance: during a maintenance window /v1 answers 503 with code: maintenance_active.

X-Request-Id

Every response carries X-Request-Id. Send your own value (1 to 64 characters: letters, digits, -, _, .) to trace a call end to end; otherwise the gateway generates a req_… id. Unexpected 500 errors repeat it in error.request_id. Quote it when contacting support.

…

Health probes

GET /v1/healthz (liveness) and GET /v1/readyz (readiness: databases and cache reachable) need no credential. Both answer only a status field: readyz returns 200 {"status": "ok"}, or 503 {"status": "degraded"} when a dependency is down.

…