Характеристики
- Контекстное окно
- 128,000
- Входящие данные
- Текст, Изображения, Файлы
- Исходящие данные
- Текст
Цены
Оплата по факту за использованные токены, цены за 1M токенов в рублях.
| Входящие токены | 246.88 ₽ |
| Исходящие токены | 987.50 ₽ |
| Чтение кеша | 123.44 ₽ |
Описание модели
The 2024-08-06 version of GPT-4o offers improved performance in structured outputs, with the ability to supply a JSON schema in the respone_format. Read more [here](https://openai.com/index/introducing-structured-outputs-in-the-api/). GPT-4o ("o" for "omni") is...
API и примеры кода
Единый OpenAI-совместимый endpoint. Укажите base_url и ключ из личного кабинета.
curl https://app.cloudcompute.ru/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-4o-2024-08-06","messages":[{"role":"user","content":"Привет!"}]}'from openai import OpenAI
client = OpenAI(
base_url="https://app.cloudcompute.ru/api/v1",
api_key="YOUR_KEY",
)
resp = client.chat.completions.create(
model="openai/gpt-4o-2024-08-06",
messages=[{"role": "user", "content": "Привет!"}],
)
print(resp.choices[0].message.content)