API Documentation

Base URL: https://api.aimodelapi.ai. Auth header Authorization: Bearer sk-ama-..., or x-api-key. The body is JSON.

Important compliance notice (read before signing up)

  • ModelAPI is an AI algorithm & orchestration cloud (SaaS): Harness Control, Nexus routing, session budgets, and compaction — proprietary software on licensed B2B channels.
  • We do not offer: bulk fake signups for free quotas, reverse-engineered web/API access, ChatGPT/Claude subscription splitting (Sub2API), identity spoofing to bypass geo-blocks, or circumvention proxies marketed to restricted regions.
  • Not available to entities registered in mainland China, or accounts operated for/on behalf of such entities (including policies such as Anthropic's restrictions on China-controlled use). Individuals must reside in provider-permitted jurisdictions.
  • Cross-border transfers, personal data, export controls, and generative-AI regulatory duties are your responsibility as the customer/data controller. Do not submit state secrets, unauthorized PII, or unlawful content.

Details: Compliance & Acceptable Use · Terms · Privacy

Overview · 1 / 9

Endpoints

UseMethodPath
ChatPOST/v1/chat/completions
MessagesPOST/v1/messages
ModelsGET/v1/models
ImagesPOST/v1/images/generations
Video tasksPOST/v1/contents/generations/tasks
BalanceGET/v1/credits
HealthGET/health/live

Health checks do not need a key. GET /health is the deep check. Create keys in the console. Successful calls deduct balance.

Overview · 1 / 9