50% off through 1 Sep
Sale through 1 Sep — Qwen3.8-27B and DeepSeek-V4-Flash at half list. After that, billing goes back to list. Same ids, same API.
| Model | List (in / out per 1M) | Sale through 1 Sep |
|---|---|---|
qwen/qwen3.8-27b | $0.30 / $3.25 | $0.15 / $1.625 |
deepseek/deepseek-v4-flash | $0.14 / $0.28 | $0.07 / $0.14 |
Qwen3.8-27B: 262K context, thinking, tools — the 27B you leave on for coding. DeepSeek-V4-Flash: 500K context, zippy chat. Release note.
Call them
Point the OpenAI SDK at AnyRouter, or use the AI SDK. Same model string either way — you're already on sale rates.
import OpenAI from "openai"
const client = new OpenAI({
baseURL: "https://anyrouter.dev/api/v1",
apiKey: process.env.ANYROUTER_API_KEY,
})
const res = await client.chat.completions.create({
model: "qwen/qwen3.8-27b",
messages: [{ role: "user", content: "Summarize this diff in three bullets." }],
})
console.log(res.choices[0]?.message.content)import { createAnyRouter } from "@anyr/ai-sdk-provider"
import { generateText } from "ai"
const anyrouter = createAnyRouter()
const { text } = await generateText({
model: anyrouter("qwen/qwen3.8-27b"),
prompt: "Summarize this diff in three bullets.",
})
console.log(text)Coding agent: anyr login then anyr claude --model "qwen/qwen3.8-27b" (setup). No code: playground.
Related posts
Use AnyRouter with the Vercel AI SDK
@anyr/ai-sdk-provider wraps the AnyRouter gateway as a standard Vercel AI SDK provider. Call createAnyRouter(), pass a provider/model id, and generateText, streamText, and generateObject work unchanged — switching models is a one-string edit.
Run coding agents through one gateway
Point Claude Code, Codex, OpenCode, Cursor, or any OpenAI-compatible tool at AnyRouter and get one key for every model, unified billing, per-request audit logs, and app attribution. Two environment variables — or one npx command with the anyr CLI launcher.
Use the OpenAI SDK with any model
The official openai package for Python and TypeScript doesn't have to mean OpenAI models. Override base_url and api_key, keep every other call the same, and address 170+ models across 28+ providers as provider/model strings — including OpenAI's own.
What is AnyRouter? A plain-English guide to AI model routing
An AI model router lets you call many LLMs through one API. Here's what AnyRouter is, why it exists, and whether it's useful for your next project.
Route your first request in 2 minutes
Start free with your own keys, or top up and pay per token. Get $4/mo in credits and free models on Go — $2/mo, or free when you donate a provider key.
Start free