Get model pricing

Endpoint
GET/v1/models/pricing

Returns the Moyi API price and the official list price for every model in the pricing table. No authentication is required.

The pricing table and the callable list are not one-to-one: whether a model can be called is decided by List models; its price is decided here.

Request

No authentication and no request body.

Parameters

None.

Response

json
{
  "models": [
    {
      "id": "claude-sonnet-5",
      "owned_by": "anthropic",
      "cost": {"input": 0.6, "output": 3.0, "cached_input": 0.06, "cache_creation": 0.75, "cache_read": 0.06},
      "list_cost": {"currency": "USD", "input": 2.0, "output": 10.0, "cached_input": 0.2, "cache_creation": 2.5, "cache_read": 0.2}
    }
  ]
}
Field Notes
models[].id Model ID
models[].owned_by Model vendor
models[].cost Moyi API price per million tokens: input and output; models with caching also have cached_input, cache_creation, and cache_read
models[].list_cost Official list price with the same fields as cost; currency is the currency

The numbers in the example are illustrative; use the live response.

Examples

bash
curl https://api.moyiapi.com/v1/models/pricing

Errors

No authentication is required, so this endpoint does not normally return 401.

Ready? Three steps to startLog in to the console · top up · create an API key
DiscordGet community help instantly
Get model pricing · Docs