DOCS

Build on Lain OS

One OpenAI-compatible API to every model in the catalog. Keep your OpenAI SDK, change the base URL and the key, and pay per token from your balance.

373 models OpenAI-compatible Streaming Pay per token, no subscription

Quick start

  1. 01Create an accountSign up and top up your balance in Billing with any token on any chain.
  2. 02Get an API keyCreate a key in API Keys. It is shown once, so store it safely.
  3. 03Make a requestUse any OpenAI SDK with our base URL, or try the examples below.

Base URL & keys

Every request carries your Lain API key as a Bearer token. Keys start with lain_; revoke one any time in the dashboard.

Settings
Base URL:      https://lain-os.com/v1
Authorization: Bearer lain_xxxxxxxxxxxxxxxxxxxx

Chat completions

POST /v1/chat/completions takes the standard OpenAI body: model, messages and optional parameters such as temperature, max_tokens or tools, which are passed through to the model.

curl https://lain-os.com/v1/chat/completions \
  -H "Authorization: Bearer $LAIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-haiku-5.5",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Streaming

Set "stream": true to receive the answer as server-sent events while it is generated, exactly like OpenAI's API. The last chunk carries token usage, and the request is billed from it once the stream ends.

stream = client.chat.completions.create(
    model="anthropic/claude-haiku-5.5",
    messages=[{"role": "user", "content": "Tell me a story"}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

List models

GET /v1/models lists the models your key can use. Besides the OpenAI fields, each entry has its display name and pricing in US dollars per 1M tokens.

Models come from more than one provider. OpenRouter's keep their own ids (openai/gpt-oss-120b:free); Groq's fast open models are listed as groq/<id> (for example groq/openai/gpt-oss-120b) and cost nothing while they run on the free tier.

Response
{
    "object": "list",
    "data": [
        {
            "id": "anthropic/claude-haiku-5.5",
            "object": "model",
            "owned_by": "lain-os",
            "name": "Anthropic: Claude Haiku 5.5",
            "pricing": {
                "input": 0.1,
                "output": 0.5
            }
        }
    ]
}

Lain agent & MCP

Every model in the catalog is plain: your messages go to it as sent, nothing added. The Lain OS models — lain-free, lain-lite, lain and lain-pro — are Lain herself: a system prompt, a growing knowledge base, skills, and live read-only tools that run on our side while she answers.

Tools

DEX markets for any token on any chain, coin prices and market caps, on-chain reads of tokens, wallets, transactions and contracts on Robinhood Chain, Ethereum, Base, Arbitrum, OP, BNB Chain and Polygon, DeFi TVL, news, and the Lain OS knowledge base. Nothing signs or moves funds.

Billing

An answer can take several model rounds (each tool result goes back to the model); every round is billed at the model's price, so a tool-heavy answer costs a few replies. lain-free runs on free models.

Over the API they return an ordinary chat completion, plus a lain object with the rounds and tools used. When streaming, tool activity arrives as delta.reasoning and the answer as delta.content. Your own tools keep working: a call to one of them ends the response with finish_reason: "tool_calls" as usual.

MCP server

The same tools (and the skills, as prompts) for any MCP client at https://lain-os.com/mcp, with your API key as the Bearer token. Tool calls cost no credits and are limited to 60 a minute.

{
    "mcpServers": {
        "lain-os": {
            "url": "https://lain-os.com/mcp",
            "headers": {
                "Authorization": "Bearer lain_xxx"
            }
        }
    }
}

Models & pricing

Prices are per 1 million tokens, input / output. Use the id in the model field; click an id to copy it.

ModelInputOutput
Lain OS
Lain lain $0.03 $0.13
Lain Free lain-free Free Free
Lain Lite lain-lite $0.30 $1.20
Lain Pro lain-pro $0.10 $0.50
AionLabs
Aion-2.0 aion-labs/aion-2.0 $0.80 $1.60
Aion-3.0 aion-labs/aion-3.0 $3 $6
Aion-3.0-Mini aion-labs/aion-3.0-mini $0.70 $1.40
Aion-RP 1.0 (8B) aion-labs/aion-rp-llama-3.1-8b $0.80 $1.60
Aion 3.5 aion-labs/aion-3.5 $3 $6
Aion 3.5 Mini aion-labs/aion-3.5-mini $0.70 $1.40
Amazon
Nova 2 Lite amazon/nova-2-lite-v1 $0.30 $2.50
Nova Lite 1.0 amazon/nova-lite-v1 $0.06 $0.24
Nova Micro 1.0 amazon/nova-micro-v1 $0.035 $0.14
Nova Premier 1.0 amazon/nova-premier-v1 $2.50 $12.50
Nova Pro 1.0 amazon/nova-pro-v1 $0.80 $3.20
Anthracite
Magnum v4 72B anthracite-org/magnum-v4-72b $2.50 $5
Anthropic
Claude Fable 5 anthropic/claude-fable-5 $10 $50
Claude Fable 5.1 anthropic/claude-fable-5.1 $10 $50
Claude Fable 5.2 anthropic/claude-fable-5.2 $8 $40
Claude Fable Latest ~anthropic/claude-fable-latest $8 $40
Claude Haiku 4.5 anthropic/claude-haiku-4.5 $1 $5
Claude Haiku 5.5 anthropic/claude-haiku-5.5 $0.10 $0.50
Claude Haiku Latest ~anthropic/claude-haiku-latest $0.10 $0.50
Claude Opus 4.1 anthropic/claude-opus-4.1 $15 $75
Claude Opus 4.5 anthropic/claude-opus-4.5 $5 $25
Claude Opus 4.6 anthropic/claude-opus-4.6 $5 $25
Claude Opus 4.7 anthropic/claude-opus-4.7 $5 $25
Claude Opus 4.8 anthropic/claude-opus-4.8 $5 $25
Claude Opus 5 anthropic/claude-opus-5 $5 $25
Claude Opus 5.5 anthropic/claude-opus-5.5 $4 $20
Claude Opus Latest ~anthropic/claude-opus-latest $4 $20
Claude Sonnet 4.5 anthropic/claude-sonnet-4.5 $3 $15
Claude Sonnet 4.6 anthropic/claude-sonnet-4.6 $3 $15
Claude Sonnet 5 anthropic/claude-sonnet-5 $2 $10
Claude Sonnet 5.5 anthropic/claude-sonnet-5.5 $2 $10
Claude Sonnet Latest ~anthropic/claude-sonnet-latest $2 $10
Baidu
ERNIE-5.5-Flash-Preview (free) baidu/ernie-5.5-flash-preview:free Free Free
ERNIE-Light-DT-1.0 baidu/ernie-light-dt-1.0-intl $1.13 $3.94
ByteDance
UI-TARS 7B bytedance/ui-tars-1.5-7b $0.10 $0.20
ByteDance Seed
Seed-2.0-Lite bytedance-seed/seed-2.0-lite $0.25 $2
Seed-2.0-Mini bytedance-seed/seed-2.0-mini $0.10 $0.40
Seed 2.1 Turbo bytedance-seed/seed-2-1-turbo $0.50 $2.50
Cohere
Command A cohere/command-a $2.50 $10
Command A+ cohere/command-a-plus $0.30 $1.50
Command R (08-2024) cohere/command-r-08-2024 $0.15 $0.60
Command R+ (08-2024) cohere/command-r-plus-08-2024 $2.50 $10
Command R7B (12-2024) cohere/command-r7b-12-2024 $0.0375 $0.15
North Mini Code (free) cohere/north-mini-code:free Free Free
DeepSeek
DeepSeek Flash Latest ~deepseek/deepseek-flash-latest $0.036 $0.50
DeepSeek Pro Latest ~deepseek/deepseek-pro-latest $0.0999 $8
DeepSeek V3 deepseek/deepseek-chat $0.2574 $1.0287
DeepSeek V3 0324 deepseek/deepseek-chat-v3-0324 $0.29 $1.14
DeepSeek V3.1 deepseek/deepseek-chat-v3.1 $0.25 $0.95
DeepSeek V3.1 Terminus deepseek/deepseek-v3.1-terminus $0.27 $1
DeepSeek V3.2 deepseek/deepseek-v3.2 $0.26 $0.38
DeepSeek V3.2 Exp deepseek/deepseek-v3.2-exp $0.27 $0.41
DeepSeek V4 Flash 0423 deepseek/deepseek-v4-flash $0.09 $0.18
DeepSeek V4 Flash 0731 deepseek/deepseek-v4-flash-0731 $0.06 $0.18
DeepSeek V4 Flash Latest ~deepseek/deepseek-v4-flash-latest $0.0434 $0.30
DeepSeek V4 Flash Vision Exp deepseek/deepseek-v4-flash-vision-exp $0.44 $1.32
DeepSeek V4 Pro 0423 deepseek/deepseek-v4-pro $0.90 $1.50
DeepSeek V4 Pro 0813 deepseek/deepseek-v4-pro-0813 $0.111 $4.44
DeepSeek V4.1 Flash deepseek/deepseek-v4.1-flash $0.14 $0.42
DeepSeek V4.1 Flash 1017 deepseek/deepseek-v4.1-flash-1017 $0.036 $0.50
R1 0528 deepseek/deepseek-r1-0528 $0.50 $2.15
Dots Studio
Dots3-Note Preview (free) dots-studio/dots-3-note-preview:free Free Free
Elorian
Glimpse elorian/glimpse $0.60 $3
Fireworks
Ember-1 fireworks/ember-1 $3 $15
Google
Gemini 2.5 Flash google/gemini-2.5-flash $0.30 $2.50
Gemini 2.5 Flash Lite google/gemini-2.5-flash-lite $0.10 $0.40
Gemini 2.5 Pro google/gemini-2.5-pro $1.25 $10
Gemini 2.5 Pro Preview 06-05 google/gemini-2.5-pro-preview $1.25 $10
Gemini 3 Flash Preview google/gemini-3-flash-preview $0.50 $3
Gemini 3.1 Flash Lite google/gemini-3.1-flash-lite $0.25 $1.50
Gemini 3.1 Flash Lite Preview google/gemini-3.1-flash-lite-preview $0.25 $1.50
Gemini 3.1 Pro Preview google/gemini-3.1-pro-preview $2 $12
Gemini 3.1 Pro Preview Custom Tools google/gemini-3.1-pro-preview-customtools $2 $12
Gemini 3.5 Flash google/gemini-3.5-flash $1.50 $9
Gemini 3.5 Flash Lite google/gemini-3.5-flash-lite $0.30 $2.50
Gemini 3.6 Flash google/gemini-3.6-flash $0.75 $3.75
Gemini 3.7 Flash google/gemini-3.7-flash $0.75 $3.75
Gemini 3.8 Flash google/gemini-3.8-flash $0.75 $3.75
Gemini 4 Argon google/gemini-4-argon $2 $10
Gemini 4 Carbon google/gemini-4-carbon $2 $10
Gemini 4 Hydrogen google/gemini-4-hydrogen $1.50 $7.50
Gemini Flash Latest ~google/gemini-flash-latest $1.50 $7.50
Gemini Omni 1.1 Flash google/gemini-omni-1.1-flash $1.50 $9
Gemini Omni 1.2 Flash google/gemini-omni-1.2-flash $1.50 $9
Gemini Pro Latest ~google/gemini-pro-latest $2 $10
Gemma 2 27B google/gemma-2-27b-it $0.65 $0.65
Gemma 3 4B google/gemma-3-4b-it $0.05 $0.10
Gemma 3 12B google/gemma-3-12b-it $0.05 $0.15
Gemma 3 27B google/gemma-3-27b-it $0.08 $0.35
Gemma 4 26B A4B google/gemma-4-26b-a4b-it $0.0675 $0.225
Gemma 4 26B A4B (free) google/gemma-4-26b-a4b-it:free Free Free
Gemma 4 31B google/gemma-4-31b-it $0.20 $0.40
Gemma 4 31B (free) google/gemma-4-31b-it:free Free Free
Lyria 3 Clip Preview google/lyria-3-clip-preview Free Free
Lyria 3 Pro Preview google/lyria-3-pro-preview Free Free
Nano Banana (Gemini 2.5 Flash Image) google/gemini-2.5-flash-image $0.30 $2.50
Nano Banana 2 (Gemini 3.1 Flash Image) google/gemini-3.1-flash-image $0.50 $3
Nano Banana 2 (Gemini 3.1 Flash Image Preview) google/gemini-3.1-flash-image-preview $0.50 $3
Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) google/gemini-3.1-flash-lite-image $0.25 $1.50
Nano Banana 2.1 google/gemini-nano-banana-2.1 $1.50 $7.50
Nano Banana Pro (Gemini 3 Pro Image) google/gemini-3-pro-image $2 $12
Nano Banana Pro (Gemini 3 Pro Image Preview) google/gemini-3-pro-image-preview $2 $12
Gryphe
MythoMax 13B gryphe/mythomax-l2-13b $0.08 $0.11
IBM
Granite 4.2 8B ibm-granite/granite-4.2-8b $0.06 $0.25
inclusionAI
Ling 3.0 Flash inclusionai/ling-3.0-flash $0.021 $0.063
Ling 3.0 Flash VL inclusionai/ling-3.0-flash-vl $0.06 $0.18
Ling 3.0 Tiny inclusionai/ling-3.0-tiny $0.015 $0.045
Ling 3.1 Flash inclusionai/ling-3.1-flash $0.045 $0.135
Ling 3.2 Flash (free) inclusionai/ling-3.2-flash:free Free Free
Inference.net
Schematron V2 Small inference-net/schematron-v2-small $0.05 $0.23
Schematron V2 Turbo inference-net/schematron-v2-turbo $0.03 $0.15
KT
Mi:dm K 3.0 Pro kt/midm-k-3.0-pro $0.20 $0.80
LiquidAI
LFM2.5-24B-A2B liquid/lfm-2.5-24b-a2b $0.05 $0.70
LFM3-1.7B liquid/lfm-3-1.7b $0.08 $0.20
LFM3-1.7B (free) liquid/lfm-3-1.7b:free Free Free
Mancer
Weaver (alpha) mancer/weaver $0.30 $0.50
Meituan
LongCat 2.0 meituan/longcat-2.0 $0.30 $1.20
Meta
Llama 3.1 8B Instruct meta-llama/llama-3.1-8b-instruct $0.02 $0.04
Llama 3.1 70B Instruct meta-llama/llama-3.1-70b-instruct $0.72 $0.72
Llama 3.2 1B Instruct meta-llama/llama-3.2-1b-instruct $0.027 $0.201
Llama 3.2 3B Instruct meta-llama/llama-3.2-3b-instruct $0.0509 $0.335
Llama 3.3 70B Instruct meta-llama/llama-3.3-70b-instruct $0.71 $0.71
Llama 4 Maverick meta-llama/llama-4-maverick $0.35 $1
Llama 4 Scout meta-llama/llama-4-scout $0.10 $0.30
Llama Guard 4 12B meta-llama/llama-guard-4-12b $0.18 $0.18
Muse Ember meta/muse-ember $0.10 $0.50
Muse Glimmer 30B meta/muse-glimmer-30b $0.30 $1.20
Muse Spark 1.1 meta/muse-spark-1.1 $1.25 $4.25
Muse Spark 1.2 meta/muse-spark-1.2 $1.25 $4.25
Muse Spark 1.3 meta/muse-spark-1.3 $1.25 $4.25
Muse Spark Open meta/muse-spark-open $1.25 $4.25
Muse Wonder meta/muse-wonder $4 $20
Microsoft
Phi 4 microsoft/phi-4 $0.07 $0.14
MiniMax
MiniMax M2.5 minimax/minimax-m2.5 $0.295 $1.20
MiniMax M2.7 minimax/minimax-m2.7 $0.21 $0.84
MiniMax M3 minimax/minimax-m3 $0.30 $1.20
MiniMax M3.1 Flash minimax/minimax-m3.1-flash $0.15 $0.60
Mistral
Codestral 2508 mistralai/codestral-2508 $0.30 $0.90
Devstral 2 2512 mistralai/devstral-2512 $0.40 $2
Ministral 3 3B 2512 mistralai/ministral-3b-2512 $0.10 $0.10
Ministral 3 8B 2512 mistralai/ministral-8b-2512 $0.15 $0.15
Ministral 3 14B 2512 mistralai/ministral-14b-2512 $0.20 $0.20
Mistral Large mistralai/mistral-large $2 $6
Mistral Large 3 2512 mistralai/mistral-large-2512 $0.50 $1.50
Mistral Large 4 mistralai/mistral-large-4-0 $0.70 $2.10
Mistral Large 2407 mistralai/mistral-large-2407 $2 $6
Mistral Medium 3 mistralai/mistral-medium-3 $0.40 $2
Mistral Medium 3.1 mistralai/mistral-medium-3.1 $0.40 $2
Mistral Medium 3.5 mistralai/mistral-medium-3-5 $1.50 $7.50
Mistral Nemo mistralai/mistral-nemo $0.029 $0.03
Mistral Small 3 mistralai/mistral-small-24b-instruct-2501 $0.05 $0.08
Mistral Small 3.1 24B mistralai/mistral-small-3.1-24b-instruct $0.351 $0.555
Mistral Small 3.2 24B mistralai/mistral-small-3.2-24b-instruct $0.10 $0.30
Mistral Small 4 mistralai/mistral-small-2603 $0.15 $0.60
Mixtral 8x22B Instruct mistralai/mixtral-8x22b-instruct $2 $6
Saba mistralai/mistral-saba $0.20 $0.60
Voxtral Small 24B 2507 mistralai/voxtral-small-24b-2507 $0.10 $0.30
Moondream
Moondream 3 Preview moondream/moondream3-preview $0.30 $2.50
Moondream 3.1 moondream/moondream3.1-9b-a2b $0.30 $2.50
MoonshotAI
Kimi K2 0711 moonshotai/kimi-k2 $0.57 $2.30
Kimi K2 0905 moonshotai/kimi-k2-0905 $0.60 $2.50
Kimi K2 Thinking moonshotai/kimi-k2-thinking $0.60 $2.50
Kimi K2.5 moonshotai/kimi-k2.5 $0.50 $2.50
Kimi K2.6 moonshotai/kimi-k2.6 $0.65 $3.41
Kimi K2.7 Code moonshotai/kimi-k2.7-code $0.60 $3.50
Kimi K3 moonshotai/kimi-k3 $0.192 $16
Kimi K3.1 Pro moonshotai/kimi-k3.1-pro $2.30 $11.50
Kimi Latest ~moonshotai/kimi-latest $0.1824 $11.0055
Morph
Morph V3 Fast morph/morph-v3-fast $0.80 $1.20
Morph V3 Large morph/morph-v3-large $0.90 $1.90
Motif Technologies
Motif 3 motif-technologies/motif-3 $0.30 $1.20
Nex AGI
Nex-N2.5-Mini nex-agi/nex-n2.5-mini $0.025 $0.10
Nex-N2.5-Pro nex-agi/nex-n2.5-pro $0.075 $0.25
Nex-N2.6 nex-agi/nex-n2.6 $0.12 $0.40
Nous
Hermes 4 405B nousresearch/hermes-4-405b $1 $3
NVIDIA
Nemotron 3 Nano 30B A3B nvidia/nemotron-3-nano-30b-a3b $0.06 $0.24
Nemotron 3 Nano Omni (free) nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free Free Free
Nemotron 3 Super nvidia/nemotron-3-super-120b-a12b $0.075 $0.40
Nemotron 3 Ultra nvidia/nemotron-3-ultra-550b-a55b $0.60 $2.40
Nemotron 3 Ultra (free) nvidia/nemotron-3-ultra-550b-a55b:free Free Free
Nemotron 3.5 Content Safety nvidia/nemotron-3.5-content-safety $0.20 $0.20
Nemotron 3.5 Lightning nvidia/nemotron-3.5-lightning $0.07 $0.20
Nemotron 3.5 Lightning (free) nvidia/nemotron-3.5-lightning:free Free Free
Nemotron 3.5 Super VL nvidia/nemotron-3.5-super-vl $0.15 $0.50
Nemotron 3.5 Super VL (free) nvidia/nemotron-3.5-super-vl:free Free Free
OpenAI
GPT-3.5 Turbo (older v0613) openai/gpt-3.5-turbo-0613 $1 $2
GPT-3.5 Turbo 16k openai/gpt-3.5-turbo-16k $3 $4
GPT-4 openai/gpt-4 $30 $60
GPT-4.1 openai/gpt-4.1 $2 $8
GPT-4.1 Mini openai/gpt-4.1-mini $0.40 $1.60
GPT-4.1 Nano openai/gpt-4.1-nano $0.10 $0.40
GPT-4o openai/gpt-4o $2.50 $10
GPT-4o (2024-05-13) openai/gpt-4o-2024-05-13 $5 $15
GPT-4o (2024-08-06) openai/gpt-4o-2024-08-06 $2.50 $10
GPT-4o (2024-11-20) openai/gpt-4o-2024-11-20 $2.50 $10
GPT-4o-mini openai/gpt-4o-mini $0.15 $0.60
GPT-4o-mini (2024-07-18) openai/gpt-4o-mini-2024-07-18 $0.15 $0.60
GPT-5 openai/gpt-5 $1.25 $10
GPT-5 Image openai/gpt-5-image $10 $10
GPT-5 Image Mini openai/gpt-5-image-mini $2.50 $2
GPT-5 Mini openai/gpt-5-mini $0.25 $2
GPT-5 Nano openai/gpt-5-nano $0.05 $0.40
GPT-5 Pro openai/gpt-5-pro $15 $120
GPT-5.1 openai/gpt-5.1 $1.25 $10
GPT-5.1-Codex openai/gpt-5.1-codex $1.25 $10
GPT-5.1-Codex-Max openai/gpt-5.1-codex-max $1.25 $10
GPT-5.1-Codex-Mini openai/gpt-5.1-codex-mini $0.25 $2
GPT-5.2 openai/gpt-5.2 $1.75 $14
GPT-5.2 Pro openai/gpt-5.2-pro $21 $168
GPT-5.2-Codex openai/gpt-5.2-codex $1.75 $14
GPT-5.3-Codex openai/gpt-5.3-codex $1.75 $14
GPT-5.4 openai/gpt-5.4 $2.50 $15
GPT-5.4 Image 2 openai/gpt-5.4-image-2 $8 $15
GPT-5.4 Mini openai/gpt-5.4-mini $0.75 $4.50
GPT-5.4 Nano openai/gpt-5.4-nano $0.20 $1.25
GPT-5.4 Pro openai/gpt-5.4-pro $30 $180
GPT-5.5 openai/gpt-5.5 $5 $30
GPT-5.5 Pro openai/gpt-5.5-pro $30 $180
GPT-5.6 Luna openai/gpt-5.6-luna $0.20 $1.20
GPT-5.6 Luna Pro openai/gpt-5.6-luna-pro $0.20 $1.20
GPT-5.6 Sol openai/gpt-5.6-sol $4 $20
GPT-5.6 Sol Pro openai/gpt-5.6-sol-pro $4 $20
GPT-5.6 Terra openai/gpt-5.6-terra $2 $12
GPT-5.6 Terra Pro openai/gpt-5.6-terra-pro $2 $12
GPT-6 Astra openai/gpt-6-astra $10 $50
GPT-6 Astra Pro openai/gpt-6-astra-pro $10 $50
GPT-6 Luna openai/gpt-6-luna $0.10 $0.50
GPT-6 Luna Pro openai/gpt-6-luna-pro $0.10 $0.50
GPT-6 Sol openai/gpt-6-sol $2 $10
GPT-6 Sol Pro openai/gpt-6-sol-pro $2 $10
GPT-6.1 Sol openai/gpt-6.1-sol $2 $10
GPT-6.1 Sol Pro openai/gpt-6.1-sol-pro $2 $10
GPT-6.1 Terra openai/gpt-6.1-terra $1 $5
GPT-6.1 Terra Pro openai/gpt-6.1-terra-pro $1 $5
gpt-oss-20b openai/gpt-oss-20b $0.075 $0.30
gpt-oss-safeguard-20b openai/gpt-oss-safeguard-20b $0.075 $0.30
GPT-OSS 120B gpt-oss-120b $1 $5
GPT Astra Latest ~openai/gpt-astra-latest $10 $50
GPT Audio openai/gpt-audio $2.50 $10
GPT Audio Mini openai/gpt-audio-mini $0.60 $2.40
GPT Chat Latest openai/gpt-chat-latest $5 $30
GPT Luna Latest ~openai/gpt-luna-latest $0.10 $0.50
GPT Mini Latest ~openai/gpt-mini-latest $0.75 $4.50
GPT Sol Latest ~openai/gpt-sol-latest $2 $10
GPT Terra Latest ~openai/gpt-terra-latest $1 $5
o3 openai/o3 $2 $8
o3 Pro openai/o3-pro $20 $80
OpenRouter
Lain Router lain-router $1 $5
Particle AI
Particle-1 particle-ai/particle-1 $0.06 $0.50
Particle-1 (free) particle-ai/particle-1:free Free Free
Perceptron
Perceptron Mk1 perceptron/perceptron-mk1 $0.15 $1.50
Perceptron Mk1.5 perceptron/perceptron-mk1.5 $0.15 $1.50
Perplexity
Sonar perplexity/sonar $1 $1
Sonar Deep Research perplexity/sonar-deep-research $2 $8
Sonar Pro perplexity/sonar-pro $3 $15
Sonar Pro Search perplexity/sonar-pro-search $3 $15
Sonar Reasoning Pro perplexity/sonar-reasoning-pro $2 $8
PrismML
Ternary Bonsai 2 9B prism-ml/ternary-bonsai-2-9b $0.08 $0.13
Ternary Bonsai 2 27B prism-ml/ternary-bonsai-2-27b $0.075 $0.50
Qwen
Qwen-Plus qwen/qwen-plus $0.26 $0.78
Qwen2.5 72B Instruct qwen/qwen-2.5-72b-instruct $0.36 $0.40
Qwen2.5 Coder 32B Instruct qwen/qwen-2.5-coder-32b-instruct $0.66 $1
Qwen2.5 VL 72B Instruct qwen/qwen2.5-vl-72b-instruct $0.80 $1
Qwen3 14B qwen/qwen3-14b $0.12 $0.24
Qwen3 30B A3B qwen/qwen3-30b-a3b $0.12 $0.50
Qwen3 30B A3B Instruct 2507 qwen/qwen3-30b-a3b-instruct-2507 $0.10 $0.30
Qwen3 32B qwen/qwen3-32b $0.08 $0.28
Qwen3 235B A22B Instruct 2507 qwen/qwen3-235b-a22b-2507 $0.14 $0.80
Qwen3 235B A22B Thinking 2507 qwen/qwen3-235b-a22b-thinking-2507 $0.45 $3.50
Qwen3 Coder 30B A3B Instruct qwen/qwen3-coder-30b-a3b-instruct $0.15 $0.60
Qwen3 Coder 480B A35B qwen/qwen3-coder $0.30 $1
Qwen3 Coder Flash qwen/qwen3-coder-flash $0.195 $0.975
Qwen3 Coder Next qwen/qwen3-coder-next $0.12 $0.80
Qwen3 Next 80B A3B Instruct qwen/qwen3-next-80b-a3b-instruct $0.09 $1.10
Qwen3 VL 8B Instruct qwen/qwen3-vl-8b-instruct $0.25 $0.75
Qwen3 VL 30B A3B Instruct qwen/qwen3-vl-30b-a3b-instruct $0.15 $0.60
Qwen3 VL 235B A22B Instruct qwen/qwen3-vl-235b-a22b-instruct $0.21 $1.90
Qwen3.5 397B A17B qwen/qwen3.5-397b-a17b $0.45 $3
Qwen3.5 Plus 2026-02-15 qwen/qwen3.5-plus-02-15 $0.26 $1.56
Qwen3.5 Plus 2026-04-20 qwen/qwen3.5-plus-20260420 $0.30 $1.80
Qwen3.5-9B qwen/qwen3.5-9b $0.109 $0.16
Qwen3.5-27B qwen/qwen3.5-27b $0.26 $2.60
Qwen3.5-35B-A3B qwen/qwen3.5-35b-a3b $0.14 $1
Qwen3.5-122B-A10B qwen/qwen3.5-122b-a10b $0.26 $2.08
Qwen3.5-Flash qwen/qwen3.5-flash-02-23 $0.065 $0.26
Qwen3.6 27B qwen/qwen3.6-27b $0.32 $3.20
Qwen3.6 35B A3B qwen/qwen3.6-35b-a3b $0.10 $0.90
Qwen3.6 Flash qwen/qwen3.6-flash $0.1875 $1.125
Qwen3.6 Plus qwen/qwen3.6-plus $0.325 $1.95
Qwen3.7 Flash qwen/qwen3.7-flash $0.03 $0.13
Qwen3.7 Max qwen/qwen3.7-max $1.475 $4.425
Qwen3.7 Plus qwen/qwen3.7-plus $0.32 $1.28
Qwen3.8 2.4T A95B qwen/qwen3.8-2.4t-a95b $2 $6
Qwen3.8 27B qwen/qwen3.8-27b $0.15 $1.875
Qwen3.8 Flash qwen/qwen3.8-flash $0.15 $0.47
Qwen3.8 Max (0902) qwen/qwen3.8-max-0902 $2 $6
Qwen3.8 Max Prime qwen/qwen3.8-max-prime $4 $12
Qwen3.8 Omni Flash qwen/qwen3.8-omni-flash $0.15 $0.47
Qwen4 Max qwen/qwen4-max $1.50 $4.50
Recursive
Flint (free) recursive/flint-v1.0:free Free Free
Reflection
Beam 1.0 501B A23B reflection/beam-1.0-501b-a23b $0.30 $1
Reka
Reka Edge rekaai/reka-edge $0.10 $0.10
Reka Flash 3 rekaai/reka-flash-3 $0.10 $0.20
Relace
Relace Apply 3 relace/relace-apply-3 $0.85 $1.25
Relace Search relace/relace-search $1 $3
Ricursive
Ripple 65B Preview ricursiveai/ripple-65b-preview $0.10 $0.30
Sakana
Fugu Max sakana/fugu-max $2 $6
Fugu Ultra sakana/fugu-ultra $5 $30
Fugu Ultra v2 sakana/fugu-ultra-v2 $5 $30
Sao10K
Llama 3 8B Lunaris sao10k/l3-lunaris-8b $0.04 $0.05
Llama 3.1 Euryale 70B v2.2 sao10k/l3.1-euryale-70b $0.85 $0.85
ScaleDown
Extract scaledown/extract $0.04 Free
Summarize scaledown/summarize $0.04 Free
SpaceXAI
Grok 4.3 x-ai/grok-4.3 $1.25 $2.50
Grok 4.5 x-ai/grok-4.5 $2 $6
Grok 4.6 x-ai/grok-4.6 $2 $6
Grok 4.7 x-ai/grok-4.7 $2 $6
Grok 4.20 x-ai/grok-4.20 $1.25 $2.50
Grok 4.20 Multi-Agent x-ai/grok-4.20-multi-agent $1.25 $2.50
Grok Build 0.1 x-ai/grok-build-0.1 $1 $2
Grok Latest ~x-ai/grok-latest $2 $6
StepFun
Step 3.7 Flash stepfun/step-3.7-flash $0.20 $1.15
Step 5 Preview stepfun/step-5-preview $1 $2.70
Tencent
Hy-MT2-1.8B tencent/hy-mt2-1.8b $0.044 $0.177
Hy-MT2-7B tencent/hy-mt2-7b $0.074 $0.295
Hy-MT2-30B-A3B tencent/hy-mt2-30b-a3b $0.074 $0.295
Hy3 tencent/hy3 $0.132 $0.528
Hy3 preview tencent/hy3-preview $0.18 $0.60
Hy4 tencent/hy4 $0.417 $1.2505
Hy4 preview tencent/hy4-preview $0.834 $2.501
TheDrummer
Cydonia 24B V4.1 thedrummer/cydonia-24b-v4.1 $0.30 $0.50
Skyfall 36B V2 thedrummer/skyfall-36b-v2 $0.55 $0.80
UnslopNemo 12B thedrummer/unslopnemo-12b $0.40 $0.40
Thinking Machines
Inkling thinkingmachines/inkling $1 $4.05
Inkling 2 Small thinkingmachines/inkling-2-small $0.30 $1
Inkling 2 Small (free) thinkingmachines/inkling-2-small:free Free Free
Inkling Small thinkingmachines/inkling-small $0.45 $1.20
Unbiased
Pareto 26.9 unbiased/pareto-26.9 $2.50 $7.50
Pareto 26.10 unbiased/pareto-26.10 $0.80 $3.20
Pareto Latest ~unbiased/pareto-latest $0.80 $3.20
Undi95
ReMM SLERP 13B undi95/remm-slerp-l2-13b $0.30 $0.50
Upstage
Solar Mini 4 upstage/solar-mini4 $0.05 $0.20
Solar Pro 4 upstage/solar-pro4 $0.15 $0.60
Venice
Uncensored cognitivecomputations/dolphin-mistral-24b-venice-edition $0.20 $0.90
Writer
Palmyra X5 writer/palmyra-x5 $0.60 $6
Xiaomi
MiMo-V2.5 xiaomi/mimo-v2.5 $0.40 $2
MiMo-V2.5-Pro xiaomi/mimo-v2.5-pro $0.435 $0.87
MiMo-V2.6-Flash xiaomi/mimo-v2.6-flash $0.14 $0.28
MiMo-V2.6-Pro xiaomi/mimo-v2.6-pro $0.435 $0.87
MiMo-V2.6-Pro-UltraSpeed xiaomi/mimo-v2.6-pro-ultraspeed $4.35 $8.70
Z.ai
GLM 4.5 z-ai/glm-4.5 $0.60 $2.20
GLM 4.5 Air z-ai/glm-4.5-air $0.13 $0.85
GLM 4.5V z-ai/glm-4.5v $0.60 $1.80
GLM 4.6 z-ai/glm-4.6 $0.50 $2
GLM 4.6V z-ai/glm-4.6v $0.30 $0.90
GLM 4.7 z-ai/glm-4.7 $0.40 $1.75
GLM 4.7 Flash z-ai/glm-4.7-flash $0.0605 $0.40
GLM 5 z-ai/glm-5 $1 $3.20
GLM 5 Turbo z-ai/glm-5-turbo $1.20 $4
GLM 5.1 z-ai/glm-5.1 $1.40 $4.40
GLM 5.2 z-ai/glm-5.2 $0.007 $6.80
GLM 5.3 z-ai/glm-5.3 $0.0699 $1.40
GLM 5.3 Flash z-ai/glm-5.3-flash $0.0399 $0.0784
GLM 5.3 FlashX z-ai/glm-5.3-flashx $0.37 $1.25
GLM 5.3 FlashX Legal z-ai/glm-5.3-flashx-legal $0.37 $1.25
GLM 5.3 Prime z-ai/glm-5.3-prime $2.80 $8.80
GLM 5V Turbo z-ai/glm-5v-turbo $1.20 $4
GLM Flash Latest ~z-ai/glm-flash-latest $0.0399 $0.0784
GLM Latest ~z-ai/glm-latest $0.0699 $1.40
No models match “”.

Billing

There is no subscription. Each request is charged from your balance by the tokens it used, at the model's price above; if the upstream provider charges more for a request (very long prompts, routers), you pay what it actually cost. Failed upstream requests are free.

Top up in Billing with any token on any chain; it arrives as USDC credit. Every request is itemised in Usage. When the balance reaches zero, requests return 402 until you top up.

Errors & limits

Errors use OpenAI's shape, {"error": {"message": "…", "type": "…"}}, so SDKs raise their usual exceptions.

StatusTypeMeaning
400invalid_request_errorUnknown or disabled model, or a malformed body.
401invalid_request_errorMissing or invalid API key.
402insufficient_quotaYour balance is empty. Top up in Billing.
403invalid_request_errorThe account is disabled.
429—More than 60 requests a minute per account.
502api_errorThe upstream model provider failed. Nothing is charged.

Chat app, phone, extension & TUI

Chat in the browser

Every model with search, conversation history, file uploads and agents at chat.lain-os.com. Sign in with your Lain OS account; messages are billed from the same balance.

Lain OS TUI

The terminal agent. Install it with the command below, then point it at this API in its .env with your key.

Android app

The chat as an app (LainOS.apk). Share any text or link to Ask Lain from another app and a new chat opens with it typed in; long-press the icon for a new chat, the desktop or the roadmap.

Browser extension

Lain in the browser's side panel (LainOS-extension.zip): select text → Ask Lain, Summarise this page, or select a contract address → Research this token. It uses your own API key; Alt+L opens it.

curl -fsSL https://lain-os.com/install.sh | sh

The Wired

Community compute. Ask for wired/<model> with the same key and the request runs on an online node that serves that model, at that node's price per token (free nodes cost nothing). /v1/models lists what is online. Answers arrive in one piece; a streamed request gets the whole answer as one chunk. If no node serves the model you get 503, if none answers in time 504.

Other people's machines run these prompts and their operators can read them, so don't send secrets. Lain erases the prompt and the answer once delivered; each job has a public receipt with its cost and hashes. Have a GPU? Run a node and earn credits.