# MYUSAPI > One API key for a catalog of Anthropic, OpenAI, Google Gemini, and xAI Grok models, opening one by one. OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, and Gemini-native protocols are served from https://myusapi.com as their models open; GET /v1/models lists what your key can call now. ## What it is MYUSAPI is a unified API gateway for AI models, operated by Kevv AI Inc. One API key and one OpenAI-compatible base URL (https://myusapi.com/v1) reach Claude, GPT, Gemini and Grok. It is an independent service, not affiliated with or endorsed by Anthropic, OpenAI, Google or xAI. ## Products and prices - Prepaid API credit, charged per token at the usage the upstream reports. No monthly fee, no automatic renewal. - 25 models on the public price list, each priced at 10–40% of its official standard rate. From $0.01 per 1M input tokens (GPT-6 Luna). Full list: https://myusapi.com/en/models - Direct customers and resellers pay the same platform rates. Resellers can create customer keys and set their own price. - Top-ups in US dollars by card, Alipay or WeChat Pay where the checkout lists them, or native USDC on Solana. ## Key facts and limits - Who cannot use it: people in countries and regions under United Nations, United States or European Union sanctions, and anyone under 18. - Not guaranteed: the service is provided as is, with no uptime guarantee. Which models are open changes; check GET /v1/models or https://myusapi.com/status. - Capabilities such as tools, thinking and multimodal input depend on the model and the protocol you call. - Top-ups are non-refundable once credited, apart from mandatory consumer rights. API credit cannot be withdrawn as cash or USDC. - Request content is forwarded to the upstream model provider. Call metadata (model, tokens, time, charge, request ID) is stored for billing. - You must also follow the usage policies of the model providers you call. ## Main links - [Quickstart](https://myusapi.com/en/docs) - [Models and prices](https://myusapi.com/en/models) - [Tools and clients](https://myusapi.com/en/docs/tools) - [Claude Code setup](https://myusapi.com/en/docs/claude-code) - [Codex CLI setup](https://myusapi.com/en/docs/codex-cli) - [Cherry Studio setup](https://myusapi.com/en/docs/cherry-studio) - [How to pay: card, Alipay, WeChat Pay, USDC](https://myusapi.com/en/docs/payment) - [How to choose a Claude API relay](https://myusapi.com/en/docs/choosing-a-claude-api-relay) - [API reference](https://myusapi.com/en/docs/api) - [Terms](https://myusapi.com/en/terms), [Privacy](https://myusapi.com/en/privacy), [Refunds](https://myusapi.com/en/refund) - [Full text of every public page](https://myusapi.com/llms-full.txt) - Every public page is also plain Markdown: add .md to its address, for example https://myusapi.com/en/docs/claude-code.md (the home page is https://myusapi.com/en/index.md). - [OpenAPI](https://myusapi.com/openapi.yaml) ## Model pages One page per model: price, model ID and requests to copy. English, then 中文. - Claude Opus 5.5 (claude-opus-5-5): [API pricing and how to call it](https://myusapi.com/en/models/claude-opus-5-5), [价格与调用方法](https://myusapi.com/models/claude-opus-5-5) - Claude Opus 4.8 (claude-opus-4-8): [API pricing and how to call it](https://myusapi.com/en/models/claude-opus-4-8), [价格与调用方法](https://myusapi.com/models/claude-opus-4-8) - GPT-6.2 Astra (gpt-6.2-astra): [API pricing and how to call it](https://myusapi.com/en/models/gpt-6.2-astra), [价格与调用方法](https://myusapi.com/models/gpt-6.2-astra) - GPT-6 Astra (gpt-6-astra): [API pricing and how to call it](https://myusapi.com/en/models/gpt-6-astra), [价格与调用方法](https://myusapi.com/models/gpt-6-astra) - Gemini 4 Argon (gemini-4-argon): [API pricing and how to call it](https://myusapi.com/en/models/gemini-4-argon), [价格与调用方法](https://myusapi.com/models/gemini-4-argon) - Grok 4.7 (grok-4.7): [API pricing and how to call it](https://myusapi.com/en/models/grok-4.7), [价格与调用方法](https://myusapi.com/models/grok-4.7) - Claude Fable 5.2 (claude-fable-5-2): [API pricing and how to call it](https://myusapi.com/en/models/claude-fable-5-2), [价格与调用方法](https://myusapi.com/models/claude-fable-5-2) - Claude Fable 5.1 (claude-fable-5-1): [API pricing and how to call it](https://myusapi.com/en/models/claude-fable-5-1), [价格与调用方法](https://myusapi.com/models/claude-fable-5-1) - Claude Sonnet 5.5 (claude-sonnet-5-5): [API pricing and how to call it](https://myusapi.com/en/models/claude-sonnet-5-5), [价格与调用方法](https://myusapi.com/models/claude-sonnet-5-5) - Claude Haiku 5.5 (claude-haiku-5-5): [API pricing and how to call it](https://myusapi.com/en/models/claude-haiku-5-5), [价格与调用方法](https://myusapi.com/models/claude-haiku-5-5) - GPT-6.1 Sol (gpt-6.1-sol): [API pricing and how to call it](https://myusapi.com/en/models/gpt-6.1-sol), [价格与调用方法](https://myusapi.com/models/gpt-6.1-sol) - GPT-6 Luna (gpt-6-luna): [API pricing and how to call it](https://myusapi.com/en/models/gpt-6-luna), [价格与调用方法](https://myusapi.com/models/gpt-6-luna) - GPT-6 Sol (gpt-6-sol): [API pricing and how to call it](https://myusapi.com/en/models/gpt-6-sol), [价格与调用方法](https://myusapi.com/models/gpt-6-sol) - GPT-5.6 Sol (gpt-5.6-sol): [API pricing and how to call it](https://myusapi.com/en/models/gpt-5.6-sol), [价格与调用方法](https://myusapi.com/models/gpt-5.6-sol) - GPT-5.6 Terra (gpt-5.6-terra): [API pricing and how to call it](https://myusapi.com/en/models/gpt-5.6-terra), [价格与调用方法](https://myusapi.com/models/gpt-5.6-terra) - GPT-5.6 Luna (gpt-5.6-luna): [API pricing and how to call it](https://myusapi.com/en/models/gpt-5.6-luna), [价格与调用方法](https://myusapi.com/models/gpt-5.6-luna) - Gemini 3.8 Flash (gemini-3.8-flash): [API pricing and how to call it](https://myusapi.com/en/models/gemini-3.8-flash), [价格与调用方法](https://myusapi.com/models/gemini-3.8-flash) - Gemini 3.5 Flash-Lite (gemini-3.5-flash-lite): [API pricing and how to call it](https://myusapi.com/en/models/gemini-3.5-flash-lite), [价格与调用方法](https://myusapi.com/models/gemini-3.5-flash-lite) - Grok 4.3 (grok-4.3): [API pricing and how to call it](https://myusapi.com/en/models/grok-4.3), [价格与调用方法](https://myusapi.com/models/grok-4.3) - Grok Build 0.1 (grok-build-0.1): [API pricing and how to call it](https://myusapi.com/en/models/grok-build-0.1), [价格与调用方法](https://myusapi.com/models/grok-build-0.1) - Grok 4.5 (grok-4.5): [API pricing and how to call it](https://myusapi.com/en/models/grok-4.5), [价格与调用方法](https://myusapi.com/models/grok-4.5) - Grok 4.6 (grok-4.6): [API pricing and how to call it](https://myusapi.com/en/models/grok-4.6), [价格与调用方法](https://myusapi.com/models/grok-4.6) - Grok 4.20 Non-Reasoning (grok-4.20-0309-non-reasoning): [API pricing and how to call it](https://myusapi.com/en/models/grok-4.20-0309-non-reasoning), [价格与调用方法](https://myusapi.com/models/grok-4.20-0309-non-reasoning) - Grok 4.20 Reasoning (grok-4.20-0309-reasoning): [API pricing and how to call it](https://myusapi.com/en/models/grok-4.20-0309-reasoning), [价格与调用方法](https://myusapi.com/models/grok-4.20-0309-reasoning) - Grok 4.20 Multi-Agent Beta (grok-4.20-multi-agent-0309): [API pricing and how to call it](https://myusapi.com/en/models/grok-4.20-multi-agent-0309), [价格与调用方法](https://myusapi.com/models/grok-4.20-multi-agent-0309) ## 中文简介 MYUSAPI 是统一的 AI 模型 API 网关,由 Kevv AI Inc. 运营。一把 API Key、一个 OpenAI 兼容地址(https://myusapi.com/v1),调用 Claude、GPT、Gemini、Grok。它是独立服务,与 Anthropic、OpenAI、Google、xAI 没有关联,也未获其背书。 - 产品和价格:预充值 API 额度,按上游返回的用量逐 Token 扣费,没有月费,不自动续费。公开价目表上有 25 个模型,每个定价为官方标准价的 10–40%,完整价目表见 https://myusapi.com/models - 谁不能用:受联合国、美国或欧盟制裁的国家和地区的人,以及未满 18 周岁的人。 - 不保证什么:服务按现状提供,不保证不中断;开放的模型会变化,以 GET /v1/models 或 https://myusapi.com/status 为准;工具调用、思考、多模态等能力取决于模型和协议。 - 退款:充值到账后不支持退款,法律赋予的强制性消费者权利不受影响;API 额度不能提现为现金或 USDC。 - 主要链接:[快速入门](https://myusapi.com/docs)、[模型与价格](https://myusapi.com/models)、[客户端与工具](https://myusapi.com/docs/tools)、[Claude Code 接入教程](https://myusapi.com/docs/claude-code)、[Codex CLI 接入教程](https://myusapi.com/docs/codex-cli)、[Cherry Studio 接入教程](https://myusapi.com/docs/cherry-studio)、[怎么付款](https://myusapi.com/docs/payment)、[Claude API 中转站怎么选](https://myusapi.com/docs/choosing-a-claude-api-relay)、[API 参考](https://myusapi.com/docs/api)、[服务条款](https://myusapi.com/terms)、[全部公开页面正文](https://myusapi.com/llms-full.txt)。每个公开页面都有 Markdown 版本:在地址后加 .md,例如 https://myusapi.com/docs/claude-code.md(首页是 https://myusapi.com/index.md) ## API details Reference catalog reviewed on 2026-10-14; individual model notes identify unverified cached references. ## Base URLs - OpenAI- and Anthropic-compatible: https://myusapi.com/v1 - Gemini-native: https://myusapi.com/v1beta ## Authentication - `Authorization: Bearer `: All routes (recommended) - `x-api-key: `: All routes; the Anthropic SDK default - `x-goog-api-key: `: /v1beta routes; the Google SDK default ## Endpoints - `GET /v1/models`: List the models your key can call. - `GET /v1/models/{model}`: Read one model. - `POST /v1/chat/completions` (streaming): OpenAI Chat Completions. Works for all four providers; the gateway converts non-OpenAI models. - `POST /v1/responses` (streaming): OpenAI Responses, the protocol Codex CLI uses. GPT-6 tool calling requires it. - `POST /v1/messages` (streaming): Anthropic Messages, the protocol Claude Code and the Anthropic SDK use. - `POST /v1/messages/count_tokens`: Count input tokens for a Messages request before sending it. - `GET /v1beta/models`: Gemini-native model list for Gemini CLI and the Google SDK. - `GET /v1beta/models/{model}`: Read one Gemini model. - `POST /v1beta/models/{model}:generateContent`: Gemini-native generation. - `POST /v1beta/models/{model}:streamGenerateContent` (streaming): Gemini-native streaming. Use ?alt=sse. - `POST /v1beta/models/{model}:countTokens`: Gemini-native token counting. - `GET /v1/usage`: Read status and token usage for the calling key. Balances and spend are not returned; check the customer portal or your workspace. Passed-through response headers: x-client-request-id, x-request-id, request-id, retry-after, x-should-retry, x-ratelimit-limit-requests, x-ratelimit-remaining-requests, x-ratelimit-reset-requests, x-ratelimit-limit-tokens, x-ratelimit-remaining-tokens, x-ratelimit-reset-tokens. ## Request examples ### OpenAI Chat Completions ```bash curl https://myusapi.com/v1/chat/completions \ -H "Authorization: Bearer $MYUSAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"gpt-6.1-sol","messages":[{"role":"user","content":"Hello"}]}' ``` ### OpenAI Responses ```bash curl https://myusapi.com/v1/responses \ -H "Authorization: Bearer $MYUSAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"gpt-6.1-sol","input":"Hello"}' ``` ### Anthropic Messages ```bash curl https://myusapi.com/v1/messages \ -H "x-api-key: $MYUSAPI_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "Content-Type: application/json" \ -d '{"model":"claude-opus-5-5","max_tokens":64,"messages":[{"role":"user","content":"Hello"}]}' ``` ### Gemini native ```bash curl https://myusapi.com/v1beta/models/gemini-4-argon:generateContent \ -H "x-goog-api-key: $MYUSAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"contents":[{"parts":[{"text":"Hello"}]}]}' ``` ## Models Official list prices in USD per 1M tokens (input / cached input / output), standard tier. See MYUSAPI API rates below for our prepaid usage prices. Availability is separate: consult /api/platform/status before sending inference. - `claude-opus-5-5` — Claude Opus 5.5 (Anthropic): $4 / $0.2 / $20, context 1M, protocols messages, chat, responses. Web search (Messages protocol): official $10 per 1,000; ours $0.005 per search; failed searches are free; results count as input tokens. Resale keys apply their display multiplier. To keep requests from failing, some settings sent to this model are changed: temperature, top_p and top_k are not passed on at any value, so the model samples its own way; a thinking budget (budget_tokens) becomes adaptive thinking, where the model decides how much to think and may use more than the budget; switching thinking off has no effect, the model always thinks and it is billed; a budget_tokens beside adaptive thinking is not passed on and does not cap thinking (Messages); a tool_choice that forces a tool becomes auto: neither a call nor the named tool is guaranteed any more, and the model may answer in text when the request does not call for the tool; an allowed_tools tool_choice is sent as only the tools it allows, so the model does not see the definitions of the others (Chat Completions, Responses); effort minimal and none is served as low, which can use more thinking tokens (Chat Completions, Responses). - `claude-opus-4-8` — Claude Opus 4.8 (Anthropic): $5 / $0.5 / $25, context 1M, protocols messages, chat, responses. Official standard prices checked on 2026-10-21. Our independently set rates per million tokens: input / output $1 / $5; cache read / 5-minute write / 1-hour write $0.05 / $1.25 / $2. Web search (Messages protocol): official $10 per 1,000; ours $0.005 per search; failed searches are free; results count as input tokens. Resale keys apply their display multiplier. To keep requests from failing, some settings sent to this model are changed: temperature, top_p and top_k are not passed on at any value, so the model samples its own way; a budget_tokens beside adaptive thinking is not passed on and does not cap thinking (Messages); an allowed_tools tool_choice is sent as only the tools it allows, so the model does not see the definitions of the others (Chat Completions, Responses); effort minimal and none is served as low, which can use more thinking tokens (Chat Completions, Responses). - `gpt-6.2-astra` — GPT-6.2 Astra (OpenAI): $8 / $0.4 / $40, context 1.05M, protocols responses, chat. Standard rates checked November 17, 2026. Above 272K input tokens, input and cache rates double and the output rate rises to 1.5× for the entire request. Our Standard prices per million tokens are $2 for input, $0.10 for cache reads, $2.50 for 30-minute cache writes and $10 for output. Above 272K input tokens, our prices for the entire request are $4, $0.20, $5 and $15 respectively. - `gpt-6-astra` — GPT-6 Astra (OpenAI): $10 / $1 / $50, context 1.05M, protocols responses, chat. Requests over 272K tokens: 2× input and cache, 1.5× output. - `gemini-4-argon` — Gemini 4 Argon (Gemini): $2 / $0.1 / $10, context 1M, protocols gemini, chat, responses, messages. Introductory price until 2026-11-30, then $4 / $20. - `grok-4.7` — Grok 4.7 (Grok): $2 / $0.5 / $6, context 500K, protocols chat, responses, messages. Official standard prices checked on 2026-11-08. When a prompt reaches 200K tokens, the entire request uses long-context rates: $4 input, $1 cached input, and $12 output per million tokens. - `claude-fable-5-2` — Claude Fable 5.2 (Anthropic): $8 / $0.2 / $40, context 1M, protocols messages, chat, responses. Official standard-mode prices checked on 2026-11-09 cover the full 1M context. Fast mode is priced separately and is not included in this quote. To keep requests from failing, some settings sent to this model are changed: temperature, top_p and top_k are not passed on at any value, so the model samples its own way; a thinking budget (budget_tokens) becomes adaptive thinking, where the model decides how much to think and may use more than the budget (Messages); switching thinking off has no effect, the model always thinks and it is billed (Messages); a budget_tokens beside adaptive thinking is not passed on and does not cap thinking (Messages); a tool_choice that forces a tool becomes auto: neither a call nor the named tool is guaranteed any more, and the model may answer in text when the request does not call for the tool; an allowed_tools tool_choice is sent as only the tools it allows, so the model does not see the definitions of the others (Chat Completions, Responses); effort minimal and none is served as low, which can use more thinking tokens (Chat Completions, Responses); an effort above low is not passed on and the model works at its default effort: xhigh and max get less than they asked for, medium may get more and use more thinking tokens; to set one, use output_config.effort on Messages (Chat Completions, Responses). - `claude-fable-5-1` — Claude Fable 5.1 (Anthropic): $10 / $0.25 / $50, context 1M, protocols messages, chat, responses. Official standard-mode prices checked on 2026-11-09 cover the full 1M context. To keep requests from failing, some settings sent to this model are changed: temperature, top_p and top_k are not passed on at any value, so the model samples its own way; switching thinking off has no effect, the model always thinks and it is billed (Messages); a budget_tokens beside adaptive thinking is not passed on and does not cap thinking (Messages); a tool_choice that forces a tool becomes auto: neither a call nor the named tool is guaranteed any more, and the model may answer in text when the request does not call for the tool; an allowed_tools tool_choice is sent as only the tools it allows, so the model does not see the definitions of the others (Chat Completions, Responses); effort minimal and none is served as low, which can use more thinking tokens (Chat Completions, Responses). - `claude-sonnet-5-5` — Claude Sonnet 5.5 (Anthropic): $2 / $0.1 / $10, context 1M, protocols messages, chat, responses. Web search (Messages protocol): official $10 per 1,000; ours $0.005 per search; failed searches are free; results count as input tokens. Resale keys apply their display multiplier. To keep requests from failing, some settings sent to this model are changed: temperature, top_p and top_k are not passed on at any value, so the model samples its own way; a thinking budget (budget_tokens) becomes adaptive thinking, where the model decides how much to think and may use more than the budget; switching thinking off is served as the model’s current between_tools mode; thinking switched off together with effort xhigh or max stays on and is billed (Messages); a budget_tokens beside adaptive thinking is not passed on and does not cap thinking (Messages); a tool_choice that forces a tool becomes auto: neither a call nor the named tool is guaranteed any more, and the model may answer in text when the request does not call for the tool; an allowed_tools tool_choice is sent as only the tools it allows, so the model does not see the definitions of the others (Chat Completions, Responses); effort minimal is served as low, which can use more thinking tokens (Chat Completions, Responses). - `claude-haiku-5-5` — Claude Haiku 5.5 (Anthropic): $0.1 / $0.01 / $0.5, context 1M, protocols messages, chat, responses. Official standard prices checked on 2026-11-08. Prompts over 100K tokens: $0.50 / $2.50. Web search (Messages protocol): official $10 per 1,000; ours $0.005 per search; failed searches are free; results count as input tokens. Resale keys apply their display multiplier. To keep requests from failing, some settings sent to this model are changed: temperature, top_p and top_k are not passed on at any value, so the model samples its own way; a thinking budget (budget_tokens) becomes adaptive thinking, where the model decides how much to think and may use more than the budget; thinking switched off together with effort xhigh or max stays on and is billed (Messages); a budget_tokens beside adaptive thinking is not passed on and does not cap thinking (Messages); an allowed_tools tool_choice is sent as only the tools it allows, so the model does not see the definitions of the others (Chat Completions, Responses); effort minimal is served as low, which can use more thinking tokens (Chat Completions, Responses). - `gpt-6.1-sol` — GPT-6.1 Sol (OpenAI): $2 / $0.1 / $10, context 1.05M, protocols responses, chat. Requests over 272K tokens: 2× input and cache, 1.5× output. - `gpt-6-luna` — GPT-6 Luna (OpenAI): $0.1 / $0.01 / $0.5, context 1.05M, protocols responses, chat. Official standard prices checked on 2026-11-08. Requests over 272K tokens: 2× input and cache, 1.5× output. - `gpt-6-sol` — GPT-6 Sol (OpenAI): $2 / $0.2 / $10, context 1.05M, protocols responses, chat. Requests over 272K tokens: 2× input and cache, 1.5× output. - `gpt-5.6-sol` — GPT-5.6 Sol (OpenAI): $4 / $0.4 / $20, context 1.05M, protocols responses, chat. Official promotional price through at least 2026-11-21; over 272K input tokens: 2× input/cache, 1.5× output. - `gpt-5.6-terra` — GPT-5.6 Terra (OpenAI): $2 / $0.2 / $12, context 1.05M, protocols responses, chat. Requests over 272K tokens: 2× input and cache, 1.5× output. - `gpt-5.6-luna` — GPT-5.6 Luna (OpenAI): $0.2 / $0.02 / $1.2, context 1.05M, protocols responses, chat. Official standard prices checked on 2026-11-08. Requests over 272K tokens: 2× input and cache, 1.5× output. - `gemini-3.8-flash` — Gemini 3.8 Flash (Gemini): $0.75 / $0.075 / $3.75, context 1M, protocols gemini, chat, responses, messages. Introductory price until 2026-12-31, then $1.50 / $7.50. - `gemini-3.5-flash-lite` — Gemini 3.5 Flash-Lite (Gemini): $0.3 / $0.03 / $2.5, context 1M, protocols gemini, chat, responses, messages. - `grok-4.3` — Grok 4.3 (Grok): $1.25 / $0.2 / $2.5, context 1M, protocols chat, responses, messages. 200K+ prompts: $2.50 / $5. Web search: $0.005/call plus tokens. Web search is not available on API keys from this site yet: sent beside other tools the search tool is left out; sent alone or chosen by tool_choice, the request is rejected. - `grok-build-0.1` — Grok Build 0.1 (Grok, early access): $1 / $0.2 / $2, context 256K, protocols chat, responses, messages. Prompts of 200K tokens or more: $2 / $4. - `grok-4.5` — Grok 4.5 (Grok): $2 / $0.3 / $6, context 500K, protocols responses. Input and output rates double from 200K tokens; check /v1/models for availability. - `grok-4.6` — Grok 4.6 (Grok): $2 / $0.5 / $6, context 500K, protocols responses. Input and output rates double from 200K tokens; check /v1/models for availability. - `grok-4.20-0309-non-reasoning` — Grok 4.20 Non-Reasoning (Grok): $1.25 / $0.2 / $2.5, context 1M, protocols chat, responses, messages. Prompts of 200K tokens or more: $2.50 / $5. - `grok-4.20-0309-reasoning` — Grok 4.20 Reasoning (Grok): $1.25 / $0.2 / $2.5, context 1M, protocols responses. Prompts of 200K tokens or more: $2.50 / $5. - `grok-4.20-multi-agent-0309` — Grok 4.20 Multi-Agent Beta (Grok, preview): $1.25 / $0.2 / $2.5, context 1M, protocols responses. Reasoning effort controls agent count; input and output rates double from 200K tokens. ## MYUSAPI API rates Prepaid API balance, no monthly subscription. Standard input and output rates on the public price list are at 10–40% of verified official standard rates. Every model has an owner-maintained absolute price; updating official reference prices never changes selling prices automatically. Direct customers and resellers buy at the same published platform rates. Resellers may add their own customer markup; there is no extra procurement discount. USD per 1M tokens: input / cached input / output, followed by separately priced cache writes where listed. Cache charges use the corresponding usage reported by the upstream. Context tiers, tools and storage have separate rates. - claude-opus-5-5: $1 / $0.05 / $5. 5-minute cache write: $1.25. 1-hour cache write: $2. - claude-opus-4-8: $1 / $0.05 / $5. 5-minute cache write: $1.25. 1-hour cache write: $2. - gpt-6.2-astra: $2 / $0.1 / $10. Cache write: $2.5. - gpt-6-astra: $2.5 / $0.25 / $12.5. Cache write: $3.125. - gemini-4-argon: $0.6 / $0.03 / $3. - grok-4.7: $0.7 / $0.175 / $2.1. - claude-fable-5-2: $2.64 / $0.066 / $13.2. 5-minute cache write: $3.3. 1-hour cache write: $5.28. - claude-fable-5-1: $3.3 / $0.0825 / $16.5. 5-minute cache write: $4.125. 1-hour cache write: $6.6. - claude-sonnet-5-5: $0.5 / $0.025 / $2.5. 5-minute cache write: $0.625. 1-hour cache write: $1. - claude-haiku-5-5: $0.025 / $0.0025 / $0.125. 5-minute cache write: $0.03125. 1-hour cache write: $0.05. - gpt-6.1-sol: $0.4 / $0.02 / $2. Cache write: $0.5. - gpt-6-luna: $0.01 / $0.001 / $0.05. Cache write: $0.0125. - gpt-6-sol: $0.5 / $0.05 / $2.5. Cache write: $0.625. - gpt-5.6-sol: $1.2 / $0.12 / $6. Cache write: $1.5. - gpt-5.6-terra: $0.6 / $0.06 / $3.6. Cache write: $0.75. - gpt-5.6-luna: $0.02 / $0.002 / $0.12. Cache write: $0.025. - gemini-3.8-flash: $0.3 / $0.03 / $1.5. - gemini-3.5-flash-lite: $0.12 / $0.012 / $1. - grok-4.3: $0.5 / $0.08 / $1. - grok-build-0.1: $0.3 / $0.06 / $0.6. - grok-4.5: $0.7 / $0.105 / $2.1. - grok-4.6: $0.7 / $0.175 / $2.1. - grok-4.20-0309-non-reasoning: $0.5 / $0.08 / $1. - grok-4.20-0309-reasoning: $0.5 / $0.08 / $1. - grok-4.20-multi-agent-0309: $0.5 / $0.08 / $1. ## Client setup ### CC Switch · Claude Desktop CC Switch is an open-source desktop switcher: enter your key once in its window and both Claude Code and Claude Desktop use it, with no terminal or config-file edits. It calls Claude models only. ```json { "env": { "ANTHROPIC_BASE_URL": "https://myusapi.com", "ANTHROPIC_AUTH_TOKEN": "$MYUSAPI_API_KEY" } } ``` - Install: on macOS run brew install --cask cc-switch; on Windows and Linux download the installer from the farion1231/cc-switch releases on GitHub. - Claude Code: on the Claude Code page of CC Switch, add a provider with a custom configuration, paste the JSON above and enable it. Or fill in just the endpoint and key: leave /v1 off the endpoint, keep the default ANTHROPIC_AUTH_TOKEN auth field, and leave the model names blank. - Claude Desktop: on the Claude Desktop page of CC Switch, import the provider you just added from Claude Code and choose Direct. Then quit Claude Desktop completely (Cmd+Q on macOS, or from the tray on Windows) and reopen it. - Direct lists Claude models only. To use GPT or Gemini in Claude Desktop, turn on model mapping and keep CC Switch running. - With a third-party gateway, Claude Desktop has no claude.ai account sync, mobile app, cloud sessions, voice or Remote Control. ### Claude Desktop Without CC Switch: open Claude Desktop without signing in, turn on Help → Troubleshooting → Enable Developer Mode, then fill in Developer → Configure Third-Party Inference as below and click Apply Changes. ``` Inference provider: Gateway Gateway base URL: https://myusapi.com Gateway API key: $MYUSAPI_API_KEY Auth scheme: bearer ``` - Leave /v1 off the address. After a restart, the sign-in screen offers to start in third-party mode. - Requires Claude Desktop 1.3036.0 or later. Only Claude models are listed. ### Claude Code Connects over Anthropic Messages. Leave /v1 off the base URL; Claude Code adds it. ```bash export ANTHROPIC_BASE_URL="https://myusapi.com" export ANTHROPIC_AUTH_TOKEN="$MYUSAPI_API_KEY" export ANTHROPIC_MODEL="claude-opus-5-5" export ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-haiku-5-5" claude ``` - Claude Code uses a small model for background tasks, so make sure your group also allows claude-haiku-5-5. - To persist the setup, put the same variables in the "env" block of ~/.claude/settings.json. ### Codex CLI Connects over OpenAI Responses. Recent Codex versions ignore OPENAI_BASE_URL, so declare a custom provider in config.toml. ```toml mkdir -p ~/.codex && cat > ~/.codex/config.toml << 'EOF' model = "gpt-6.1-sol" model_provider = "myusapi" [model_providers.myusapi] name = "MYUSAPI" base_url = "https://myusapi.com/v1" env_key = "MYUSAPI_API_KEY" wire_api = "responses" EOF export MYUSAPI_API_KEY="$MYUSAPI_API_KEY" codex ``` - This overwrites an existing config.toml. If you already have one, merge in the [model_providers] block instead. - Switch models inside Codex with /model. - Codex’s built-in web search and multi-agent tools are not served here: sent beside other tools they are left out, and the request goes on. - wire_api must be "responses". Codex removed the "chat" value found in older guides, and it now fails as a config error. ### Gemini CLI Connects over the Gemini-native /v1beta routes, so only Gemini models work. ```bash export GOOGLE_GEMINI_BASE_URL="https://myusapi.com" export GEMINI_API_KEY="$MYUSAPI_API_KEY" gemini -m gemini-4-argon ``` - Leave /v1beta off the base URL; Gemini CLI adds it. ### OpenAI SDK · Python Keep the official SDK and change base_url. All four providers work through Chat Completions. ```python import os from openai import OpenAI client = OpenAI( base_url="https://myusapi.com/v1", api_key=os.environ["MYUSAPI_API_KEY"], ) reply = client.chat.completions.create( model="gpt-6.1-sol", messages=[{"role": "user", "content": "Hello"}], ) print(reply.choices[0].message.content) ``` ### OpenAI SDK · Node.js Keep the official SDK and change baseURL. ```javascript import OpenAI from 'openai'; const client = new OpenAI({ baseURL: 'https://myusapi.com/v1', apiKey: process.env.MYUSAPI_API_KEY, }); const reply = await client.chat.completions.create({ model: 'gpt-6.1-sol', messages: [{ role: 'user', content: 'Hello' }], }); console.log(reply.choices[0].message.content); ``` ### Anthropic SDK · Python Uses Anthropic Messages. Leave /v1 off the base URL. ```python import os import anthropic client = anthropic.Anthropic( base_url="https://myusapi.com", api_key=os.environ["MYUSAPI_API_KEY"], ) message = client.messages.create( model="claude-opus-5-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello"}], ) print(message.content[0].text) ``` ### cURL Call Chat Completions directly. Add "stream": true to stream. ```bash curl https://myusapi.com/v1/chat/completions \ -H "Authorization: Bearer $MYUSAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "gpt-6.1-sol", "messages": [{"role": "user", "content": "Hello"}]}' ``` ### Cherry Studio · Chatbox · LobeChat · Open WebUI Add an OpenAI-compatible provider in the app and fill in these fields. ``` API Host: https://myusapi.com/v1 API Key: $MYUSAPI_API_KEY API Path: /chat/completions Model: gpt-6.1-sol ``` - Cherry Studio appends /v1/chat/completions itself, so enter just the host and drop the trailing /v1. - If another app also appends /v1 by itself, enter the address without /v1 there too. ### Cline Choose “OpenAI Compatible” as the API provider. ``` API Provider: OpenAI Compatible Base URL: https://myusapi.com/v1 API Key: $MYUSAPI_API_KEY Model ID: gpt-6.1-sol ``` - For Claude models only, you can also choose the Anthropic provider, tick the custom base URL and enter the address above without /v1. - Roo Code’s repository was archived in May 2026 and no longer gets updates, so we recommend Cline. ## Errors - 400 `invalid_request` (gateway): The body is not valid JSON or a field is invalid. Check the JSON and send Content-Type: application/json. - 400 `request_not_covered` (gateway): This key does not accept something in the request: a built-in tool such as web search on Responses or Chat, background mode, or non-text output. The response message says which. Remove what the message names. The same request will not succeed on retry. - 401 `invalid_api_key` (gateway): The key is missing, malformed, or a demo_ key. Send a real key: Authorization: Bearer . - 401 `INVALID_API_KEY / API_KEY_DISABLED` (upstream): The key does not exist or is disabled. Check the key in your workspace or create a new one. - 403 `https_required` (gateway): The request used plain http://. The gateway does not process or forward it. With Always Use HTTPS enabled the site may instead redirect it to https://; either way the key was already sent in cleartext. Use an https:// base URL, and rotate any key already sent over http://. - 403 `model_not_allowed` (gateway): This model is not enabled on this site. Call GET /v1/models for the IDs you can use. - 403 `INSUFFICIENT_BALANCE` (upstream): Your balance is exhausted. Top up and retry. If a provider issued your key, contact them. - 403 `API_KEY_EXPIRED / GROUP_NOT_ALLOWED` (upstream): The key has expired or its group is unavailable. Create a new key or choose another group. - 404 `route_not_found` (gateway): The path is not a public endpoint. OpenAI-compatible clients need /v1 at the end of the base URL; clients that add /v1 themselves, such as Claude Code, work with or without it. Then check the path and method against the API reference. - 413 `body_too_large` (gateway): The body is larger than 32 MB. Trim the context or use caching. - 429 `rate_limited` (gateway): Too many requests per minute from one IP. Back off and retry after Retry-After. - 429 `API_KEY_QUOTA_EXHAUSTED / rate_limit_exceeded` (upstream): The key quota is used up, or a key or group rate limit was hit. Raise the key quota or back off per Retry-After. - 429 `managed_credit_large_requests_busy` (upstream): Too many large requests (over 4 MB each) are being handled at once. Retry after Retry-After, or compact the context. - 429 `gateway_concurrency_limit` (upstream): Too many concurrent requests. Lower concurrency and retry. - 502 `upstream_error` (upstream): The upstream provider rejected the request or failed. Retry later; if it persists, contact support with x-request-id. - 503 `inference_not_configured` (gateway): This site does not serve inference right now. Check the status page for availability. - 503 `overloaded_error` (upstream): Upstream is overloaded or no account is available. Retry with exponential backoff or switch to a similar model. ## Docs - [Quickstart](https://myusapi.com/docs) - [Tools & clients](https://myusapi.com/docs/tools) - [API reference](https://myusapi.com/docs/api) - [Models](https://myusapi.com/docs/models) - [Errors](https://myusapi.com/docs/errors) - [OpenAPI](https://myusapi.com/openapi.yaml)