Documentation / API
API Reference
Use the OpenAI-compatible API to discover available models and send requests.
API base URL
https://3srouter.top/api/v1GET
/modelsList models available to your API key.
POST
/chat/completionsCreate a chat completion, optionally streamed.
Chat completions
curl https://3srouter.top/api/v1/chat/completions \
-H "Authorization: Bearer $THREESROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_AVAILABLE_MODEL",
"messages": [{"role": "user", "content": "Hello!"}]
}'Request fields
| Field | Type | Description |
|---|---|---|
model | string | An enabled model identifier. |
messages | array | Messages with role and content. |
stream | boolean | Return server-sent events. |
Advanced parameters depend on the selected model. View source