API

OpenAI-compatible. Every model.

Point your existing OpenAI SDK at https://api.yout.chat/v1 with your Yout.chat key and every major model is yours. One credit pool, one bill, no per-model contracts.

URL: https://api.yout.chat/v1 · Inyandiko y'itoranya Authorization: Bearer <your-key>

Gusimbura

If your code already talks to the OpenAI API, you only change two things.

from openai import OpenAI

client = OpenAI(
    api_key="yout-...",                  # ← from Account → API keys
    base_url="https://api.yout.chat/v1",       # ← that's it
)

resp = client.chat.completions.create(
    model="anthropic-claude-sonnet-46",
    messages=[
        {"role": "user", "content": "Write a haiku about caching."},
    ],
)
print(resp.choices[0].message.content)

Na: OpenAI Python SDK, OpenAI Node SDK, LangChain, LlamaIndex, Vercel AI SDK, LiteLLM, and anything else that speaks the OpenAI shape.

Akadomo

Gushigikira Authorization: Bearer <key>. Inyandikonyakwirema ya: i Urubuga Porogaramu.

POST/v1/chat/completions

OpenAI-compatible. Guhindura izina... stream: true ya:.

Imigaragarire
{
  "model": "anthropic-claude-sonnet-46",
  "messages": [
    {"role": "system", "content": "You are helpful."},
    {"role": "user",   "content": "What is 2+2?"}
  ],
  "stream": false,
  "temperature": 0.7,
  "max_tokens": 512
}
-
{
  "id": "chatcmpl-...",
  "object": "chat.completion",
  "model": "anthropic-claude-sonnet-46",
  "choices": [{"index":0,"message":{"role":"assistant","content":"Four."},"finish_reason":"stop"}],
  "usage": {"prompt_tokens": 15, "completion_tokens": 2, "total_tokens": 17},
  "yout": {"credits_charged": 10, "balance": 14999990}
}
GET/v1/models

OpenAI-compatible model list. Every active model with id, context_window, na - Inyungu.

POST/api/chat/stream/

Native streaming endpoint — simpler JSON shape than OpenAI's, used by the web app. Prefer /v1/chat/completions ya: Ikindi -.

GET/api/chat/models/

Urugero: Agatabo Na: Igikorwa Itagi:,, - Flag. iyi in.

GET/api/chat/limit/

Your current quota — credits balance + plan status, or anon daily allowance.

GET/api/chat/keys/

Gikora Utubuto ().

POST/api/chat/keys/

A Urufunguzo. ni Rimwe - Kubika.

Imigaragarire
{"name": "production"}
POST/api/chat/keys/<id>/revoke/

a Urufunguzo ikoresha Kubona 401 ku i Ibikurikira >.

POST/api/media/image/

Ishusho Ibikorwa: job_uuid; Igicucu /api/media/jobs/<uuid>/.

POST/api/media/video/

~1.2M kugirango 5 - ISEGONDA Mu buryo bwikora: ku

POST/api/media/speech/

Kuri - job_uuid; Ibisohoka ni A Inyumvo Gushyiraho.

GET/api/media/jobs/<uuid>/

A Ibikorwa: status, output_url, error, credits_cost.

POST/api/chat/share/

A Gusoma - A /c/<slug> URL:

POST/api/chat/purge/

Ubutumwa, na Seriveri

Igenzura...

Ikoresha: Kuva: i Nka i Urubuga Porogaramu.

Igenamiterere ry'ibara

Itangira... credits_per_1k_input × Iyinjiza + credits_per_1k_output × Ibisohoka. A credits_per_call.

Ikoresha:

Kuri 10 Kuri Gucaho umurongo, Bya Gushyiraho.

Gusubiramo

Videwo... Mu buryo bwikora:

Inyandiko zirenze

Gusubiramo 402 insufficient_credits Ryari: i Igihe plan_active ni NIBYO na ni Gito.

Ibanga

  • Igaragazambere ry'ukoresha — Umukoresha, ku Ipaji:. ku + Konti: (Kugirango Impera Akadomo ku i).
  • Ukoresha: — Twebwe Kuri Ibaruwa:, Umukoresha, Cyangwa Konti:. HTTP-Referer: yout.chat Gushyiraho
  • no-log signal — Urugero OYA Kuri LOG / ku.
  • Ubutumwa Ibigize ku Mburabuzi — Gusoma a UsageLedger Urubariro (+ + Urugero:) OYA i Cyangwa.

Inyandikonyakwirema

  • OpenAI - Bihuye neza /v1/chat/completions Akazi Byahinduwe
  • kugirango Birenzeho -
  • Ihindurangano -
  • Utubuto ku /stream/ + - Ibikorwa:
  • Umubare - Impera Igenzura

Kuri Gukoporora

Urwego: Kuri Gukina Na:. Ryari: Birenzeho.