Skip to main content

List Available Models

Use list_models() to see the models available on Mira Network and get the IDs you pass to chat completions.

Example

from mira_network import MiraClient

async def explore_models():
    async with MiraClient(api_key="your-api-key") as client:
        result = await client.list_models()

        # Each entry's "id" is the model name you pass to chat_completions_create()
        for model in result["data"]:
            print(model["id"])

Response Structure

list_models() returns an OpenAI-style object with a data array:
{
    "object": "list",
    "data": [
        {"id": "claude-haiku-4.5", "object": "model"},
        {"id": "gpt-5.2", "object": "model"},
        {"id": "gpt-4o-mini", "object": "model"},
        {"id": "gemini-3-flash", "object": "model"},
        {"id": "deepseek-v3.2", "object": "model"}
        # ... model availability may change over time
    ]
}

Usage Notes

  • Pass a model’s id as the model argument in chat completions.
  • Different models have different capabilities and per-token pricing.
  • The available models can change over time, so fetch this list rather than hardcoding it.