Skip to content

CTS Router Quickstart

CTS Model Router provides an OpenAI-compatible API interface. You can use standard official client libraries by pointing the base URL to our gateway.


Generate an API key from the CTS Router Developer Console. Store your key in an environment variable:

Terminal window
export CTS_API_KEY="cts_live_..."

Terminal window
curl -X POST https://api.creativetechstudios.org/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $CTS_API_KEY" \
-d '{
"model": "deepseek-r1-distill",
"messages": [
{"role": "system", "content": "You are a concise technical assistant."},
{"role": "user", "content": "Explain the difference between on-device and edge routing."}
],
"temperature": 0.2
}'

To stream tokens in real-time with sub-second time-to-first-token (TTFT), pass "stream": true:

stream = client.chat.completions.create(
model="claude-3-7-sonnet",
messages=[{"role": "user", "content": "Synthesize a 3-point edge deployment strategy."}],
stream=True
)
for chunk in stream:
if chunk.choices[0].delta.content is not None:
print(chunk.choices[0].delta.content, end="", flush=True)