OpenAI API alternatives

These 9 model makers take requests in OpenAI's API format on their own APIs. Code written for OpenAI's SDK can call them with another base URL, key and model name. Most of their docs list parameters they ignore or treat differently, and this page quotes them.

/model serves models from 8 of them on one key and one balance, OpenAI's GPT models too, at a discount on the makers' official prices.

Each maker's lines checked against its own docs on November 28, 2026

At a glance

  • Anthropic

    OpenAI-format base URL
    https://api.anthropic.com/v1/, for testing
    Anthropic format
    https://api.anthropic.com, its own API
    Free to start
    Some credit; amount not stated
    Top model
    Claude Fable 5.2
  • Google

    OpenAI-format base URL
    https://generativelanguage.googleapis.com/v1beta/openai/, in beta
    Anthropic format
    None found
    Free to start
    A free tier on some models
    Top model
    Gemini 4 Carbon
  • xAI

    OpenAI-format base URL
    https://api.x.ai/v1, Chat Completions deprecated
    Anthropic format
    Deprecated
    Free to start
    Not stated
    Top model
    Grok 4.7
  • DeepSeek

    OpenAI-format base URL
    https://api.deepseek.com
    Anthropic format
    https://api.deepseek.com/anthropic
    Free to start
    Not stated
    Top model
    DeepSeek V4 Pro
  • Moonshot AI

    OpenAI-format base URL
    https://api.moonshot.ai/v1
    Anthropic format
    https://api.moonshot.ai/anthropic
    Free to start
    $1 minimum top-up
    Top model
    Kimi K3.1 Pro
  • Z.ai

    OpenAI-format base URL
    https://api.z.ai/api/paas/v4/
    Anthropic format
    https://api.z.ai/api/anthropic
    Free to start
    Three free Flash models
    Top model
    GLM-5.3
  • MiniMax

    OpenAI-format base URL
    https://api.minimax.io/v1
    Anthropic format
    https://api.minimax.io/anthropic
    Free to start
    None on its price list
    Top model
    MiniMax-M3.1-Flash
  • Xiaomi

    OpenAI-format base URL
    https://api.xiaomimimo.com/v1
    Anthropic format
    https://api.xiaomimimo.com/anthropic
    Free to start
    Bonus credit; amount not stated
    Top model
    MiMo V2.6 Pro
  • Tencent

    OpenAI-format base URL
    https://tokenhub-intl.tencentcloudmaas.com/v1, Singapore
    Anthropic format
    https://tokenhub-intl.tencentcloudmaas.com
    Free to start
    1M tokens per model, once
    Top model
    Hy4

Their models on /model

Each model's official price is its maker's. The /model price is the cheapest channel available right now.

  • Claude Opus 5.5

    Anthropic

    Official price, in / out
    $4.00 / $20.00
    /model
    $0.55 / $2.75
    Discount
    86% off

    Input / output, US dollars per 1M tokens

  • Claude Fable 5.2

    Anthropic

    Official price, in / out
    $8.00 / $40.00
    /model
    $2.60 / $13.00
    Discount
    67% off

    Input / output, US dollars per 1M tokens

  • Gemini 4 Carbon

    Google

    Official price, in / out
    $2.00 / $10.00
    /model
    $1.35 / $6.75
    Discount
    32% off

    Input / output, US dollars per 1M tokens

  • DeepSeek V4 Pro

    DeepSeek

    Official price, in / out
    $1.32 / $3.96
    /model
    $0.955 / $2.865
    Discount
    27% off

    Input / output, US dollars per 1M tokens

  • Kimi K3.1 Pro

    Moonshot AI

    Official price, in / out
    $2.00 / $10.00
    /model
    $1.38 / $7.214
    Discount
    27% off

    Input / output, US dollars per 1M tokens

  • GLM 5.3

    Z.ai

    Official price, in / out
    $1.40 / $4.40
    /model
    $0.849 / $2.971
    Discount
    32% off

    Input / output, US dollars per 1M tokens

  • MiniMax M3

    MiniMax

    Official price, in / out
    $0.30 / $1.20
    /model
    $0.223 / $0.892
    Discount
    25% off

    Input / output, US dollars per 1M tokens

  • MiMo V2.6 Pro

    Xiaomi

    Official price, in / out
    $0.435 / $0.87
    /model
    $0.319 / $0.637
    Discount
    26% off

    Input / output, US dollars per 1M tokens

  • Hunyuan 3

    Tencent

    Official price, in / out
    $0.132 / $0.528
    /model
    $0.107 / $0.425
    Discount
    18% off

    Input / output, US dollars per 1M tokens

  • GPT-6.2 Sol

    OpenAI

    Official price, in / out
    $2.00 / $10.00
    /model
    $0.175 / $0.875
    Discount
    91% off

    Input / output, US dollars per 1M tokens

