Getting started

Quickstart

Three steps to the first request: key, Base URL, model. Ready snippets in cURL, Python and Node.js, plus setup for common clients.

1. Key in an environment variable

Do not hardcode the key in code — put it in an environment variable:

bash
export KIREE_API_KEY="sk-your-kiree-key"

2. First request

cURL
export KIREE_API_KEY="sk-your-kiree-key"

curl -X POST https://kiree.net/v1/chat/completions \
  -H "Authorization: Bearer $KIREE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-chat",
    "messages": [{"role": "user", "content": "Hello Kiree!"}]
  }'
Python
from openai import OpenAI

client = OpenAI(
    api_key="sk-your-kiree-key",
    base_url="https://kiree.net/v1"
)

resp = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{"role": "user", "content": "Hello Kiree!"}],
    stream=True
)
for chunk in resp:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
Node / TypeScript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "sk-your-kiree-key",
  baseURL: "https://kiree.net/v1"
});

const resp = await client.chat.completions.create({
  model: "deepseek-chat",
  messages: [{ role: "user", content: "Hello Kiree!" }]
});
console.log(resp.choices[0].message.content);

3. Third-party clients

If you are not writing code, choose an OpenAI or Custom provider and set three parameters:

ParameterValue
API Base URLhttps://kiree.net/v1
API Keythe <code>sk-…</code> key from the console
Model IDmodel ID from the <a href="/en/models">catalog</a>

Cherry Studio / NextChat / One-API

OpenAI or Custom provider, gateway Base URL, key and model ID from the catalog.

LobeChat and OpenAI-compatible clients

Provider: Custom OpenAI Service, Endpoint https://kiree.net/v1, model from the catalog.

After saving, send a short message on the welcome balance to confirm the connection works, then run batch requests. The full client and IDE list is in the Integrations section.