All models, capabilities, and prices

API documentation

One key and two compatible base URLs for production models, clients, and media APIs.

Three things to know first
  1. There is no email-and-password account. API requests authenticate with the key, and balance and usage can be viewed in the dashboard with that same key.
  2. The gateway is Anthropic-compatible — you can keep using your existing Anthropic SDK.
  3. Keys are valid for 90 days; user balance does not expire.

1. Get a key

Pick a top-up on the Pricing page. Once the payment is confirmed, you receive by email a key of the form mdf- followed by 48 hexadecimal characters.

2. Set environment variables

Two env-vars are enough for the first call. Keep the key in API_AI_KEY, and the base URL in the variable your client reads. Pick your OS in the switcher above:

bash
export API_AI_KEY=mdf-your-key
export ANTHROPIC_BASE_URL=https://api-ai.app

The Anthropic and OpenAI SDKs auto-read ANTHROPIC_API_KEY / OPENAI_API_KEY by default. Either export your key under that name, or pass API_AI_KEY explicitly to the client constructor as shown below (see Authentication).

3. Make your first call

Same request, three runtimes — pick the one closest to your stack:

curl https://api-ai.app/v1/messages \
  -H "x-api-key: $API_AI_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-sonnet-5-5",
    "max_tokens": 256,
    "messages": [{"role": "user", "content": "Say hi in one sentence."}]
  }'

Via the OpenAI Responses API

The same key works on the OpenAI-compatible surface at https://api-ai.app/v1. For OpenAI clients (Codex and the like), call POST https://api-ai.app/v1/responses with a current GPT model from the catalog:

bash
curl -s https://api-ai.app/v1/responses \
  -H "Authorization: Bearer $API_AI_KEY" \
  -H "content-type: application/json" \
  -d '{"model":"deepseek-v4-pro","input":"Say hi in one sentence."}'

One endpoint, different jobs

Start with one current model, then change only the model ID.

Compare context, type, and complete pricing in the shared model matrix instead of relying on a list that goes stale inside quickstart.

Current limits are listed in the generated model table. Full Codex setup is on the Codex client page.

What next

Last updated: October 2, 2026Found a bug? admin@minedom-france.fr