API basics

AMAI API authentication

After Stripe payment, AMAI redirects to the key claim page. The secret is shown once. Store it in your environment and send it as a Bearer token.

Enter receipt email before opening Stripe. AMAI uses it for recovery and key claim.
Buy $10 credits Open AMAI chat Model catalog
Best first purchase

Pick the smallest paid path that proves the AMAI route you need. The same key works in chat and OpenAI-compatible clients after Stripe returns to the claim page.

Smoke test $10 credits for a fast live check against abliterated and heretic. Buy $10 credits
Coding/API integration $100 credits when you are wiring OpenCode, Aider, Continue, Open WebUI, or your own agents. Buy $100 credits
Recurring research work Research Pro for authorized security, life-science literature, and frontier technical workflows. Start Research Pro

Configuration

export AMAI_API_KEY="amai_sk_..."
curl https://api.advanced-mind.com/v1/models \
  -H "Authorization: Bearer $AMAI_API_KEY"

First run

Use one key per tool so agent loops, browser chat, and experiments can be revoked independently.

Paid before spend

Credits must exist before inference starts. The gateway blocks insufficient-credit requests before provider spend.

Launch models

Use amai-glm-abliterated-v0.1 by default and amai-glm-heretic-v0.1 for heretic candidate search.