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

# Models (OpenAI Compatible)

> OpenAI-style model list. With a live vLLM backend the payload is the backend's own /v1/models response passed through untouched…

### Response

`object`

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

<ResponseField name="data" type="object[]" required>
  <Expandable title="data">
    <ResponseField name="id" type="string" />

    <ResponseField name="object" type="string">
      `model`
    </ResponseField>

    <ResponseField name="created" type="integer">
      Unix timestamp (seconds).
    </ResponseField>

    <ResponseField name="owned_by" type="string" />
  </Expandable>
</ResponseField>

### Status codes

| Code  | Meaning                                                                                                                                                                                                                                                                          |
| ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `200` | OpenAI-style model list. With a live vLLM backend the payload is the backend's own `/v1/models` response passed through untouched; with a configured model map, the stub backend, or an unreachable backend, the gateway builds the list itself from its configured model names. |
| `401` | Authentication required                                                                                                                                                                                                                                                          |
| `422` | Validation error                                                                                                                                                                                                                                                                 |
| `429` | Rate limit exceeded                                                                                                                                                                                                                                                              |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'http://localhost:8000/v1/models' \
    --header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "object": "string",
    "data": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "object": "string",
        "created": 1,
        "owned_by": "string"
      }
    ]
  }
  ```
</ResponseExample>
