API overview
One endpoint. Two wire formats. Current Claude and GPT models. The full surface area in one page.
Endpoint
Every request goes to https://api-ai.app/v1. There is no regional routing, no per-tenant subdomain, no separate billing host. The gateway is hosted in Europe.
Wire formats
API-AI speaks two protocols at the same URL. Pick whichever your SDK already uses — both are first-class, neither is a translation layer.
- Anthropic-native.
POST /v1/messages— byte-for-byte identical toapi.anthropic.com. If your code calls Anthropic today, changingbase_urlis the entire migration. - OpenAI-compatible.
POST /v1/chat/completions— drop-in for OpenAI SDKs. Tool calling, streaming, and vision all work; only fields that have no Claude equivalent (e.g.response_format=json_schemastrict mode) are silently ignored.
Authentication
Either Authorization: Bearer mdf-... or x-api-key: mdf-.... Never both in the same request — see Authentication.
Versioning
Path is /v1/* on every endpoint. Anthropic requests additionally take anthropic-version: 2023-06-01 — SDKs add it automatically.
We never break /v1. New capabilities ship as additive fields (e.g. cache_control blocks). Removals or schema-breaking changes would ship on /v2with at least 90 days of overlap.