Not on /model: xAI.

DeepSeek's prices are its peak-hours ones, on weekdays from 01:00 to 04:00 and from 06:00 to 10:00 UTC; at other times DeepSeek charges half. /model's price is the same at every hour.

Prices as of Nov 30, 06:32 PM UTC

All model prices

Maker by maker

Anthropic (Claude)

OpenAI format
https://api.anthropic.com/v1/

Anthropic says it "is primarily intended to test and compare model capabilities, and is not considered a long-term or production-ready solution for most use cases" (Anthropic).

Anthropic format
https://api.anthropic.com

Its own API (Anthropic).

Notes from its docs

Its OpenAI SDK page lists what differs. Among them:

  • "The strict parameter for function calling is ignored, which means the tool use JSON is not guaranteed to follow the supplied schema."
  • "response_format accepts only json_schema with strict: true. A request that sets json_object or text returns a 400 error."
  • "Audio and file inputs are not supported."
  • "Prompt caching is not supported, but it is supported in the Anthropic SDKs."
  • "The response doesn't include Claude's thinking."
Free to start
"New users receive free credits to test the API." The amount isn't given (Anthropic).
Top model
Claude Fable 5.2. First on its price list. If you're unsure which model to use, Anthropic says to "start with Claude Opus 5.5 for most workloads" (Anthropic).
On /model
Prices
Anthropic's pricing (opens in a new tab)

Google (Gemini)

OpenAI format
https://generativelanguage.googleapis.com/v1beta/openai/

"Support for the OpenAI libraries is still in beta while we extend feature support." And: "If you aren't already using the OpenAI libraries, we recommend that you call the Gemini API directly." (Google)

Anthropic format

None found in its docs.

Notes from its docs

Its OpenAI compatibility page says:

  • "Reasoning cannot be turned off for Gemini 2.5 Pro, Gemini 3, or Gemini 4 models."
  • For images: "Any other parameters not listed here or in the extra_body section will be silently ignored by the compatibility layer."
  • For batch jobs: "Compatibility for upload and download is currently not supported."
Free to start
A free tier on some models, Gemini 4 Hydrogen and Gemini 3.8 Flash among them; Gemini 4 Carbon, Argon and Neon aren't on it. The free tier lists "Content used to improve our products" (Google).
Top model
Gemini 4 Carbon. First on its price list: "Our most capable reasoning model" (Google).
On /model
Prices
Google's pricing (opens in a new tab)

xAI (Grok)

Its docs now name the company "SpaceXSI (xAI)" (xAI).

OpenAI format
https://api.x.ai/v1

Its quickstart uses OpenAI's SDK with the Responses API (xAI). "Chat Completions is deprecated and delivers strictly worse performance than the Responses API." (xAI)

Anthropic format

Its docs list POST /v1/messages on https://api.x.ai under a notice: "The Anthropic SDK compatibility is fully deprecated. Please migrate to the Responses API or the gRPC API." (xAI)

Notes from its docs

Its docs say:

  • "presence_penalty and frequency_penalty are not supported by current Grok models, and stop is not supported by reasoning models. On the Chat Completions API, a request that sets one of them returns a 400 error. The Responses API accepts all three but ignores them." (xAI)
  • "logprobs and top_logprobs are not supported by models grok-4.20 and newer. These fields will be silently ignored if set." (xAI)
Free to start
None stated: you "load it with credits to start using the API" (xAI), and "Your API requests will be automatically rejected once your prepaid credits are depleted." (xAI)
Top model
Grok 4.7. First on its price list. "It is the most capable model we've built", in xAI's words (xAI).
On /model

None of its models are on /model.

Prices
xAI's pricing (opens in a new tab)

DeepSeek

OpenAI format
https://api.deepseek.com

"The DeepSeek API uses an API format compatible with OpenAI/Anthropic." (DeepSeek) The same base URL takes OpenAI's Responses format (DeepSeek).

Anthropic format
https://api.deepseek.com/anthropic

Claude model names become DeepSeek's: "claude-opus* names are mapped to deepseek-v4-pro, and other claude* names are mapped to deepseek-flash" (DeepSeek).

