Streaming
Add "stream": true to your request body for real-time token-by-token responses.
Max Tokens
Control response length with "max_tokens": 2048. Default varies by model.
Error 401
Invalid or missing API key. Check Authorization: Bearer *** header format.
Error 429
Rate limited. Wait and retry. Paid users get higher rate limits.
Error 500
Server error. Retry with exponential backoff. Usually transient.
Temperature
Adjust "temperature": 0.7 (0-2) for more creative or deterministic output.
Useful Links
Ready to build? Get started in minutes.
Sign Up Free