API reference
AMAI chat completions
The gateway accepts the OpenAI chat-completions shape. Every successful response includes AMAI route, token, request, and cost metadata.
Enter receipt email before opening Stripe. AMAI uses it for recovery and key claim.
Buy $10 credits
Open AMAI chat
Model catalog
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
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.
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",
"messages": [{"role": "user", "content": "Reply with AMAI ready."}],
"max_tokens": 64
}'
First run
Switch to amai-glm-heretic-v0.1 when you want the heretic candidate-search route.
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.