Basic Usage
Available Methods
Chat Completions
Models
Error Handling
Configuration Options
TypeScript Support
Best Practices
- Store your API key securely (environment variables, not in code)
- Handle rate limits gracefully with exponential backoff
- Use appropriate timeouts for your use case
- Check credits before making expensive requests