Completion API Overview
Provider-compatible completion endpoints for OpenAI, Anthropic, Google, and Mistral models through one ajan API key
The Completion API gives you provider-compatible completion endpoints through one ajan API key. Each endpoint follows the official specification of its provider, so you can use existing SDKs and clients by changing the base URL.
Before You Start
- API key: To use the API, create a personal API key or ask your workspace admin for a workspace API key with the Completion API scope.
- Regions: Each endpoint includes a
{region}path segment. See the endpoint pages for the supported regions and how to list the models available in your workspace.
Base URL
https://api.ajan.ioAvailable Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /openai/{region}/v1/chat/completions | OpenAI Chat Completions |
POST | /openai/{region}/v1/responses | OpenAI Responses |
POST | /anthropic/{region}/v1/messages | Anthropic Messages |
POST | /google/{region}/v1beta/models/{model}:{action} | Google Gemini |
POST | /mistral/{region}/v1/fim/completions | Mistral Codestral |
Rate Limits
Rate limits are enforced per workspace, model, and API key. See the Rate limits section on each endpoint page for the current limits and how they are shared.