Updated 2026-11-28

One difference matters most: Claude models on Latentide are served only over the native Anthropic Messages API. If your code calls Claude through the OpenAI SDK or Chat Completions, switch that part to the Anthropic SDK or an Anthropic-provider tool (below). GPT, Gemini and Grok keep working over Chat Completions and Responses.

What changes

SettingOpenRouterLatentide
Base URL (OpenAI SDKs)https://openrouter.ai/api/v1https://api.latentide.com/v1
Base URL (Anthropic SDKs, Claude Code)—https://api.latentide.com (no /v1)
API keyOpenRouter keyLatentide key, created in the console
Model IDsanthropic/claude-opus-5.5Same ID accepted for the models below, or claude-opus-5-5
Claude protocolChat CompletionsAnthropic Messages only
BillingPrepaid creditsPrepaid 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.com and 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 IDLatentide IDProtocolInput / output
anthropic/claude-opus-5.5claude-opus-5-5Anthropic Messages only$1.61 / $8.05
anthropic/claude-opus-5claude-opus-5Anthropic Messages only$2.01 / $10.06
anthropic/claude-opus-4.8claude-opus-4-8Anthropic Messages only$2.01 / $10.06
anthropic/claude-sonnet-5.5claude-sonnet-5-5Anthropic Messages only$0.81 / $4.03
anthropic/claude-sonnet-5claude-sonnet-5Anthropic Messages only$0.81 / $4.03
anthropic/claude-haiku-5.5claude-haiku-5-5Anthropic Messages only$0.10 / $0.50
anthropic/claude-fable-5.2claude-fable-5-2Anthropic Messages only$3.22 / $16.10
anthropic/claude-fable-5.1claude-fable-5-1Anthropic Messages only$4.03 / $20.13
openai/gpt-6.2-solgpt-6.2-solChat Completions, Responses$0.21 / $1.03
openai/gpt-6.2-astragpt-6.2-astraChat Completions, Responses$0.63 / $3.15
openai/gpt-6.1-solgpt-6.1-solChat Completions, Responses$0.21 / $1.03
openai/gpt-6.1-terragpt-6.1-terraChat Completions, Responses$0.12 / $0.57
openai/gpt-6-solgpt-6-solChat Completions, Responses$0.21 / $1.03
openai/gpt-6-astragpt-6-astraChat Completions, Responses$0.63 / $3.16
openai/gpt-6-lunagpt-6-lunaChat Completions, Responses$0.10 / $0.50
x-ai/grok-4.7grok-4.7Chat Completions, Responses$0.38 / $1.12
x-ai/grok-4.6grok-4.6Chat Completions, Responses$0.38 / $1.12
x-ai/grok-4.5grok-4.5Chat Completions, Responses$0.38 / $1.12
x-ai/grok-4.3grok-4.3Chat Completions, Responses$0.25 / $0.50
deepseek/deepseek-v4.1-flashdeepseek-v4.1-flashChat 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 provider routing preferences, models fallback lists and :free / :online / :nitro suffixes are OpenRouter features; remove them. Latentide routes each model itself.
  • The optional HTTP-Referer and X-Title headers 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.

Create an API key See all model prices