Quickstart
Create a key, inspect the models available to it, and make your first routed inference request in a few minutes.
Set your environment
Keep the deployment URL and API key outside source control.
Terminal · bash
export Cisoma_API_KEY="sk-your-api-key"List models
Model availability is scoped to the calling key, so discovery should be part of your integration rather than a hard-coded assumption.
Request · bash
curl "https://cisoma.com/v1/models" \
-H "Authorization: Bearer $Cisoma_API_KEY"Create a chat completion
The OpenAI-compatible route is the fastest way to connect an existing application.
Request · bash
curl "https://cisoma.com/v1/chat/completions" \
-H "Authorization: Bearer $Cisoma_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{"role": "user", "content": "Explain edge routing in one sentence."}
],
"stream": false
}'JavaScript SDK · ts
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.Cisoma_API_KEY,
baseURL: "https://cisoma.com/v1",
});
const response = await client.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: "Hello from Cisoma" }],
});
console.log(response.choices[0].message.content);