AnyRouter Auto
Virtual modelanyrouter/auto— context · Jun 2026 · 7 upstreamsupstream上游
Top usage + top stable platform models mixing free-tier and credit-billed routes, with health-aware fallback. Tools are optional — pass `tools` when you need them. Billed at each hop's rate ($0 on free hops).
Min-context shortcuts:
anyrouter/auto[500k]anyrouter/auto[1m]- members nowthành viên当前成员
- —
- output / 1M rangekhoảng giá ra / 1M输出 / 1M 区间
- —
- min contextngữ cảnh tối thiểu最小上下文
- —
- routingđịnh tuyến路由
- ranked · health
Top usage + top stable platform models mixing free-tier and credit-billed routes, with health-aware fallback. Tools are optional — pass `tools` when you need them. Billed at each hop's rate ($0 on free hops).
Upstreams and pricingUpstream và giá上游与价格
Try itDùng thử试用
Send a promptGửi một prompt发送提示词
Call this id from your code; another provider takes over when one fails.Gọi id này từ code của bạn; khi một provider lỗi, provider khác sẽ thay thế.在代码里调用这个 id;一个供应商失败时,另一个自动接手。 How it works →Cách hoạt động →了解做法 →
Create an API key for this model →Tạo API key cho model này →为此模型创建 API 密钥 →CodeMã代码
POST /api/v1/chat/completionsSDK docsTài liệu SDKSDK 文档
import osfrom openai import OpenAI client = OpenAI( api_key=os.environ["ANYROUTER_API_KEY"], base_url="https://anyrouter.dev/api/v1",) resp = client.chat.completions.create( model="anyrouter/auto", messages=[{"role": "user", "content": "Say hi in 3 words."}],)print(resp.choices[0].message.content)