API documentation

Rocket Relay is compatible with OpenAI-style client integrations. Point your SDK to the relay endpoint, authenticate with a Rocket Relay API key, and route traffic across models with one integration surface.

Quick start

Keep your existing client SDK and replace the base URL with Rocket Relay.

Standard balance billing

https://relay.rcapalpha.com/v1

BYOK routing (use credentials from your own pool)

https://relay.rcapalpha.com/byok/v1

Point any OpenAI-compatible client at /byok/v1. The upstream provider is inferred from the requested model, just like the shared pool — call a Claude model and your Anthropic key is used; call a GPT model and your OpenAI key is used.

Code examples
curl https://relay.rcapalpha.com/v1/chat/completions \
  -H "Authorization: Bearer sk-rr-YOUR-KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "messages": [{"role": "user", "content": "Summarize our changelog"}]
  }'
Image generation and edits

Use gpt-image-2 on the Images API endpoints. Chat and text-generation requests should continue to use text models such as gpt-5.5 orclaude-sonnet-4-6.

Generate an image

curl https://relay.rcapalpha.com/v1/images/generations \
  -H "Authorization: Bearer sk-rr-YOUR-KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A clean product render of a transparent glass teapot on a walnut table",
    "size": "1024x1024",
    "response_format": "b64_json"
  }'

Edit an image

curl https://relay.rcapalpha.com/v1/images/edits \
  -H "Authorization: Bearer sk-rr-YOUR-KEY" \
  -F model="gpt-image-2" \
  -F image="@input.png" \
  -F prompt="Replace the background with a bright studio setup" \
  -F response_format="b64_json"

GPT Image 2 is billed from image-token usage. Official list pricing is $8 input, $2 cached input, and $30 output per 1M image tokens; Rocket Relay shows the configured sell-side price in the model catalog below.

BYOK base URLs

If your tool only supports an OpenAI-style base URL and API key, switch the base URL to a BYOK endpoint instead of adding custom headers.

Use caseBase URL
Standard shared upstream billinghttps://relay.rcapalpha.com/v1
BYOK (use credentials from your own pool)https://relay.rcapalpha.com/byok/v1

`/byok/v1` is the single BYOK entry point. The upstream provider is chosen from the model name (e.g. `gpt-5.5` → your OpenAI key, `claude-sonnet-4-6` → your Anthropic key). Requests that map to a provider you have not stored a credential for return an error — they are never served from the shared account pool.

Endpoints
MethodEndpointDescription
POST/v1/chat/completionsOpenAI-compatible chat completions
POST/v1/messagesClaude Messages API compatibility
POST/v1/embeddingsEmbeddings and vector-ready workflows
POST/v1/images/generationsGPT Image 2 image generation
POST/v1/images/editsGPT Image 2 image edits with multipart or JSON image inputs
GET/v1/modelsAvailable models exposed by the relay
ANY/byok/v1/...Same OpenAI-compatible endpoints, but forced through your stored BYOK credential pool (provider chosen from the requested model)
Rate limits
TierRPMTPM
Starter60100,000
Professional300500,000
Enterprise1,0002,000,000

Response headers include `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset`.

Supported models and sell-side pricing

Loading model catalog...

Rocket Relay helps engineering teams unify AI model access, billing, and BYOK routing behind one enterprise AI API gateway for official upstream models and private request operations.