Notes from its docs

Its docs say:

  • "Thinking mode does not support the temperature, presence_penalty, or frequency_penalty parameters. Please note that, for compatibility with existing software, setting these parameters will not trigger an error but will also have no effect." (DeepSeek)
  • On the Responses format, previous_response_id, store and background are "Not supported", as it's a "stateless API" (DeepSeek).
  • On the Anthropic format, cache_control is ignored (DeepSeek).
Free to start
None stated. Its pricing page mentions a "granted balance" without saying who gets one (DeepSeek).
Top model
DeepSeek V4 Pro. The larger and dearer of the two models on its price list (DeepSeek).
On /model
Prices
DeepSeek's pricing (opens in a new tab)

Moonshot AI (Kimi)

OpenAI format
https://api.moonshot.ai/v1

For both Chat Completions and Responses (Moonshot AI).

Anthropic format
https://api.moonshot.ai/anthropic

For "Official Anthropic SDKs, Claude Code, and similar tools" (Moonshot AI).

Notes from its docs

Its docs say:

  • "When using the OpenAI-compatible endpoints, some parameters are Kimi-specific extensions: the thinking parameter needs to be passed via the SDK's extra_body" (Moonshot AI)
  • "Explicit cache breakpoints are not supported: the request is rejected (HTTP 400) if prompt_cache_breakpoint appears in content." (Moonshot AI)
  • On the Anthropic format, cache_control is "only effective at the top level; cache_control markers inside the messages array are ignored" (Moonshot AI).
Free to start
No sign-up credit is stated. "To prevent abuse, a minimum recharge of $1 is required to start using the API; when your cumulative recharge reaches $5, you receive a $5 voucher." (Moonshot AI)
Top model
Kimi K3.1 Pro. First on its price list, and "Kimi's most capable flagship to date" (Moonshot AI).
On /model
Prices
Moonshot AI's pricing (opens in a new tab)

Z.ai (GLM)

OpenAI format
https://api.z.ai/api/paas/v4/

You can "seamlessly switch to Z.AI's model services by simply modifying the API key and base URL" (Z.ai). Keys on its GLM Coding Plan use https://api.z.ai/api/coding/paas/v4 (Z.ai).

Anthropic format
https://api.z.ai/api/anthropic

A "general endpoint": "Standard keys use standard API billing, while Coding Plan keys use the corresponding plan." (Z.ai)

Notes from its docs

Its OpenAI page says:

  • "The temperature parameter range is (0,1), do_sample = False (temperature = 0) is not applicable in OpenAI calls."
  • "In some scenarios, there are still differences between Z.AI and OpenAI interfaces, but this does not affect overall compatibility."
Free to start
GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash are free. No sign-up credit is stated (Z.ai).
Top model
GLM-5.3. First under "Latest Models" on its price list. Z.ai calls GLM-5.4 its "latest flagship model", but GLM-5.4 isn't on its API yet: for now it's in the GLM Coding Plan only (Z.ai).
On /model
Prices
Z.ai's pricing (opens in a new tab)

MiniMax

OpenAI format
https://api.minimax.io/v1

Its docs: "our API now supports the OpenAI API format" (MiniMax).

Anthropic format
https://api.minimax.io/anthropic

It "currently only supports the MiniMax-M3.1-Flash MiniMax-M3 models" (MiniMax).

Notes from its docs

Its OpenAI page says:

  • "Some OpenAI parameters (such as temperature, top_p, presence_penalty, frequency_penalty, logit_bias, etc.) will be ignored"
  • "audio input is not currently supported"
  • "The n parameter only supports value 1"
  • "The deprecated function_call is not supported, please use the tools parameter"
Free to start
None on its pricing page, where "you use standard Open Platform API keys and pay from your account balance based on usage" (MiniMax). An older page, dated 23 January 2026, says "New users without subscription can try the free quota from Pay-as-you-go", with no amount (MiniMax).
Top model
MiniMax-M3.1-Flash. First on its price list, then MiniMax-M3. MiniMax calls neither a flagship (MiniMax).
On /model
Prices
MiniMax's pricing (opens in a new tab)

Xiaomi (MiMo)

OpenAI format
https://api.xiaomimimo.com/v1

It "is compatible with two mainstream API formats, namely OpenAI API and Anthropic API", and its docs show OpenAI's Responses format too (Xiaomi).

Anthropic format
https://api.xiaomimimo.com/anthropic

For pay-as-you-go keys; Token Plan keys have a host of their own (Xiaomi).

