12+ providers. More added regularly.
Features
Everything you need to ship AI products
Streaming Chat
SSE endpoint returns token-by-token responses as they're generated. WebSocket mode available for bidirectional, persistent connections.
Realtime Audio
Audio WebSocket for live voice conversations via OpenAI, Google, or ElevenLabs. Supports PCM16 audio streams, transcripts, and interruption handling.
Vision & Files
Attach images to any vision-capable model. File embeddings via pgvector for semantic search and RAG workflows.
Multi-tenant teams
Invite members, share conversations, and manage role-based access across your organization.
Cost tracking
Per-message token counts and USD cost tracked per model. Monitor spend in real time.
Profiles & System prompts
Reusable instruction sets with custom temperature, top_p, and model defaults.
Subscription tiers
Built-in Stripe billing with token budgets per tier. Monetize your AI product out of the box.
Model catalog API
Query capabilities, pricing, context windows, and benchmarks for every supported model.
Quick Start
Start building in minutes
curl
JavaScript
Language examples
Use any language, zero dependencies
The API follows the OpenAI SSE format, so it works with plain HTTP clients. No SDK required — just set your API_KEY env var and start streaming.
Each chunk follows the OpenAI chat.completion.chunk format. The final chunk includes usage with prompt/completion token counts and USD cost.
Why us
Why not just use the provider APIs directly?
| Feature | Provider APIs | onechatapi.com |
|---|---|---|
| Switch models | ✕Rewrite integration | ✓Change model param |
| Auth per provider | ✕Multiple API keys | ✓One JWT |
| Usage tracking | ✕DIY | ✓Built-in, per message |
| Realtime audio | ✕Only OpenAI | ✓OpenAI + Google + ElevenLabs |
| Team collaboration | ✕Not included | ✓Invites, orgs, sharing |
| Billing | ✕DIY | ✓Stripe, included |
Pricing
Simple, usage-based plans
Start free. Upgrade as you scale. All plans include API access, usage tracking, and no vendor lock-in.
Free
Try the API with no credit card required.
- 100k tokens / month
- GPT-4o mini, Gemini Flash
- SSE streaming chat
- REST API access
- 1 user
- Community support
- No WebSocket
- No audio
- No vision
Starter
For side projects and early-stage products.
- 2M tokens / month
- GPT-4o, Claude Haiku, Gemini Pro
- SSE + WebSocket chat
- Vision & file attachments
- Cost tracking per message
- 1 user
- Email support
- No audio
- No team features
Pro
For production apps that need the full stack.
- 10M tokens / month
- All models — GPT-4o, Claude Sonnet, Gemini Ultra, Mistral, Cohere, Llama, Grok
- SSE + WebSocket + Realtime Audio
- Vision, files & embeddings
- Profiles & system prompts
- Cost tracking & usage analytics
- Up to 5 users
- Priority support
Max
For high-volume apps with advanced requirements.
- 50M tokens / month
- All models + early access to new ones
- All transport modes
- Unlimited profiles
- Up to 20 users
- SLA + dedicated support
Need more? Contact us for enterprise pricing — custom token budgets, SSO, and dedicated infrastructure.
API Reference
Explore the API
/api/chat/events
Streaming chat (SSE)
/chat/ws/{id}
WebSocket chat — bidirectional, persistent
/chat/audio/ws/{id}
Realtime audio — voice conversations
/api/chat/models
Your available models
/api/models/catalog
Full catalog with pricing, context windows, benchmarks
Authentication
Simple authentication
Sign in with email/password or Google OAuth to get a JWT token. Use it as a Bearer token on every request.
JWT Bearer Token
All protected endpoints require a JWT bearer token.
Google OAuth
Sign in with Google for instant access.
Guest Access
Read-only access to shared conversations.