Models
Use the latest AI models from OpenAI, Google, and Anthropic with a single interface.
Quick Start (60 Seconds)
Easiest Way: Use Managed Keys
No API key setup required! Authenticate once and get 100K free tokens to start.
⭐ Bonus: Star our repo for an additional 100K tokens!
Alternative: Bring Your Own Keys
For production or high-volume usage, use your own API keys for direct billing.
Default Models
When you don't specify a model, ConnectOnion uses these optimized defaults:
Agent Default
For Agent() class
Best for agentic tasks with tool calling and complex reasoning
llm_do Default
For llm_do() function
Fast and cost-effective for simple LLM calls
Note: Default models require authentication with co auth. To use your own API keys without the co/ prefix, set GEMINI_API_KEY environment variable.
Available Models
GPT-5 Series
gpt-5Best for coding and agentic tasks across domainsgpt-5-miniFaster, cost-efficient version for well-defined tasksgpt-5-nanoFastest, most cost-efficient versionReasoning Models
o4-miniOpenAI's newest reasoning modelModel Selection Guide
Best for Coding
Fast Responses
Cost-Optimized
Multimodal
Two Ways to Use Models
Option 1: Managed Keys
Recommended for getting started
✓ 100K free tokens to start
✓ Access to all providers
✓ No API key management
Option 2: Your Own Keys
For production or high-volume usage
✓ Production deployments
✓ Direct billing
✓ Existing infrastructure
Smart Model Selection
Automatically select the best model based on your needs:
Fallback Chain
Try multiple models if one fails:
Model Comparison
| Model | Provider | Context | Strengths |
|---|---|---|---|
gpt-5 | OpenAI | 200K | Best for coding & agentic tasks |
gemini-3-pro-preview | 1M | State-of-the-art reasoning | |
gemini-2.5-pro | 2M | Multimodal, huge context | |
claude-opus-4-5 | Anthropic | 200K | Most capable Claude |
Key Benefits
- • Get started in 60 seconds with managed keys (co auth)
- • 100K free tokens + bonus credits for starring our repo
- • Same code works everywhere - just change the model name or add/remove co/ prefix
- • Tool support identical across all models and providers
- • Easy transition from managed keys to your own keys when ready for production
