Connect your tools

Create an API key in your console, then choose the client you use. Keep keys private and use a different key for each device.

Claude Code

Set these environment variables in your local tool configuration. Use your Deep X Route key as the authentication token.

ANTHROPIC_BASE_URL=https://api.deepxroute.com
ANTHROPIC_AUTH_TOKEN=<your Deep X Route API key>
ANTHROPIC_MODEL=dxr-coder-pro
ANTHROPIC_DEFAULT_SONNET_MODEL=dxr-coder-pro
ANTHROPIC_DEFAULT_OPUS_MODEL=dxr-coder-pro
ANTHROPIC_DEFAULT_HAIKU_MODEL=dxr-coder-fast

Remove a conflicting ANTHROPIC_API_KEY override from that configuration. Restart Claude Code after updating the environment.

Codex

Set DEEPXROUTE_API_KEY securely in your environment, then add this provider to your Codex configuration. Back up existing settings before editing them.

model = "dxr-coder-pro"
model_provider = "deepxroute"

[model_providers.deepxroute]
name = "Deep X Route"
base_url = "https://api.deepxroute.com/v1"
env_key = "DEEPXROUTE_API_KEY"
wire_api = "responses"

Compatible SDKs

Use https://api.deepxroute.com/v1 as your base URL and your Deep X Route key for bearer authentication. Choose an available model from the console’s price list.

Text, streaming and client-executed function calls are supported. Image and video generation use the separate media endpoints below. Audio, image inputs to chat, background responses and server-hosted tools are not supported.

Image & video API

Use the same bearer key with /v1/media/catalog to check activation and prices. Submit to /v1/media/jobs, then poll your jobs and download the completed asset within seven days.

POST https://api.deepxroute.com/v1/media/jobs
Authorization: Bearer <your API key>
Content-Type: application/json

{
  "idempotencyKey": "<new UUID for this generation>",
  "model": "uhub-lume-base",
  "size": "1024*1024",
  "prompt": "A lighthouse at dawn"
}

GET /v1/media/jobs?page=1
GET /v1/media/jobs/<job-id>/asset

Reuse the same submission UUID if a connection fails; changing the content requires a new UUID. A job under review holds credit until checked. For a five-second video, use uhub-reel-cine with size 1080x1920. See Models for currently offered variants and pricing.

Setup CLI

Our CLI package is being prepared for publication. Use the manual settings above for now. The unrelated npm package named deepx is not this service’s CLI.