- cURL
- Python
- TypeScript
1
Set your API key
2
Check the API is up
GET /ping needs no authentication.3
Validate your key
"valid": true with your usage.4
Send a message
output.reply.content.Next steps
Authentication
How API keys are sent and what 401s look like.
Stream replies
Get tokens as they are generated.
API reference
Every endpoint with an interactive playground.
Handle errors
Error payloads and status codes.