1 requests and 90 tokens · 2026-09-04
# pin every request to Tencent Cloud
curl https://www.ninjachat.ai/api/v1/chat/completions \
-H "Authorization: Bearer $NINJACHAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hy4-preview",
"messages": [{ "role": "user", "content": "Hello!" }],
"routing": { "providers": { "only": ["tencent"] } }
}'