Giảm 50% đến 1 tháng 9
Sale đến 1 tháng 9 — Qwen3.8-27B và DeepSeek-V4-Flash nửa list. Sau đó billing về list. Cùng id, cùng API.
| Model | List (in / out per 1M) | Sale đến 1 tháng 9 |
|---|---|---|
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: ngữ cảnh 262K, thinking, tools — 27B để mở suốt lúc coding. DeepSeek-V4-Flash: ngữ cảnh 500K, chat nhanh. Ghi chú phát hành.
Gọi chúng
Chỉ OpenAI SDK vào AnyRouter, hoặc dùng AI SDK. Cùng chuỗi model — bạn đã ở giá sale.
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 rồi anyr claude --model "qwen/qwen3.8-27b" (setup). Không code: playground.
Bài liên quan
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.
Gửi request đầu trong hai phút
Bắt đầu miễn phí với key của bạn, hoặc nạp rồi trả theo token. Go: $4 credit/tháng — $2/tháng, hoặc miễn phí khi góp một provider key.
Bắt đầu miễn phí