Quickstart
Send your first chat completion request.
Create an API key
Create a key in the console, then keep it server-side — keys carry billing authority for the wallet they belong to.
Send a request
curl https://api.example.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [{ "role": "user", "content": "Hello" }],
"stream": true
}'Read the stream
With stream: true the response is a text/event-stream. Each event carries a
delta; the stream ends with data: [DONE].
Keep keys off the browser
Never ship a key to client-side code. Proxy requests through your own backend.