OpenAI-Compatible API
Better AI exposes a fully OpenAI-compatible API at /v1/chat/completions. Use any OpenAI SDK or library — just change the base URL and API key. Access Grok, Claude, Kimi, GPT, and more through the same interface.
Supported Endpoints
POST /v1/chat/completions— Chat completions with any of 151 modelsGET /v1/models— List all available modelsPOST /v1/embeddings— Text embeddingsPOST /v1/images/generations— Image generationPOST /v1/completions— Text completions
API Features
- Smart Model Routing: Specify
model: "auto"to let Better AI pick the optimal model - Streaming: Full SSE streaming support for real-time responses
- Multi-model: Compare responses from multiple models in a single request
- Cost Control: Set per-request budget limits and model tier preferences
- Persistent Memory: API calls build context that persists across sessions
Get Your API Key
Sign up for any plan to get an API key. Usage is metered and billed at the same rates as the chat interface. See pricing.
Get API Access