OpenAI: GPT-4o (2024-08-06)
openai/gpt-4o-2024-08-06The 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...
Доступна через единый OpenAI-совместимый API AI Gateway: подключайтесь через привычный SDK — меняется только base_url и параметр model. Оплата в рублях, контроль расхода и данные в РФ.
Возможности:ИнструментыJSON-режим
Быстрый старт
Первый запрос к openai/gpt-4o-2024-08-06 — скопируйте и подставьте свой ключ.
from openai import OpenAI
client = OpenAI(
base_url="https://ai-gatewey.ru/v1",
api_key="sk-aigate-ваш_ключ",
)
resp = client.chat.completions.create(
model="openai/gpt-4o-2024-08-06",
messages=[{"role": "user", "content": "Привет!"}],
)
print(resp.choices[0].message.content)