FAQ
Short answers about credits, models and payments.
Docs
One key and one endpoint for every model on MayuAI, paid in Taka from one credit balance.
export MAYUAI_API_KEY="your key"curl https://api.mayuai.com/v1/ai/chat -H "x-api-key: $MAYUAI_API_KEY" -H "content-type: application/json" -d '{"model":"gemini-3.5-flash-lite","messages":[{"role":"user","content":"Hello"}]}'Send your API key in the x-api-key header, as <key id>.<secret>. Create one in Settings once you are signed in and have confirmed your email address; the secret is shown once, so keep it in an environment variable (MAYUAI_API_KEY) on your server, never in a web page or an app you ship. A signed-in session’s bearer token works for chat too. The API overview has the other endpoints.
POST https://api.mayuai.com/v1/ai/chat with a JSON body. There is no MayuAI SDK: any HTTP client works, and the examples below use curl, Python and JavaScript. To use an SDK, use OpenAI’s: the OpenAI SDKs are the supported path, through the OpenAI-compatible endpoint below.
| Field | What it is |
|---|---|
model | A model id from the table below, or auto: MayuAI picks one your plan can use for the task. |
messages | The conversation: each message has a role (system, user or assistant) and content. |
temperature (optional) | How varied the wording is. |
max_tokens (optional) | The most the model may write. |
stream (optional) | true to receive the answer as server-sent events as it is written. |
smart_route (optional) | true to use smart routing for this one request, false to keep the model you named (smart routing, below; off unless your account turns it on). |
curl https://api.mayuai.com/v1/ai/chat -H "x-api-key: $MAYUAI_API_KEY" -H "content-type: application/json" -d '{"model":"gemini-3.5-flash-lite","messages":[{"role":"user","content":"Hello"}]}'{
"choices": [{ "message": { "role": "assistant", "content": "..." } }],
"model": "gemini-3.5-flash-lite",
"provider": "...",
"usage": { "tokens": 42, "credits": 1, "remaining": 4999 }
}model is the model that answered and was charged; usage.credits is what the request cost and usage.remaining your balance after it. With auto the reply also says which task it was sorted into: how routing works.
The API also speaks the OpenAI chat completions format, so a coding extension that takes an OpenAI-compatible provider works with it: Kilo Code, Cline and Roo Code in VS Code, and the same extensions in editors built on VS Code, such as Antigravity. In Continue it is the openai provider with apiBase set to the base URL. Choose that provider and fill in:
| Setting | Value |
|---|---|
| API provider | OpenAI Compatible |
| Base URL | https://api.mayuai.com/v1 |
| API key | your MayuAI API key |
| Model | a model id from the table below, or auto |
The extension sends the key as Authorization: Bearer, which MayuAI reads as your API key; it calls POST /v1/chat/completions and lists models from GET /v1/models, the models your plan can call. Credits, plans and rate limits are the same as for any request.
curl https://api.mayuai.com/v1/chat/completions -H "Authorization: Bearer $MAYUAI_API_KEY" -H "content-type: application/json" -d '{"model":"gemini-3.5-flash-lite","messages":[{"role":"user","content":"Hello"}]}'tools, tool_calls) is not supported: use an extension that describes its tools in the prompt, as Kilo Code, Cline and Roo Code do.smart_route, so it gets the model it names unless smart routing is turned on for the account on Usage.Step-by-step: the setup guides for the OpenAI SDKs, Cursor, Continue, Cline, Roo Code, Kilo Code and OpenCode.
Use a model’s id as model. A rate is credits per 1,000 tokens, one for what you send and one for what the model writes; the table is the catalog as it stands now, and the Model Hub shows what each model is good at.
| Id | Model | Plans |
|---|---|---|
crouton-alpha | Crouton Alpha | All plans |
gemini-3.6-flash | Gemini 3.6 Flash | Pro and above |
claude-fable-5-1 | Claude Fable 5.1 | Developer and above |
gpt-6-astra | GPT-6 Astra | Pro and above |
| Model | Id | Input | Output | Plans |
|---|---|---|---|---|
| Claude Fable 5.1 | claude-fable-5-1 | 18.19 | 90.91 | Developer and above |
| Claude Fable 5.2 | claude-fable-5-2 | 14.55 | 72.73 | Developer and above |
| Claude Haiku 5.5 | claude-haiku-5-5 | 0.19 | 0.91 | Starter and above |
| Claude Opus 5.5 | claude-opus-5-5 | 7.28 | 36.37 | Pro and above |
| Claude Sonnet 5.5 | claude-sonnet-5-5 | 3.64 | 18.19 | Pro and above |
| Crouton Alpha | crouton-alpha | 0.00 | 0.00 | All plans |
| DeepSeek V4.1 Flash | deepseek-flash | 0.28 | 1.10 | Starter and above · rate changes with the time of day (off-peak shown) |
| DeepSeek V4 Pro-0813 | deepseek-v4-pro | 1.21 | 3.61 | Starter and above · rate changes with the time of day (off-peak shown) |
| Fugu Ultra v2 | fugu-ultra-v2 | 9.10 | 54.55 | Pro and above |
| Gemini 3.1 Pro Preview | gemini-3.1-pro-preview | 7.28 | 32.73 | Pro and above |
| Gemini 3.5 Flash Lite | gemini-3.5-flash-lite | 0.55 | 4.55 | All plans |
| Gemini 3.5 Flash | gemini-3.5-flash | 2.73 | 16.37 | Starter and above |
| Gemini 3.6 Flash | gemini-3.6-flash | 2.73 | 13.64 | Pro and above |
| Gemini 3.7 Flash | gemini-3.7-flash | 2.73 | 13.64 | Starter and above |
| Gemini 3.8 Flash | gemini-3.8-flash | 2.73 | 13.64 | Starter and above |
| Gemini 4 Argon | gemini-4-argon | 7.28 | 36.37 | Pro and above |
| Gemini 4 Carbon | gemini-4-carbon | 7.28 | 36.37 | Developer and above |
| Gemini 4 Hydrogen | gemini-4-hydrogen | 2.73 | 13.64 | Starter and above |
| Gemini 4 Neon | gemini-4-neon | 5.46 | 27.28 | Pro and above |
| GLM-5.2 | glm-5.2 | 1.13 | 10.55 | Starter and above |
| GLM-5.3 FlashX | glm-5.3-flashx | 0.68 | 2.28 | Starter and above |
| GLM-5.3 | glm-5.3 | 2.55 | 8.01 | Starter and above |
| GPT-5.6 Sol | gpt-5.6-sol | 14.55 | 54.55 | Pro and above |
| GPT-6 Astra | gpt-6-astra | 18.19 | 90.91 | Pro and above |
| GPT-6 Luna | gpt-6-luna | 0.19 | 0.91 | Starter and above |
| GPT-6.1 Sol | gpt-6.1-sol | 3.64 | 18.19 | Pro and above |
| GPT-6.1 Terra | gpt-6.1-terra | 1.82 | 9.10 | Starter and above |
| GPT-6.2 Astra | gpt-6.2-astra | 14.55 | 72.73 | Pro and above |
| GPT-6.2 Sol | gpt-6.2-sol | 3.64 | 18.19 | Pro and above |
| GPT-OSS 120B | gpt-oss-120b | 0.05 | 0.17 | All plans |
| Grok 4.5 | grok-4.5 | 3.64 | 10.91 | Starter and above |
| Grok 4.6 | grok-4.6 | 3.64 | 10.91 | Starter and above |
| Grok 4.7 | grok-4.7 | 3.64 | 10.91 | Pro and above |
| Kimi K2.6 | kimi-k2.6 | 1.73 | 7.28 | Pro and above |
| Kimi K2.7 Code | kimi-k2.7-code | 1.10 | 6.37 | Pro and above |
| Kimi K3.1 Pro | kimi-k3.1-pro | 3.64 | 18.19 | Pro and above |
| Kimi K3 | kimi-k3 | 5.46 | 29.10 | Pro and above |
| Llama 4 Maverick | llama-4-maverick | 0.64 | 1.82 | Starter and above |
| Llama 4 Scout | llama-4-scout | 0.19 | 0.55 | All plans |
| MiMo V2.6 Flash | mimo-v2.6-flash | 0.26 | 0.51 | All plans |
| MiMo V2.6 Pro | mimo-v2.6-pro | 0.80 | 1.59 | Starter and above |
| MiniMax M3 | minimax-m3 | 0.55 | 2.19 | Starter and above |
| Mistral Large 4 | mistral-large-4 | 1.28 | 3.82 | Starter and above |
| Mistral Small 4 | mistral-small-4 | 0.28 | 1.10 | Starter and above |
| Muse Ember 1.0 | muse-ember-1.0 | 0.19 | 0.91 | Starter and above |
| Muse Spark 1.3 Contributor | muse-spark-1.3-contributor | 0.19 | 0.37 | All plans |
| Muse Spark 1.3 | muse-spark-1.3 | 2.28 | 7.73 | Starter and above |
| Muse Wonder | muse-wonder | 7.28 | 36.37 | Pro and above |
| Nemotron 3.5 Super VL | nemotron-3.5-super-vl | 0.28 | 0.86 | Starter and above |
| Qwen 3.7 Flash | qwen-3.7-flash | 0.06 | 0.24 | All plans |
| Qwen 3.7 Max | qwen-3.7-max | 4.55 | 13.64 | Pro and above |
| Qwen 3.8 Flash | qwen-3.8-flash | 0.28 | 0.86 | Starter and above |
| Qwen 3.8 Max | qwen-3.8-max | 3.64 | 10.91 | Pro and above |
| Qwen 4 Max | qwen-4-max | 2.73 | 8.19 | Pro and above |
A model with no rate on file says “not set”. A rate of 0.00 is a real figure: the provider charges nothing for that model.
Off unless you turn it on (since 2026-11-20): the model you name is the one that answers. When it is on and a request is simple (a greeting or a short question: no code, analysis or writing task, no image), MayuAI serves it with the cheapest model your plan can use instead of the one you named, and says so. Only a model that has been confirmed by a real call is ever chosen, never a dearer one than you named, never one outside your plan. Anything else is served by the model you named.
"routing": {
"smartRoute": true,
"requestedModel": "...",
"model": "...",
"savedCredits": 3,
"note": "routed to ..., saved 3 credits vs ..."
}routing, and your usage log records the model you named and what was saved."smart_route": true; to keep the model you named, send "smart_route": false.smart_route wins.model: "auto" is separate: MayuAI sorts the task and ranks the models your plan can use that can do it; Routing explains how.Every request is paid for in credits from one balance: 1 credit = ৳0.15. A request costs
input tokens ÷ 1,000 × input rate + output tokens ÷ 1,000 × output raterounded up to a whole credit, never less than 1. For example, Gemini 3.5 Flash with 1,200 tokens in and 400 out: 1.2 × 2.73 + 0.4 × 16.37 comes to 10 credits.
| Pack | Price | Credits |
|---|---|---|
| Mini | ৳99 | 660 credits |
| Small | ৳699 | 5,500 credits |
| Medium | ৳999 | 8,000 credits |
| Large | ৳2,499 | 20,000 credits |
| Extra Large | ৳4,999 | 40,000 credits |
Buy one from Wallet once you are signed in. Prices and credits are in Pricing.
| Plan | Price a month | Credits | Models |
|---|---|---|---|
| Free | ৳0 | 50 | 7 |
| Starter | ৳749 | 5,000 | 30 |
| Pro | ৳1,999 | 13,500 | 51 |
| Developer | ৳2,999 | 25,000 | 54 |
| Agency | ৳7,499 | 50,000 | 54 |
| Enterprise | Contact sales | Agreed with you | 54 |
A model outside your plan answers 403 not_in_your_plan. See Pricing for what each plan includes.
| Plan | AI requests a minute | All requests an hour |
|---|---|---|
| Free | 5 | 200 |
| Starter | 15 | 800 |
| Pro | 30 | 2,000 |
| Developer | 150 | 15,000 |
| Agency | 175 | 17,500 |
| Enterprise | Agreed with you | Agreed with you |
| Header | What it says |
|---|---|
X-RateLimit-Limit-AI | AI requests a minute your plan allows. |
X-RateLimit-Remaining-AI | AI requests left in this minute. |
X-RateLimit-Limit | All requests a minute your plan allows. |
X-RateLimit-Remaining | All requests left in this minute. |
Retry-After | On a 429: seconds to wait before trying again. |
| Status | Code | What it means |
|---|---|---|
| 401 | Authentication required | No key, or a key that is not valid: send it in the x-api-key header as <key id>.<secret>. |
| 402 | insufficient_credits | Your balance is empty. Buy a pack or renew a plan; nothing ran. |
| 403 | not_in_your_plan | The model is not in your plan. The reply names your plan, the plan that has it and the pricing page. |
| 429 | ai_rate_limit | Too many requests for your plan this minute. Wait Retry-After seconds. (user_rate_limit says the same of all requests.) |
| 502, 503 | provider_unavailable, provider_internal_error (502); provider_not_configured, provider_auth_failed (503) | The model's provider failed or is not set up. Nothing was charged. |
Still stuck? Read the FAQ or contact us. The example model on this page is gemini-3.5-flash-lite, which every plan may call.
A three-line quickstart, authentication, the chat request and reply, every model with its rate, smart routing, how credits are counted, the packs and plans, the rate limits and the errors.
Yes. The endpoints and request fields on the API pages are checked by a test against the service's own route definitions, so a page cannot name a call that does not exist.
Read the FAQ, or contact us by email, phone or WhatsApp.
A quickstart, then the endpoint, every model with its rate, credits, plans, limits and errors.
Existing accounts can sign in. To ask about access, contact us.