Gemini 2.5 Flash
Chat Completions API
gemini-2.5-flash
Chat Completions API
Модель выведена из эксплуатации
Запросы теперь переадресовываются на Gemini 3.8 Flash. Ниже показаны цены модели-замены.
Gemini 2.5 Flash is Google’s high-performance workhorse model, specifically designed for advanced reasoning, coding, mathematics, and scientific tasks. Includes built-in "thinking" capabilities and is configurable through a "max tokens for reasoning" parameter for fine-tuned performance.
Пример кода
Пример использования модели через API на Python или cURL. Замените значения-заполнители своим API-ключом и ID модели.
Базовый пример запроса. Проверьте разрешения API-ключа. Подробнее см. документацию.
Базовый пример запроса. Проверьте разрешения API-ключа. Подробнее см. документацию.
curl https://api.makura.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{
"model": "gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "Сколько будет 2 + 2?"
}
]
}'