Docs
Every model with its rate, credits, plans and limits.
Guides
There is no MayuAI SDK. The official OpenAI SDKs for Python and Node are the supported way to call MayuAI from code: give them the MayuAI base URL and your MayuAI key.
You need a MayuAI API key: sign in and open Settings → API keys. The secret is shown once, when you create it.
Install the SDK, and put your key in MAYUAI_API_KEY.
pip install openai
export MAYUAI_API_KEY="your key"Point the client at https://api.mayuai.com/v1, send one chat completion and list the models your key can call.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.mayuai.com/v1",
api_key=os.environ["MAYUAI_API_KEY"],
)
reply = client.chat.completions.create(
model="gemini-3.5-flash-lite",
messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)
for model in client.models.list():
print(model.id)To receive the answer as it is written, add stream=True (Python) or stream: true (Node).
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.mayuai.com/v1", api_key=os.environ["MAYUAI_API_KEY"])
stream = client.chat.completions.create(
model="gemini-3.5-flash-lite",
messages=[{"role": "user", "content": "Hello"}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
print()Use a model’s id exactly as it is written here. This is the catalog as it stands now, with the plans that include each model; the docs have each model’s credit rates.
| Id | Model | Plans |
|---|---|---|
claude-fable-5-1 | Claude Fable 5.1 | Developer and above |
claude-fable-5-2 | Claude Fable 5.2 | Developer and above |
claude-haiku-5-5 | Claude Haiku 5.5 | Starter and above |
claude-opus-5-5 | Claude Opus 5.5 | Pro and above |
claude-sonnet-5-5 | Claude Sonnet 5.5 | Pro and above |
crouton-alpha | Crouton Alpha | All plans |
deepseek-flash | DeepSeek V4.1 Flash | Starter and above |
deepseek-v4-pro | DeepSeek V4 Pro-0813 | Starter and above |
fugu-ultra-v2 | Fugu Ultra v2 | Pro and above |
gemini-3.1-pro-preview | Gemini 3.1 Pro Preview | Pro and above |
gemini-3.5-flash-lite | Gemini 3.5 Flash Lite | All plans |
gemini-3.5-flash | Gemini 3.5 Flash | Starter and above |
gemini-3.6-flash | Gemini 3.6 Flash | Pro and above |
gemini-3.7-flash | Gemini 3.7 Flash | Starter and above |
gemini-3.8-flash | Gemini 3.8 Flash | Starter and above |
gemini-4-argon | Gemini 4 Argon | Pro and above |
gemini-4-carbon | Gemini 4 Carbon | Developer and above |
gemini-4-hydrogen | Gemini 4 Hydrogen | Starter and above |
gemini-4-neon | Gemini 4 Neon | Pro and above |
glm-5.2 | GLM-5.2 | Starter and above |
glm-5.3-flashx | GLM-5.3 FlashX | Starter and above |
glm-5.3 | GLM-5.3 | Starter and above |
gpt-5.6-sol | GPT-5.6 Sol | Pro and above |
gpt-6-astra | GPT-6 Astra | Pro and above |
gpt-6-luna | GPT-6 Luna | Starter and above |
gpt-6.1-sol | GPT-6.1 Sol | Pro and above |
gpt-6.1-terra | GPT-6.1 Terra | Starter and above |
gpt-6.2-astra | GPT-6.2 Astra | Pro and above |
gpt-6.2-sol | GPT-6.2 Sol | Pro and above |
gpt-oss-120b | GPT-OSS 120B | All plans |
grok-4.5 | Grok 4.5 | Starter and above |
grok-4.6 | Grok 4.6 | Starter and above |
grok-4.7 | Grok 4.7 | Pro and above |
kimi-k2.6 | Kimi K2.6 | Pro and above |
kimi-k2.7-code | Kimi K2.7 Code | Pro and above |
kimi-k3.1-pro | Kimi K3.1 Pro | Pro and above |
kimi-k3 | Kimi K3 | Pro and above |
llama-4-maverick | Llama 4 Maverick | Starter and above |
llama-4-scout | Llama 4 Scout | All plans |
mimo-v2.6-flash | MiMo V2.6 Flash | All plans |
mimo-v2.6-pro | MiMo V2.6 Pro | Starter and above |
minimax-m3 | MiniMax M3 | Starter and above |
mistral-large-4 | Mistral Large 4 | Starter and above |
mistral-small-4 | Mistral Small 4 | Starter and above |
muse-ember-1.0 | Muse Ember 1.0 | Starter and above |
muse-spark-1.3-contributor | Muse Spark 1.3 Contributor | All plans |
muse-spark-1.3 | Muse Spark 1.3 | Starter and above |
muse-wonder | Muse Wonder | Pro and above |
nemotron-3.5-super-vl | Nemotron 3.5 Super VL | Starter and above |
qwen-3.7-flash | Qwen 3.7 Flash | All plans |
qwen-3.7-max | Qwen 3.7 Max | Pro and above |
qwen-3.8-flash | Qwen 3.8 Flash | Starter and above |
qwen-3.8-max | Qwen 3.8 Max | Pro and above |
qwen-4-max | Qwen 4 Max | Pro and above |
openai 3.61.0 and Node openai 7.66.0.usage has OpenAI's token counts and MayuAI's own: usage.credits is what the request cost and usage.remaining your balance after it.AuthenticationError (401), a model outside your plan a PermissionDeniedError (403), too many requests a RateLimitError (429). The reason is in the error's body.client.chat.completions and client.models.list() are served. client.responses and client.completions are not, and tools is not supported (below).tools are ignored and the answer is plain text, and a message with the tool role is refused (400). A feature that relies on native tool calls, such as an agent that edits files or runs commands that way, will not work through MayuAI.Every guide, and the API docs.
Chat completions, streamed or not, and the model list. The Responses API, the legacy completions call and native tool calling are not served.
The reply's usage has the token counts and two more fields: credits, what the request cost, and remaining, your balance after it.
The official OpenAI SDKs for Python and Node, pointed at MayuAI with your MayuAI key.
Existing accounts can sign in. To ask about access, contact us.