# Список всех моделей

{% hint style="info" %}
Чтобы отправлять авторизованные запросы нужно получить API ключ, как это сделать написано в разделе [**С чего начать?**](https://docs.gptunnel.ru/)
{% endhint %}

{% hint style="info" %}
Для получения списка моделей к LLM смотрите раздел [**Список моделей**](/api-chatgpt/chat-completions.md)
{% endhint %}

## Запрос списка медиа моделей

<mark style="color:blue;">**`GET/POST`**</mark> `https://gptunnel.ru/v1/media/models`

Возвращает список всех доступных медиа моделей и их цену.

#### Headers

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| Authorization<mark style="color:red;">\*</mark> | string | API ключ    |

### Пример запроса

{% tabs %}
{% tab title="NodeJS" %}

```typescript
import axios from 'axios'

const request = axios({
  method: 'POST',
  url: 'https://gptunnel.ru/v1/media/models',
  headers: {
    // use your API key here
    Authorization: 'YOUR_API_KEY',
  },
})

request.then((result) => {
  console.log(result)
}).catch((error) => {
  console.error(error)
})
```

{% endtab %}

{% tab title="Curl" %}

```bash
curl --request POST \
  --url https://gptunnel.ru/v1/media/models \
  --header 'Authorization: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
```

{% endtab %}
{% endtabs %}

### Пример ответа

Модели в списке ниже могут отличатся от доступных моделей на текущий момент.

```json
{
	"code": 0,
	"models": [
		{
			"id": "dall-e-3",
			"price": "16"
		},
		{
			"id": "flux-dev",
			"price": "5"
		},
		{
			"id": "flux-kontext-max",
			"price": "16"
		},
		{
			"id": "flux-kontext-pro",
			"price": "8"
		},
		{
			"id": "flux-pro",
			"price": "10"
		},
		{
			"id": "flux-pro-1.1",
			"price": "8"
		},
		{
			"id": "flux-pro-1.1-ultra",
			"price": "12"
		},
		{
			"id": "glabs-veo-3",
			"price": "480"
		},
		{
			"id": "glabs-veo-3-fast",
			"price": "79"
		},
		{
			"id": "google-imagen-3",
			"price": "10"
		},
		{
			"id": "google-imagen-3-fast",
			"price": "5"
		},
		{
			"id": "google-imagen-4",
			"price": "10"
		},
		{
			"id": "gpt-image-1-high",
			"price": "26"
		},
		{
			"id": "gpt-image-1-low",
			"price": "4"
		},
		{
			"id": "gpt-image-1-medium",
			"price": "12"
		},
		{
			"id": "kling-v1.6-pro",
			"price": "98"
		},
		{
			"id": "kling-v1.6-standard",
			"price": "70"
		},
		{
			"id": "kling-v2-1-1080P-10s",
			"price": "178"
		},
		{
			"id": "kling-v2-1-1080P-5s",
			"price": "89"
		},
		{
			"id": "kling-v2-1-720P-10s",
			"price": "98"
		},
		{
			"id": "kling-v2-1-720P-5s",
			"price": "49"
		},
		{
			"id": "kling-v2-1-master-1080P-10s",
			"price": "498"
		},
		{
			"id": "kling-v2-1-master-1080P-5s",
			"price": "249"
		},
		{
			"id": "kling-v2.0",
			"price": "210"
		},
		{
			"id": "minimax-hailuo-02-1080P-6s",
			"price": "89"
		},
		{
			"id": "minimax-hailuo-02-768P-10s",
			"price": "79"
		},
		{
			"id": "minimax-hailuo-02-768P-6s",
			"price": "39"
		},
		{
			"id": "minimax01",
			"price": "69"
		},
		{
			"id": "pg-2.5",
			"price": "2"
		},
		{
			"id": "prunaai-hidream-l1-fast",
			"price": "1.9"
		},
		{
			"id": "recraft20b",
			"price": "8"
		},
		{
			"id": "recraftv3",
			"price": "10"
		},
		{
			"id": "runway-3-turbo",
			"price": "48"
		},
		{
			"id": "runway-4-turbo",
			"price": "54"
		},
		{
			"id": "sd3",
			"price": "12"
		},
		{
			"id": "sd3-turbo",
			"price": "8"
		},
		{
			"id": "seedance-1-lite-480P-10s",
			"price": "36"
		},
		{
			"id": "seedance-1-lite-480P-5s",
			"price": "18"
		},
		{
			"id": "seedance-1-lite-720P-10s",
			"price": "72"
		},
		{
			"id": "seedance-1-lite-720P-5s",
			"price": "36"
		},
		{
			"id": "seedance-1-pro-1080P-10s",
			"price": "300"
		},
		{
			"id": "seedance-1-pro-1080P-5s",
			"price": "150"
		},
		{
			"id": "seedance-1-pro-480P-10s",
			"price": "60"
		},
		{
			"id": "seedance-1-pro-480P-5s",
			"price": "30"
		},
		{
			"id": "seedream-3",
			"price": "8"
		},
		{
			"id": "yandex-art",
			"price": "4"
		}
	]
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gptunnel.ru/media-api/models-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
