Skip to main content

GET /v1/models

List available models and their capabilities.

  • Method: GET
  • Path: /v1/models
  • Auth: Bearer token in Authorization header

Description

Returns model metadata, including input/output modalities. Use this to determine which models support text, image, file (PDF), and audio inputs.

See also: Features → Multimodal → Overview, Images, Files, Audio.

Example request

from openai import OpenAI

client = OpenAI(base_url="https://api.naga.ac/v1", api_key="YOUR_API_KEY")

models = client.models.list()
print(models.data[0])

Example response

[
{
"id": "gpt-5-mini-2025-08-07",
"object": "model",
"architecture": {
"input_modalities": ["text", "image", "file"],
"output_modalities": ["text"]
},
"limit_group": "default-gpt-5-mini",
"description": "Fast small model for chat and reasoning"
}
]