API reference

AMAI streaming responses

Set stream=true for incremental tokens. The prepaid ledger still checks balance before the provider call starts.

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

curl https://api.advanced-mind.com/v1/chat/completions \
  -H "Authorization: Bearer $AMAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"amai-glm-abliterated-v0.1","stream":true,"messages":[{"role":"user","content":"Draft a test plan."}]}'

First run

Keep request IDs from response metadata when debugging long agent runs.

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.