CTS Router API Reference
All requests must include a Bearer token in the Authorization header:
Authorization: Bearer cts_live_your_key_hereBase URL: https://api.creativetechstudios.org/v1
1. Chat Completions
Section titled “1. Chat Completions”POST /v1/chat/completions
Section titled “POST /v1/chat/completions”Generates model completions adhering strictly to the standard OpenAI JSON schema.
Request Body Parameters
Section titled “Request Body Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
model |
string |
Yes | Model identifier or dynamic alias (e.g. deepseek-r1-distill, claude-3-7-sonnet, auto-fast). |
messages |
array |
Yes | Array of message objects (role, content). |
temperature |
number |
No | Sampling temperature between 0.0 and 2.0. Default: 0.7. |
stream |
boolean |
No | If true, returns server-sent events (SSE). Default: false. |
max_tokens |
integer |
No | Maximum token ceiling for output generation. |
fallback_models |
array |
No | Array of fallback model IDs to execute on upstream timeout. |
Example Response (Non-Streaming)
Section titled “Example Response (Non-Streaming)”{ "id": "chatcmpl-018f23bc-789a", "object": "chat.completion", "created": 1728691200, "model": "deepseek-r1-distill", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "On-device processing keeps execution local to your hardware..." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 28, "completion_tokens": 142, "total_tokens": 170 }}2. Models List
Section titled “2. Models List”GET /v1/models
Section titled “GET /v1/models”Returns all active models currently available on your account and routing tier.