Skip to content

AI Models

How a request finds its model

Ask for auto, and MayuAI picks a model your plan can use that can do the job, and tries another if a provider fails.

Five rules

  1. Ask for the model auto

    A chat request whose model is auto is routed. A request that names a model is answered by that model or fails; it is never given a different one.

  2. Only models that qualify

    A model qualifies when your plan may use it, it is in the catalog and its provider is set up, and it can do what the request needs: read an attached image, or stream its answer. If none qualifies, the request is refused before any credits are held.

  3. Ranked for the task

    The request is sorted into a kind of task (coding, analysis, writing and others) from its text. The qualifying models are ranked by what the model registry declares about that task and by abilities that have been verified. Speed, reliability and benchmark scores count for nothing yet, because none have been measured.

  4. Another model if a provider fails

    The first model is tried. If its provider is down, out of capacity or times out, the next one is tried, up to three in all. A request that is wrong in itself stops at once, because it would fail on every model. A streamed request is answered by the first model only.

  5. Charged once, for the model that answered

    Credits are held once for the request and settled once, at the rate of the model that answered. The reply names that model and its provider, and says whether another model was tried.

In a request

The model is the only thing that changes. The fields of the reply that say what happened:

POST /v1/ai/chat
{ "model": "auto", "messages": [{ "role": "user", "content": "…" }] }

→ "model":    the model that answered
  "provider": who served it
  "fallback": true when another model was tried first
  "usage":    { "credits": what the request cost }

Which models your plan reaches is on Pricing; each model’s rates are in the Model Hub.

Common questions

What does the model "auto" do?

A chat request whose model is auto is routed: MayuAI sorts the request into a kind of task, ranks the models your plan can use that can do it, and tries the highest-ranked one first.

What happens if a provider is down?

If the first model's provider is down, out of capacity or times out, the next model is tried, with at most three tried in total. The reply says whether another model was tried.

Am I charged for a model that failed?

No. Credits are held once for the request and settled once, at the rate of the model that answered.

If I name a model, can MayuAI switch it?

No. A request that names a model is answered by that model or fails; it is never given a different one.

Where to go next

  • Compare models

    See what each model takes, gives and costs.

    Open
  • Use auto from code

    The request and the fields of the reply.

    Open
  • The Model Hub

    Browse the catalog.

    Open
  • Which models your plan reaches

    Plans

    What each plan includes.

    Open

Not open to the public yet

Send the model auto and let MayuAI pick one that can do the job.

Existing accounts can sign in. To ask about access, contact us.

How MayuAI routes a request to a model | MayuAI