Get started

Quickstart

Create a key, inspect the models available to it, and make your first routed inference request in a few minutes.

01
Create an API key
Open API keys in the dashboard, create a key, and copy it once to a secure secret store.
02
Discover available models
Call the models endpoint with your key. Results are filtered by your group, key restrictions, and current supply.
03
Send your first request
Use an OpenAI-compatible client or send an HTTP request directly to a supported inference endpoint.

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);

Next steps