Migrate from OpenAI
Allternit’s/v1/chat/completions endpoint is wire-compatible with OpenAI. In most cases you only need to change the base URL and API key.
Base URL and authentication
Chat completions
Model mapping
Allternit exposes normalized model IDs. You can also use policy aliases and let the gateway route to the best connected model.
Use
GET /v1/models to list available models for your workspace.
Feature parity notes
- Function calling: Allternit supports
tools,tool_choice, andparallel_tool_calls. - Streaming: Server-sent events use the same format as OpenAI.
- JSON mode / structured outputs: Pass
response_format: { "type": "json_object" }or a JSON Schema. - Vision: Image URLs and base64 inputs are supported.
- Assistants API: Use Allternit Sessions and Agents for equivalent behavior.