获取额度
购买兑换码,回到控制台兑换到账。
一个 API Key,接入多种 AI 模型。按照这条最短路径,完成充值、选模型、创建密钥和第一次请求。
将示例中的密钥和模型 ID 替换成你自己的值。模型 ID 以模型广场当前展示为准。
curl https://milorouter.com/v1/chat/completions \
-H "Authorization: Bearer $MILOROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model-id",
"messages": [{"role": "user", "content": "Hello"}]
}'