Documentation
Build on the API.
Six guides, in the order most people need them: one working request, then keys, model ids, streaming, what a call costs, and how to read a refusal. Every sample carries the live API origin and the OpenAI-compatible shapes, so it can be pasted as it stands.
Create a key, send one request, and see it on your balance — the whole path, with the errors that usually stop it.
AuthenticationHow the bearer header is formed, why a key is only shown once, and how to rotate one without taking your own traffic down.
ModelsWhat a model id is made of, what the catalogue publishes for each one, and how to check an id is callable before you build against it.
StreamingThe server-sent events shape, the exact chunk and the `[DONE]` sentinel, how to get token usage on the stream, and what a dropped connection means for your bill.
Pricing & billingA prepaid balance, four per-million rates, the arithmetic behind a charge, and the two currencies the catalogue publishes.
ErrorsThe error object, every code the API returns with its status, which failures are worth a retry, and the five-minute checks that resolve most first refusals.

