Quick Start Your First Call
First curl Call
Use curl to verify model listing and make one chat completion request
1. Verify Model List
Replace the Base URL and API Key with your own values:
curl https://api.routescope.ai/v1/models \
-H "Authorization: Bearer sk-your-full-secret"Confirm that the response includes at least one model ID you can call.
2. Send a Chat Completion Request
Use a model ID copied from the model gallery or model list response:
curl https://api.routescope.ai/v1/chat/completions \
-H "Authorization: Bearer sk-your-full-secret" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model-id",
"messages": [
{
"role": "user",
"content": "Hello, please reply with one short sentence."
}
]
}'If the request succeeds, the response should contain assistant output and usage information where supported by the upstream model.
3. Confirm in the Console
- Open Operation Records.
- Search by token name, model name, date, or request ID.
- Review request status, input/output, token usage, and cost.
- If the call failed, use the error message and request details to troubleshoot.
How is this guide?
Last updated on