Notes from its docs

No list of what it leaves out was found. Its FAQ says:

  • "OpenAI interface /v1/chat/completions follows OpenAI format, including developer/system/user/assistant roles"
  • Token Plan keys (tp-…) and pay-as-you-go keys (sk-…) "are independent of each other and cannot be mixed".
Free to start
New users can get bonus credit, amount not stated: "Bonus credit is currently valid for 40 days and expires after that." (Xiaomi) Overseas users who top up any amount for the first time "will receive an additional $0.72 bonus" (Xiaomi).
Top model
MiMo V2.6 Pro. First on its price list (Xiaomi).
On /model
Prices
Xiaomi's pricing (opens in a new tab)

Tencent (Hunyuan)

Tencent's Hy models are sold through Tencent Cloud's LLM Service TokenHub, which also sells other makers' models. "All models uniformly support two protocols: the OpenAI Chat Completions API and the Anthropic Messages API." (Tencent Cloud's docs)

OpenAI format
https://tokenhub-intl.tencentcloudmaas.com/v1

For Singapore; Guangzhou's is https://tokenhub.tencentcloudmaas.com/v1.

Anthropic format
https://tokenhub-intl.tencentcloudmaas.com

Its Claude Code guide sets ANTHROPIC_BASE_URL to this host; its API overview gives the /v1 address for Anthropic-format tools too.

Notes from its docs

Its docs say:

  • "Capabilities vary by model: Support for thinking modes, tool calling, multimodal features, caching, and certain sampling parameters depends on the specific model used. Some fields in the standard protocol may be ignored or downgraded."
  • "Unsupported Client Parameters: Fields such as top_k, repetition_penalty, modalities, and audio are silently ignored when passed in client requests."
Free to start
One million free tokens per language model, valid for a year, once per root account, until 31 December 2026. Its quick start asks for identity verification, and the free quota comes with part of your balance frozen: USD 30 for Hunyuan models, USD 10 for others.
Top model
Hy4. The dearer of its two Hy4 models; Tencent calls no model a flagship.
On /model
Prices
Tencent Cloud's TokenHub pricing page

Switching from OpenAI's SDK

Code written for OpenAI's SDK needs two changes to run on /model: the base URL and the key. The model name picks the maker, so the same code runs claude-opus-5-5, gemini-4-carbon or kimi-k3.1-pro.

Every chat model here answers in OpenAI's Chat Completions format, and the models from Anthropic, DeepSeek, Moonshot AI, Z.ai, MiniMax, Xiaomi and Tencent in Anthropic's Messages format too, for tools such as Claude Code. Models on each API, in the docs, shows which.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.slashmodel.com/v1",
    api_key=os.environ["SLASHMODEL_API_KEY"],
)

response = client.chat.completions.create(
    model="kimi-k3.1-pro",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

When a maker's own API is the better choice

  • You want a free tier to build on: Google's Gemini API has one on some models, Z.ai's three Flash models are free, and Tencent Cloud gives 1 million free tokens per language model, once.
  • You need a model /model doesn't serve: there's none from xAI here.
  • You use Gemini alone and don't need OpenAI's format: Google recommends calling the Gemini API directly if you don't already use OpenAI's libraries.

When /model is the better choice

  • You use models from several makers and want one key and one balance for all of them.
  • You want them at a discount on their makers' official prices: the table above shows each one.
  • You use OpenAI's GPT models as well: they're on the same key.
  • Your tools speak Anthropic's format, as Claude Code does: on /model the models from Anthropic, DeepSeek, Moonshot AI, Z.ai, MiniMax, Xiaomi and Tencent answer in it as well as in OpenAI's.

Sources

Each maker's lines above link to the pages they come from, all opened on November 28, 2026. Tencent's come from Tencent Cloud's TokenHub docs: its language model API overview, parameter notes, pricing, free quota, quick start and Claude Code guide. Endpoints, free tiers and models change, so check a maker's own docs before you build on them.

The official prices are the makers' own: Anthropic's pricing (opens in a new tab), Google's pricing (opens in a new tab), DeepSeek's pricing (opens in a new tab), Moonshot AI's pricing (opens in a new tab), Z.ai's pricing (opens in a new tab), MiniMax's pricing (opens in a new tab), Xiaomi's pricing (opens in a new tab), Tencent Cloud's TokenHub pricing page and OpenAI's pricing (opens in a new tab).

One key for every model here.

Top up from $10, change one URL, and pay only for the tokens you use.