THE DEVELOPER CORNER

Chat completions
API documentation.

A familiar API. A different set of possibilities.
Connect your existing tools to open-weight intelligence.

A familiar conversation.

POST/v1/chat/completions

Send a model ID and a list of messages. Model-specific support for tools, reasoning, structured output, and parameters varies. Do not assume every checkpoint implements every OpenAI feature.

{
  "model": "YOUR_MODEL_ID",
  "messages": [
    {"role": "system", "content": "Be a useful writing partner."},
    {"role": "user", "content": "Help me explore an idea."}
  ],
  "max_tokens": 512,
  "stream": false
}

Read usage from the response

Successful non-streaming responses follow the upstream’s compatible completion format. Use reported token usage and the console request record for billing reconciliation, not a character-count estimate.

curl https://unlimit.chat/v1/chat/completions \
  -H "Authorization: Bearer $UNLIMIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL_ID",
    "messages": [
      {"role": "user", "content": "What if we built something different?"}
    ],
    "stream": true
  }'