> ## Documentation Index
> Fetch the complete documentation index at: https://docs.muna.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Models

Lists every model available on the inference API.

<RequestExample>
  ```py Python theme={null}
  from anthropic import Anthropic
  import os

  # 💥 Create an Anthropic client, pointed at Muna
  anthropic = Anthropic(
    api_key=os.environ["MUNA_API_KEY"],
    base_url="https://inference.muna.ai"
  )

  # 🔥 List available models
  models = anthropic.models.list()

  # 🚀 Print the model tags
  for model in models:
    print(model.id)
  ```

  ```ts JavaScript theme={null}
  import Anthropic from "@anthropic-ai/sdk"

  // 💥 Create an Anthropic client, pointed at Muna
  const anthropic = new Anthropic({
    apiKey: process.env.MUNA_API_KEY,
    baseURL: "https://inference.muna.ai"
  });

  // 🔥 List available models
  const models = await anthropic.models.list();

  // 🚀 Print the model tags
  for await (const model of models)
    console.log(model.id);
  ```

  ```bash curl theme={null}
  curl https://inference.muna.ai/v1/models \
    -H "x-api-key: $MUNA_API_KEY" \
    -H "anthropic-version: 2023-06-01"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "data": [
      {
        "id": "@qwen/qwen-3.8-27b",
        "type": "model",
        "display_name": "qwen-3.8-27b",
        "created_at": "2026-08-26T20:51:52Z",
        "max_input_tokens": 262144,
        "max_tokens": 65536
      }
    ],
    "first_id": "@qwen/qwen-3.8-27b",
    "last_id": "@qwen/qwen-3.8-27b",
    "has_more": false
  }
  ```
</ResponseExample>

<Note>
  This is the same endpoint as the [OpenAI API](/ref/openai/list-models). Each model carries the
  fields that both SDKs expect.
</Note>

### Response

<ResponseField name="data" type="Model[]" required>
  Available models.

  <Expandable title="properties">
    <ResponseField name="id" type="string" required>
      Model tag.
    </ResponseField>

    <ResponseField name="type" type="string" required>
      Object type, always `model`.
    </ResponseField>

    <ResponseField name="display_name" type="string" required>
      Model name.
    </ResponseField>

    <ResponseField name="created_at" type="string" required>
      Date the model was added, in RFC 3339 format.
    </ResponseField>

    <ResponseField name="max_input_tokens" type="integer">
      Maximum number of input tokens.
    </ResponseField>

    <ResponseField name="max_tokens" type="integer">
      Maximum number of output tokens.
    </ResponseField>

    <ResponseField name="capabilities" type="object">
      Model capabilities, like thinking and image input.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="first_id" type="string">
  First model tag in the list.
</ResponseField>

<ResponseField name="last_id" type="string">
  Last model tag in the list.
</ResponseField>

<ResponseField name="has_more" type="boolean" required>
  Whether there are more models. Always `false`.
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.