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

# List All Available Models on KiosAPI — GET /v1/models

> GET /v1/models — lists all models available to your API key. Supports OpenAI Bearer, Anthropic x-api-key, and Google x-goog-api-key auth formats.

Call `GET /v1/models` to retrieve every model your KiosAPI key can access. The endpoint is OpenAI-compatible and accepts all three authentication header formats — OpenAI `Authorization: Bearer`, Anthropic `x-api-key`, and Google `x-goog-api-key` — so you can reuse whichever client library you already have in place without restructuring your auth flow.

## Request

**Endpoint:** `GET https://kiosapi.com/v1/models`

### Headers

| Header              | Format          | Description                                                    |
| ------------------- | --------------- | -------------------------------------------------------------- |
| `Authorization`     | `Bearer sk-xxx` | OpenAI-style auth header                                       |
| `x-api-key`         | `sk-xxx`        | Anthropic-style auth header                                    |
| `anthropic-version` | `2023-06-01`    | Required alongside `x-api-key` when using Anthropic-style auth |
| `x-goog-api-key`    | `sk-xxx`        | Google-style auth header                                       |

<Info>
  At least one authentication header is required. You do not need to supply all three — choose the format that matches your preferred client library.
</Info>

<Tabs>
  <Tab title="cURL">
    ```bash theme={null}
    curl https://kiosapi.com/v1/models \
      -H "Authorization: Bearer sk-xxx" \
      -H "Content-Type: application/json"
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={null}
    import openai

    openai.api_key = "sk-xxx"
    openai.base_url = "https://kiosapi.com/v1/"

    models = openai.models.list()

    for model in models.data:
        print(model.id, model.owned_by)
    ```
  </Tab>
</Tabs>

## Response

A successful request returns a JSON object with `object` set to `"list"` and a `data` array containing one entry per available model.

```json theme={null}
{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "created": 1686935002,
      "owned_by": "openai"
    },
    {
      "id": "claude-sonnet-4-6",
      "object": "model",
      "created": 1686935002,
      "owned_by": "anthropic"
    }
  ]
}
```

### Response Fields

<ResponseField name="object" type="string" required>
  Always `"list"`.
</ResponseField>

<ResponseField name="data" type="array" required>
  Array of model objects available to your API key.

  <Expandable title="data[]">
    <ResponseField name="data[].id" type="string" required>
      The model identifier you pass to `model` in any request, e.g. `gpt-4o` or `claude-sonnet-4-6`.
    </ResponseField>

    <ResponseField name="data[].object" type="string" required>
      Always `"model"`.
    </ResponseField>

    <ResponseField name="data[].created" type="integer" required>
      Unix timestamp (seconds) indicating when the model entry was registered.
    </ResponseField>

    <ResponseField name="data[].owned_by" type="string" required>
      The provider that owns the model, e.g. `openai`, `anthropic`, or `google`.
    </ResponseField>
  </Expandable>
</ResponseField>
