Listing the AI models through the API: GET /v1/models with type and q

All in One AIUsing the AI API·· 1 view· 4 min read

In short: GET /v1/models returns every model on sale, with the type and the price in credits of each one. Filter with type and search with q. It needs a key with ai:read and listing the models spends no credits. The list is the same with a sandbox_ key and with a prod_ key.

Filtering by type and searching

Parameter What it does
type text, image, video, audio (voice and sound) or agent (only your agents).
q Searches the id, the name and the description.

The image models with "gpt-image" in the name, on Linux and macOS:

curl "https://api.mozout.com/v1/models?type=image&q=gpt-image" \
-H "Authorization: Bearer $MOZOUT_API_KEY"

The video models, in Windows PowerShell:

curl.exe "https://api.mozout.com/v1/models?type=video" -H "Authorization: Bearer $env:MOZOUT_API_KEY"

What each model brings

A text model, as it appears in the example in our documentation (the prices are examples and they change):

{
"id": "deepseek-ai/deepseek-v4-flash",
"object": "model",
"type": "text",
"category": "LLM",
"name": "DeepSeek V4 Flash",
"context_length": 1048576,
"max_output_tokens": 393216,
"pricing": {"unit": "1M tokens", "input": 56.0, "output": 112.0, "cached_input": 11.2}
}

Field What it is
id The value to send in model. It always has a slash. Use it as it is.
type and category What the model produces, and a more detailed category, such as text-to-image, image-to-video or text-to-speech.
name and description The name to show to people and what the model is good at.
pricing The price in credits. Text: input, output and cached_input, per 1 million tokens. Image, video and voice: credits per unit (image, second or generation).
context_length and max_output_tokens Text and agents only: the most the model reads in one request and the most it writes in one answer.
base_model, tools and status Agents only: the model the agent uses, its tools and its state.

Only text models and your agents work in chat. Image, video and voice models are used in POST /v1/media/generations. A model of the wrong type gives 404 model_not_found.

One model: GET /v1/models/{id}

Send the id with its slashes, as it is, for example GET /v1/models/deepseek-ai/deepseek-v4-flash. For image, video and voice models, the answer also has input: the fields the model accepts, with the possible values, the default and the limits.

With the OpenAI SDK

The list comes in the OpenAI format, so client.models.list() in the SDKs works:

import os
from openai import OpenAI

client = OpenAI(base_url="https://api.mozout.com/v1", api_key=os.environ["MOZOUT_API_KEY"])
for model in client.models.list():
print(model.id)

Your agents come first, with the id agent/ and the type agent. Each account only sees its own. Without code, the same list is on the Models tab of All in One AI, with the Text, Image, Video and Audio types and the «Copy the id» button.
Do not hard-code prices in your program. The prices in the examples change. Always read pricing from the list before a large batch.

Would you rather see the models without code? Open the Models tab of All in One AI.

See All in One AI

SEE ALSO

Choosing a text model: price, context window and what each one is for

Choosing an image model in All in One AI: the Models tab, the price and the options

The fields an image model accepts: GET /v1/models/{id} and the size option

Using the OpenAI SDK with All in One AI: only the address and the key change

All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $6.60/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.