Updated 2026-11-28
What changes
| Setting | OpenRouter | Latentide |
|---|---|---|
| Base URL (OpenAI SDKs) | https://openrouter.ai/api/v1 | https://api.latentide.com/v1 |
| Base URL (Anthropic SDKs, Claude Code) | — | https://api.latentide.com (no /v1) |
| API key | OpenRouter key | Latentide key, created in the console |
| Model IDs | anthropic/claude-opus-5.5 | Same ID accepted for the models below, or claude-opus-5-5 |
| Claude protocol | Chat Completions | Anthropic Messages only |
| Billing | Prepaid credits | Prepaid USD balance, pay as you go |
1. Create a key
Sign up, create an API key in the console and add balance. The full key is shown once.
2. GPT, Gemini, Grok: change base URL and key
from openai import OpenAI
client = OpenAI(base_url="https://api.latentide.com/v1", api_key="<YOUR_LATENTIDE_KEY>")
resp = client.chat.completions.create(
model="openai/gpt-6.2-sol", # or "gpt-6.2-sol"
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
Models available over Chat Completions: deepseek-v4.1-flash, gpt-6-astra, gpt-6-luna, gpt-6-sol, grok-4.3, grok-4.5, grok-4.6, grok-4.7, gpt-6.1-sol, gpt-6.2-astra, gpt-6.2-sol, gpt-6.1-terra, gemini-4-neon, gemini-4-argon, gemini-4-carbon, gemini-3.8-flash, gemini-4-hydrogen. Full list: /models.
3. Claude: use the Anthropic Messages API
from anthropic import Anthropic
client = Anthropic(base_url="https://api.latentide.com", api_key="<YOUR_LATENTIDE_KEY>")
msg = client.messages.create(
model="anthropic/claude-sonnet-5.5", # or "claude-sonnet-5-5"
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(msg.content[0].text)
A Claude model requested over Chat Completions or Responses returns 403 client_not_supported and is not billed.
4. Coding tools
- Claude Code: set
ANTHROPIC_BASE_URL=https://api.latentide.comand your key. Claude Code setup. - Cline, Roo Code, Kilo Code: choose the Anthropic provider and a custom base URL for Claude; the OpenAI Compatible provider for GPT, Gemini and Grok. Cline / Roo Code / Kilo Code setup.
- Codex: Responses protocol, so GPT models only. See the buyer’s guide for
config.toml.
Model ID mapping
These OpenRouter IDs (as listed by OpenRouter’s public models endpoint on 2026-11-28) are accepted as-is. Matching is case-insensitive; prices are USD per 1M tokens, input / output, at build time.
| OpenRouter ID | Latentide ID | Protocol | Input / output |
|---|---|---|---|
anthropic/claude-opus-5.5 | claude-opus-5-5 | Anthropic Messages only | $1.61 / $8.05 |
anthropic/claude-opus-5 | claude-opus-5 | Anthropic Messages only | $2.01 / $10.06 |
anthropic/claude-opus-4.8 | claude-opus-4-8 | Anthropic Messages only | $2.01 / $10.06 |
anthropic/claude-sonnet-5.5 | claude-sonnet-5-5 | Anthropic Messages only | $0.81 / $4.03 |
anthropic/claude-sonnet-5 | claude-sonnet-5 | Anthropic Messages only | $0.81 / $4.03 |
anthropic/claude-haiku-5.5 | claude-haiku-5-5 | Anthropic Messages only | $0.10 / $0.50 |
anthropic/claude-fable-5.2 | claude-fable-5-2 | Anthropic Messages only | $3.22 / $16.10 |
anthropic/claude-fable-5.1 | claude-fable-5-1 | Anthropic Messages only | $4.03 / $20.13 |
openai/gpt-6.2-sol | gpt-6.2-sol | Chat Completions, Responses | $0.21 / $1.03 |
openai/gpt-6.2-astra | gpt-6.2-astra | Chat Completions, Responses | $0.63 / $3.15 |
openai/gpt-6.1-sol | gpt-6.1-sol | Chat Completions, Responses | $0.21 / $1.03 |
openai/gpt-6.1-terra | gpt-6.1-terra | Chat Completions, Responses | $0.12 / $0.57 |
openai/gpt-6-sol | gpt-6-sol | Chat Completions, Responses | $0.21 / $1.03 |
openai/gpt-6-astra | gpt-6-astra | Chat Completions, Responses | $0.63 / $3.16 |
openai/gpt-6-luna | gpt-6-luna | Chat Completions, Responses | $0.10 / $0.50 |
x-ai/grok-4.7 | grok-4.7 | Chat Completions, Responses | $0.38 / $1.12 |
x-ai/grok-4.6 | grok-4.6 | Chat Completions, Responses | $0.38 / $1.12 |
x-ai/grok-4.5 | grok-4.5 | Chat Completions, Responses | $0.38 / $1.12 |
x-ai/grok-4.3 | grok-4.3 | Chat Completions, Responses | $0.25 / $0.50 |
deepseek/deepseek-v4.1-flash | deepseek-v4.1-flash | Chat Completions, Responses | $0.075 / $0.30 |
Other models, including Gemini, use the IDs shown at /models.
What is not carried over
- OpenRouter-specific request fields such as
providerrouting preferences,modelsfallback lists and:free/:online/:nitrosuffixes are OpenRouter features; remove them. Latentide routes each model itself. - The optional
HTTP-RefererandX-Titleheaders are not needed. - OpenRouter credits and keys do not transfer.
Billing and payment
- Prices for Claude Opus 5.5 input and output are about 40% of the official list price; cache reads and writes are billed separately at discounted rates.
- Waffo checkout, charged in USD: Visa or Mastercard (cards issued outside China work), or international Alipay / WeChat Pay; $25 / $50 / $100 / $200 packs at face value plus 5%. Stablecoins, credited 1:1 with no fee: USDC on Base, USDC or USDT on BNB Smart Chain, USDT on Ethereum. Alipay in CNY is a separate channel, settled at the day's market rate plus 2%.
- Failed, timed-out and protocol-mismatched requests are not billed. Every request’s tokens and charge are listed in the console.
FAQ
Do I have to rename my models?
No for the models listed on this page: OpenRouter-style IDs such as anthropic/claude-opus-5.5 or openai/gpt-6.1-sol are accepted as aliases and billed exactly like the canonical ID. Other models use the IDs shown at /models.
Why does my Claude request through the OpenAI SDK return 403?
Claude models on Latentide currently accept only requests sent from the Claude Code client (CLI or IDE extension) over the native Anthropic Messages API. Requests from other clients, including the OpenAI SDK, the Anthropic SDK and Chat Completions or Responses endpoints, return 403 client_not_supported and are not billed. GPT, Gemini and Grok work over Chat Completions and Responses.
How much does it cost?
Pay as you go, no subscription. For claude-opus-5-5, input and output cost about 40% of the official list price at build time. Live per-model prices are at /models and in the public catalog JSON.
How do I pay?
In USD credit. Card payments (Visa / Mastercard via Waffo) come in fixed $25 / $50 / $100 / $200 packs at face value plus 5%. Stablecoins are credited 1:1 with no fee: USDC on Base, USDC or USDT on BNB Smart Chain, USDT on Ethereum. Alipay is also available.
Are failed requests billed?
No. Failed, timed-out, upstream-interrupted and protocol-mismatched requests are not billed. With insufficient balance the gateway returns 402 without calling upstream.
Is Latentide affiliated with OpenRouter, Anthropic or OpenAI?
No. Latentide is an independent third-party API gateway with its own keys and billing.
Latentide is an independent multi-model API gateway and is not affiliated with Anthropic, OpenAI, Google, xAI or OpenRouter. Model names are used only to identify the models served.