Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
通过 Portkey 自定义主机转发 AI Sonar 的 OpenAI 兼容聊天流量
$PORTKEY_API_KEY
https://api.aisonar.dev/v1
openai
$API_KEY
gpt-5.4-mini
curl https://api.portkey.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "x-portkey-api-key: $PORTKEY_API_KEY" \ -H "x-portkey-custom-host: https://api.aisonar.dev/v1" \ -H "x-portkey-provider: openai" \ -H "Authorization: Bearer $API_KEY" \ -d '{ "model": "gpt-5.4-mini", "messages": [{"role": "user", "content": "Say hello."}] }'