Gemini 3.7 Flash
1M contextgemini-3-7-flash — текстовая модель-модель от Google.
audio_inputcode_executiondocument_understandingfunction_callingprompt_cachingreasoningstreamingstructured_outputvisionweb_search
Попробуйте прямо здесь
Gemini 3.7 Flash Открыть в Playground
Что умеет Gemini 3.7 Flash
- Audio Input
- Code Execution
- Document Understanding
- Function Calling
- Prompt Caching
- Reasoning
- Streaming
- Structured Output
- Vision
- Веб-поиск
Стоимость
за 1М cache read
единый
24.94 ₽
за 1М input
единый
249 ₽
за 1М output
единый
1 247 ₽
web_search
единый
4.66 ₽
Цены указаны в рублях и списываются с баланса проекта за успешные запросы. Надбавки (+) суммируются с базовой ставкой.
Технические характеристики
Контекст
1,048,576
токенов
Output
65,536
токенов
Vendor
google
Modality
text
Параметры запроса
Параметры, которые принимает модель. Передаются в теле запроса.
ПараметрТипДиапазон / значенияПо умолчаниюОписание
messagesreqarray
—
—Сообщения в OpenAI-compatible формате; поддерживаются текст и изображения.
max_completion_tokensinteger
min: 1 · max: 65536
8192Максимум токенов ответа. Нативный generateContent: maxOutputTokens.
stoparray of strings
—
—Стоп-последовательности. Нативный generateContent: stopSequences.
seedinteger
—
—Сид для воспроизводимости.
reasoning_effortenum
low, medium, high
—Глубина рассуждений. Gemini 3.7 Flash не поддерживает none/minimal.
toolsarray
—
—OpenAI-compatible function definitions.
tool_choicestring
—
—auto, none, required или выбор функции.
response_formatobject
—
—json_object или json_schema.
streamboolean
—
falseSSE-стриминг.
stream_optionsobject
—
—Для финального usage используйте include_usage=true.
extra_bodyobject
—
—Gemini-only параметры для OpenAI-compatible endpoint.
Пример кода
gemini-3-7-flash_example.py
from openai import OpenAI
client = OpenAI(api_key="rk_live_...", base_url="https://api.ranvik.ru/v1")
resp = client.chat.completions.create(
model="gemini-3-7-flash",
messages=[{"role": "user", "content": "Привет!"}],
)
print(resp.choices[0].message.content)
# ── С веб-поиском ──
resp = client.chat.completions.create(
model="gemini-3-7-flash",
messages=[{"role": "user", "content": "Что нового в AI сегодня?"}],
tools=[{"type": "web_search"}],
)
print(resp.choices[0].message.content)