Receipt on every reply
Every JSON or SSE response returns exact USD usage.cost, verifiable via trace ID.
The newest Claude, GPT, Gemini, DeepSeek and more, at or below the official API price. Keep your OpenAI, Anthropic or Gemini SDK, pay per token from a prepaid balance, and see exact cost on every reply.
$ curl https://api.model.lol/v1/chat/completions \ -H "Authorization: Bearer ml-your-key" \ -d '{ "model": "claude-opus-5-5", "messages": [{"role": "user", "content": "hi"}] }'
Every JSON or SSE response returns exact USD usage.cost, verifiable via trace ID.
At zero balance, calls stop at the gateway with HTTP 402 before reaching any model.
Keep OpenAI, Anthropic, Gemini SDKs or Claude Code. Change one base URL and keep rolling ~…-latest aliases.
Set spend caps, model allow-lists, expiry and reasoning suffixes (-low/-high) per ml-… key.
Send Anthropic Messages to GPT or OpenAI Chat to Claude — streaming, tool calls and images convert automatically.
export ANTHROPIC_BASE_URL=https://api.model.lol export ANTHROPIC_AUTH_TOKEN=ml-your-key export CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1 # /model lists the catalog claude --model claude-opus-5-5
# pip install openai from openai import OpenAI client = OpenAI(base_url="https://api.model.lol/v1", api_key="ml-your-key") r = client.chat.completions.create( model="gpt-6.1-sol", messages=[{"role": "user", "content": "Say hi in one word."}], ) print(r.choices[0].message.content, r.usage.cost)
# pip install anthropic import anthropic client = anthropic.Anthropic(base_url="https://api.model.lol", api_key="ml-your-key") msg = client.messages.create( model="gemini-4-argon", # any model, converted for you max_tokens=64, messages=[{"role": "user", "content": "Say hi in one word."}], ) print(msg.content[0].text)
# pip install google-genai from google import genai client = genai.Client(api_key="ml-your-key", http_options={"base_url": "https://api.model.lol"}) r = client.models.generate_content(model="deepseek-v4.1-flash", contents="Say hi in one word.") print(r.text)
model.lol is a pay-per-token API for the newest flagship LLMs: 29 models from 12 vendors (Anthropic, OpenAI, Google, DeepSeek and more), at up to 93% below the official API price, reachable with one API key through the OpenAI, Anthropic and Gemini API formats and billed from a prepaid balance with no monthly fee.
model.lol 是按 token 计费的最新旗舰大模型 API:12 家厂商(Anthropic、OpenAI、Google、DeepSeek 等)的 29 个模型,最多比官方 API 价低 93%,一把 API key 通过 OpenAI、Anthropic、Gemini 三种接口格式调用,预付余额扣费,没有月费。
Full quickstart →The newest model of each line, at the price your balance is charged per million tokens, and how far that is below the official API price. Updated 2026-12-05.
| model | context | input / 1M | output / 1M | vs official |
|---|---|---|---|---|
| claude-fable-5-2 | 1M | $3.4 | $17 | −57% |
| claude-opus-5-5 | 1M | $0.83 | $4.2 | −79% |
| claude-sonnet-5-5 | 1M | $0.84 | $4.2 | −58% |
| claude-haiku-5-5* | 1M | $0.1 | $0.5 | — |
| gpt-6-astra | 1M | $0.66 | $3.3 | −93% |
| gpt-6.2-astra | 1M | $0.66 | $3.3 | −92% |
| gpt-6.1-sol | 1M | $0.22 | $1.1 | −89% |
| gpt-6.2-sol | 1M | $0.22 | $1.1 | −89% |
| gpt-6.1-terra | 1M | $0.12 | $0.6 | −88% |
| gpt-6-luna | 1M | $0.1 | $0.5 | — |
| gemini-4-argon | 1M | $1.4 | $7.2 | −65% |
| gemini-4-carbon | 1M | $1.4 | $7.2 | −30% |
| gemini-4-neon | 1M | $1.1 | $5.4 | −63% |
| gemini-3.8-flash | 1M | $0.36 | $1.8 | −76% |
| gemini-4-hydrogen | 1M | $0.36 | $1.8 | −76% |
| deepseek-v4-pro* | 1M | $0.79 | $2.4 | −40% |
| deepseek-v4.1-flash* | 1M | $0.18 | $0.72 | −40% |
| qwen4-max | 1M | $0.54 | $1.6 | −64% |
| grok-4.7 | 500K | $0.34 | $1 | −83% |
| kimi-k3.1-pro | 1M | $0.96 | $4.8 | −52% |
| glm-5.4 | 1M | $0.34 | $1.1 | −76% |
| glm-5.3 | 1M | $0.25 | $0.79 | −82% |
| glm-5.3-flash | 1M | $0.09 | $0.3 | −40% |
| longcat-2.5 | 1M | $0.18 | $0.72 | −40% |
* has an off-peak price or a long-prompt price; see the models page.
Short answers about prices, payment and compatibility. The docs have the long ones.
model.lol is a pay-per-token API for the newest flagship LLMs: 29 models from 12 vendors (Anthropic, OpenAI, Google, DeepSeek and more), at up to 93% below the official API price, reachable with one API key through the OpenAI, Anthropic and Gemini API formats and billed from a prepaid balance with no monthly fee.
Every listed model costs at most its vendor's official API price, for input, output and cached tokens alike. 27 of the 29 listed models are below it, by up to 93%; a model priced at the official rate shows no discount. The models page shows the discount next to each price. Models & prices →
Base URL https://api.model.lol. OpenAI: POST /v1/chat/completions and /v1/responses. Anthropic: POST /v1/messages. Gemini: POST /v1beta/models/{model}:generateContent. Any format reaches any model; streaming, tool calls and images work in every format, and the answer comes back in the format you sent. An OpenAI-compatible client needs only a new base URL (https://api.model.lol/v1) and an ml- key. Endpoints →
Set ANTHROPIC_BASE_URL=https://api.model.lol and ANTHROPIC_AUTH_TOKEN to your ml- key, then pick a model such as claude-opus-5-5. Non-Anthropic models work too: model.lol converts the Anthropic Messages request and bills the tokens from your balance. Quick start →
There is no monthly fee and no minimum. Each request is charged per token at its model's listed price (USD per million input, output and cached tokens); writing to the prompt cache costs 1.25× the input price for a 5-minute entry and 2× for a 1-hour one. Some models have a cheaper off-peak price, or a higher price for very long prompts; both are listed with the model. Every answer reports the amount in usage.cost. A request the model refuses, or that content moderation blocks, is charged a violation fee of $0.13. Models & prices →
Top up a prepaid balance on your account page by card or crypto (USDT / USDC), $5 to $1,000 per top-up; each request is then deducted per token. Crypto is credited at the amount actually received.
Yes. Unused balance from a top-up can be refunded if you ask within 14 days of the payment, to the original card; crypto refunds are handled by hand. Refund policy →
Requests are refused with HTTP 402 insufficient_balance before they reach the model. Top up and retry.
Yes. https://model.lol/pricing.json lists the current models with their context windows, prices, discount below the official price (discount_pct), off-peak price and prompt-size tiers, without a key; with a key, GET https://api.model.lol/v1/models returns the callable catalog in OpenAI or Anthropic shape.
Rolling names such as ~anthropic/claude-opus-latest or ~openai/gpt-latest always point at the current model of that line. Pin a versioned id when you need reproducible results.
Yes. Each key can carry a monthly budget, requests-per-minute and tokens-per-minute limits, allowed models, allowed IP ranges and an expiry, and a key never sees other keys’ usage.
每条产品线的最新型号,价格即余额每百万 token 实际扣费,并标出比官方 API 价低多少。更新于 2026-12-05。
| 模型 | 上下文 | 输入 / 1M | 输出 / 1M | 比官方价 |
|---|---|---|---|---|
| claude-fable-5-2 | 1M | $3.4 | $17 | −57% |
| claude-opus-5-5 | 1M | $0.83 | $4.2 | −79% |
| claude-sonnet-5-5 | 1M | $0.84 | $4.2 | −58% |
| claude-haiku-5-5* | 1M | $0.1 | $0.5 | — |
| gpt-6-astra | 1M | $0.66 | $3.3 | −93% |
| gpt-6.2-astra | 1M | $0.66 | $3.3 | −92% |
| gpt-6.1-sol | 1M | $0.22 | $1.1 | −89% |
| gpt-6.2-sol | 1M | $0.22 | $1.1 | −89% |
| gpt-6.1-terra | 1M | $0.12 | $0.6 | −88% |
| gpt-6-luna | 1M | $0.1 | $0.5 | — |
| gemini-4-argon | 1M | $1.4 | $7.2 | −65% |
| gemini-4-carbon | 1M | $1.4 | $7.2 | −30% |
| gemini-4-neon | 1M | $1.1 | $5.4 | −63% |
| gemini-3.8-flash | 1M | $0.36 | $1.8 | −76% |
| gemini-4-hydrogen | 1M | $0.36 | $1.8 | −76% |
| deepseek-v4-pro* | 1M | $0.79 | $2.4 | −40% |
| deepseek-v4.1-flash* | 1M | $0.18 | $0.72 | −40% |
| qwen4-max | 1M | $0.54 | $1.6 | −64% |
| grok-4.7 | 500K | $0.34 | $1 | −83% |
| kimi-k3.1-pro | 1M | $0.96 | $4.8 | −52% |
| glm-5.4 | 1M | $0.34 | $1.1 | −76% |
| glm-5.3 | 1M | $0.25 | $0.79 | −82% |
| glm-5.3-flash | 1M | $0.09 | $0.3 | −40% |
| longcat-2.5 | 1M | $0.18 | $0.72 | −40% |
* 有闲时价或长提示价,详见模型与价格页。
model.lol 是按 token 计费的最新旗舰大模型 API:12 家厂商(Anthropic、OpenAI、Google、DeepSeek 等)的 29 个模型,最多比官方 API 价低 93%,一把 API key 通过 OpenAI、Anthropic、Gemini 三种接口格式调用,预付余额扣费,没有月费。
目录里每个模型的输入、输出、缓存价都不高于厂商官方 API 价。目录 29 个模型里有 27 个低于官方价,最多低 93%;与官方价持平的模型不标折扣。模型与价格页在每个价格旁标出比官方价低多少。 模型与价格 →
Base URL 为 https://api.model.lol。OpenAI:POST /v1/chat/completions、/v1/responses;Anthropic:POST /v1/messages;Gemini:POST /v1beta/models/{model}:generateContent。任意格式都能调任意模型,流式、工具调用、图片在每种格式下都可用,返回格式与请求格式一致。OpenAI 兼容的客户端只需换 base URL(https://api.model.lol/v1)和 ml- 开头的 key。 接口列表 →
设置 ANTHROPIC_BASE_URL=https://api.model.lol,ANTHROPIC_AUTH_TOKEN 设为你的 ml- key,模型填 claude-opus-5-5 或目录里任意 id。非 Anthropic 模型也可以:model.lol 会转换 Anthropic Messages 请求,按 token 从余额扣费。 快速开始 →
没有月费,没有最低消费。每个请求按所用模型的标价按 token 计费(每百万输入、输出、缓存 token 的美元价);写入提示缓存按输入价计:5 分钟缓存 ×1.25,1 小时缓存 ×2。部分模型有更便宜的闲时价,或对超长提示另有一档更高的价格,都和模型一起列出。每次返回的 usage.cost 就是本次扣费金额。被模型拒答或被内容审核拦截的请求,每次收 $0.13 违规处理费。 模型与价格 →
在账户页用银行卡或加密货币(USDT / USDC)给预付余额充值,每次 $5–$1,000,之后每个请求按 token 扣费。加密货币按实际到账金额入账。
可以。充值后 14 天内可申请退还未使用的余额,银行卡原路退回;加密货币退款人工处理。 退款政策 →
请求在到达模型之前直接返回 HTTP 402 insufficient_balance。充值后重试即可。
有。https://model.lol/pricing.json 无需 key,列出当前模型的上下文长度、价格、比官方价低的百分比(discount_pct)、闲时价和按提示长度的阶梯价;有 key 时 GET https://api.model.lol/v1/models 以 OpenAI 或 Anthropic 格式返回可调用的模型。
滚动名称,如 ~anthropic/claude-opus-latest、~openai/gpt-latest,始终指向这条产品线的当前模型。需要结果可复现时请用带版本号的 id。
可以。每把 key 可以设置月度预算、每分钟请求数和 token 数上限、允许的模型、允许的 IP 段和过期时间,且看不到其他 key 的用量。
Create an account, make a key, change one line. Pay only for the tokens you use.