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

# Models API

> Get a list of all available AI models

# Models API

This endpoint allows you to retrieve information about the models available through Gately AI.

## Available Models

Gately AI provides access to numerous state-of-the-art AI models across different categories:

### Language Models

* gpt-4o
* gpt-4o-mini
* gpt-4-turbo
* wizardlm-2-7b
* claude-3-5-sonnet
* claude-3-opus

### Embedding Models

* jina-embeddings-v3
* text-embedding-3-large
* text-embedding-3-small

### Reranking Models

* mixr-v1

### Media Generation

* dall-e-3 (images)
* T2V-01-Director (videos)
* I2V-01-Director (videos)

## Example Usage

To get a list of all available models, send a GET request to the models endpoint:

```bash theme={null}
curl https://api.gately.ai/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"
```

<Note>
  The API reference for this endpoint is not yet available in OpenAPI format. Use the example above to make requests.
</Note>

## Response Format

```json theme={null}
{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "created": 1683758102,
      "owned_by": "openai"
    },
    {
      "id": "gpt-4o-mini",
      "object": "model",
      "created": 1683758102,
      "owned_by": "openai"
    },
    // Additional models...
  ]
}
```

## Model Selection

When making API requests, specify the model you want to use:

```bash theme={null}
curl https://api.gately.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
```


## OpenAPI

````yaml GET /v1/models
openapi: 3.0.1
info:
  title: TaamCloud API
  description: >-
    A collection of AI services including chat, embeddings, reranking, and media
    generation
  version: 1.0.0
servers:
  - url: https://api.gately.ai
    description: Main API server
  - url: https://uploud.taam.cloud
    description: File Processing server
security:
  - bearerAuth: []
paths:
  /v1/models:
    get:
      tags:
        - Models
      summary: List available models
      description: Get a list of all available AI models
      operationId: models
      responses:
        '200':
          description: List of models
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Model'
components:
  schemas:
    Model:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        type:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Enter your API key prefixed with 'Bearer '

````