Guides
Learn by doing
Short guides that each cover one thing. Every example runs against the live API as written, apart from the placeholder ids.
Walkthroughs
One task each, start to finish, with code you can paste.
- Stream a responseShow text as it is generated, read token usage from a stream and handle a stream that fails part-way.
- Switch from the OpenAI SDKChange the base URL and the key, then check the short list of things that differ.
- Generate an imageChoose a model, set size and shape, and receive base64 data or signed links.
- Retry without paying twiceUse an idempotency key so a repeated request returns the first result instead of a second charge.
Concepts
How the platform behaves, so nothing about your bill or your errors is a surprise.