Models API
Chat and tool calls on the models in the catalog.
API
Send a request with your key and pay in the same credits as the app. Each reply says which model answered and what it cost.
Make a key in the app’s Settings after you sign in and verify your email. A key looks like KEY_ID.SECRET; the whole key is shown once, so keep it. Send it in the x-api-key header.
curl https://api.mayuai.com/v1/ai/chat \
-H "x-api-key: KEY_ID.SECRET" \
-H "content-type: application/json" \
-d '{"model":"auto","messages":[{"role":"user","content":"Hello"}]}'The model auto lets MayuAI choose (how); or name a model from the Model Hub. The reply carries model, provider, fallback and usage with the credits the request cost and the credits you have left. The address is https://api.mayuai.com; the call is POST /v1/ai/chat.
Chat and tool calls on the models in the catalog.
Create, run and read agents and their runs.
What each request cost, and your balance.
Client libraries.
MayuAI from a terminal.
Editor and tool plugins.
Events sent to your server.
| Plan | AI requests a minute | 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 |
A failed request returns an HTTP status and a JSON body with an error. The agent and routing endpoints give a code, a plain message and a requestId to quote to us. A request that fails is not charged: the credits set aside for it go back.
Send messages to a model or to auto, and show the answer, streamed if you like.
Each reply carries its credits, so your program can track what each request cost.
Create, run and read agents with a signed-in account's token.
Sign in, verify your email, and make a key in the app's Settings. The whole key is shown once, so keep it.
POST to /v1/ai/chat at https://api.mayuai.com with the key in the x-api-key header and a model and messages in the body.
Yes. A chat reply carries its usage: the tokens used, the credits charged and the credits you have left.
Yes. Limits apply per account and by plan, and the table on this page shows what the service enforces.
Send one request to a model, and read what it cost in the reply.
Existing accounts can sign in. To ask about access, contact us.