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

# GET /v1/models

> OpenAI-compatible model list endpoint. Returns all models available to the current API key with their supported API formats.

The `/v1/models` endpoint is an OpenAI-compatible interface that returns every model your API key can access. SDKs and clients use this endpoint to auto-discover available models and their supported API formats.

## Quick example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://www.anyfast.ai/v1/models \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      api_key="YOUR_API_KEY",
      base_url="https://www.anyfast.ai/v1"
  )

  models = client.models.list()
  for model in models:
      print(f"{model.id} → {model.owned_by}")
  ```
</CodeGroup>

## Request

| Header                            | Required | Description                    |
| --------------------------------- | -------- | ------------------------------ |
| `Authorization: Bearer <api-key>` | Yes      | Authenticate with your API key |
| `Content-Type: application/json`  | No       | Optional                       |

No request body (GET).

## Response

```json theme={null}
{
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "created": 1626777600,
      "owned_by": "openai",
      "supported_endpoint_types": ["openai"]
    },
    {
      "id": "claude-sonnet-4-5-20250929",
      "object": "model",
      "created": 1626777600,
      "owned_by": "vertex-ai",
      "supported_endpoint_types": ["openai", "anthropic"]
    }
  ]
}
```

## Response fields

| Field                      | Description                                                                                                                    |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `id`                       | Model identifier. Use this value for the `model` parameter in relay requests.                                                  |
| `object`                   | Always `"model"`.                                                                                                              |
| `created`                  | Fixed timestamp (no functional meaning).                                                                                       |
| `owned_by`                 | Provider: `openai`, `vertex-ai`, `custom`, `xai`, `volcengine`, `codex`, `aws`, `coze`, `ali`, `minimax`, etc.                 |
| `supported_endpoint_types` | API formats this model supports: `openai`, `anthropic`, `openai-response`, `gemini`, `image-generation`, `video`, `mj-*`, etc. |

## Notes

* Different API keys may see different model lists depending on provider configuration and pricing coverage.
* Omitting the API key returns `401 {"error":{"message":"No token provided"}}`.<script src="/feedback.js" />
