Quickstart
Get a key from the console, then hit chat completions.1. Get an API key
Create a key in the console. It goes in theAuthorization header as a bearer token.
2. List the lineup
3. Send a chat completion
4. Stream it
Add"stream": true and read Server-Sent Events. Each event is data: {...} followed by data: [DONE]. See Streaming.
Next steps
- Authentication — keys and error codes
- Models — the current lineup
- Chat completions — full request/response reference
- SDKs — OpenAI / Anthropic SDK drop-in