AnyRouter BYOK
Virtual modelanyrouter/byok— context · Jun 2026 · 51 upstreamsupstream上游
Automatically routes across every model your own provider keys (BYOK) can reach. Add keys in the dashboard and they become available here instantly. Billed by your provider, never by AnyRouter credits.
Min-context shortcuts:
anyrouter/byok[500k]anyrouter/byok[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路由
- your keys first
Automatically routes across every model your own provider keys (BYOK) can reach. Add keys in the dashboard and they become available here instantly. Billed by your provider, never by AnyRouter credits.
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/byok", messages=[{"role": "user", "content": "Say hi in 3 words."}],)print(resp.choices[0].message.content)