Supported Providers
Basic Usage
Common Parameters
All model classes accept these parameters:Invocation Methods
Every model supports four ways to call it:Retry Configuration
All models support automatic retries with configurable backoff:Response Caching
Cache model responses locally for development and testing:Model Resolution from Strings
Agents accept string model shorthand — no explicit model import needed:openai, deepseek, moonshot, xai, anthropic, mistral, google, perplexity, ollama, openrouter
Next Steps
String Shorthand
Use string format instead of class imports.
Model Resilience
Key rotation, failover, and rate limit handling.
Streaming
Stream responses token-by-token.
Structured Output
Return Pydantic models from LLM calls.
Multimodal
Images, audio, video, and files.
Metrics & Pricing
Token counting and cost calculation.