OpenAI compatible
OpenAI-compatible API Change two lines. Keep the SDK. Call the world’s most advanced language, image, and video models.
from openai import OpenAI
client = OpenAI(
api_key="sk-ama-YOUR_KEY",
base_url="https://api.aimodelapi.ai/v1",
) curl · OpenAI compatible Copycurl https://api.aimodelapi.ai/v1/chat/completions \
-H "Authorization: Bearer sk-ama-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"claude-sonnet-5","messages":[{"role":"user","content":"ping"}]}' POST /v1/chat/completions, GET /v1/models, streaming SSE, and tool calls are compatible. Image/video use the paths in the docs. Word/PPT/Excel files are written by the client (or its Office plugin); the gateway does not return a .docx download.
Accepted Payment Methods 256-bit TLS PCI DSS via Stripe Credits never expire Multi-currency
ModelAPI Enterprise-grade AI throughput Official prices + 5% top-up fee. WeChat · Alipay · Stripe.
Global (Primary gateway) Virginia (planned) Singapore Tokyo (planned) Bangkok (planned) Frankfurt (planned) Alt Primary Domain (planned)
ModelAPI is a multi-model AI algorithm & orchestration cloud (SaaS) — Harness Control, Nexus routing, session budgets, and compaction on licensed B2B channels — not reverse-engineered APIs, account pooling, or subscription splitting. Not offered to mainland-China-registered entities ; you must meet upstream geo Terms and are solely responsible for your data and cross-border compliance.Compliance
© 2026 ModelAPI. All rights reserved.
0% per-token markup · Official API prices · 5% infra fee only · Credits never expire