Skip to content

CTS Router API Reference

All requests must include a Bearer token in the Authorization header:

Authorization: Bearer cts_live_your_key_here

Base URL: https://api.creativetechstudios.org/v1


Generates model completions adhering strictly to the standard OpenAI JSON schema.

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.
{
"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
}
}

Returns all active models currently available on your account and routing tier.