Назад к моделям
Gemini 3.1 Flash Image
googlegoogle/gemini-3.1-flash-image
Чем обслуживание в TheRouter отличается от вендорского
Как её эксплуатирует вендор
Нативный Gemini API Google описывает модели Gemini Image через generateContent и Gemini-specific руководства по image generation.
На TheRouter
TheRouter предоставляет тот же model ID через OpenAI-compatible API surface, чтобы команды могли маршрутизировать его рядом с другими hosted image и multimodal моделями без прямого вызова нативного endpoint Google.
Гид по API
Мультимодальная генерация изображений
Отправьте текстовый prompt в OpenAI-compatible chat endpoint TheRouter и выберите Gemini 3.1 Flash Image, когда нужен balanced image-tier Google.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3.1-flash-image",
"messages": [
{
"role": "user",
"content": "Create a square product hero image for a ceramic travel mug on a warm studio background."
}
],
"max_tokens": 1024
}'Редактирование по референсному изображению
Используйте ту же модель для edit-style prompts, добавляя image context на уровне приложения; перед production rollout проверьте точную форму payload в вашем TheRouter SDK.
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3.1-flash-image",
"messages": [
{
"role": "user",
"content": "Using the provided product reference image, create a warmer lifestyle variant for an autumn landing page."
}
],
"max_tokens": 1024
}'Реестр фактов — каждая утверждаемая величина имеет источник
| источник | URL | получено | |
|---|---|---|---|
| Уровень доступа | ai.google.dev changelog ↗ | 2026-08-05 | проверено |
| Модальности ввода / вывода | ai.google.dev image generation docs ↗ | 2026-08-05 | проверено |
| Контекстное окно | TheRouter API docs ↗ | 2026-08-05 | проверено |
| Макс. вывод | TheRouter API docs ↗ | 2026-08-05 | проверено |
| Смешанная цена TheRouter | TheRouter API docs ↗ | 2026-08-05 | проверено |
| Нативная ставка Google за image output | ai.google.dev pricing ↗ | 2026-08-05 | проверено |
| Поддерживаемые параметры TheRouter | TheRouter API docs ↗ | 2026-08-05 | проверено |
| Лицензия | ai.google.dev image generation docs ↗ | 2026-08-05 | проверено |
| Public benchmark suite | ai.google.dev image generation docs ↗ | 2026-08-05 | неизвестно |
| Production latency | TheRouter API docs ↗ | 2026-08-05 | неизвестно |
| Image quality ranking | ai.google.dev image generation docs ↗ | 2026-08-05 | неизвестно |
| Nano Banana 2 Lite — новый default endpoint Gemini Image: framework для routing-решений | blog.google ↗ | 2026-08-05 | проверено |
| Gemini API Image Generation 2026: как исправить failed to fetch после отключения preview | ai.google.dev changelog ↗ | 2026-08-05 | проверено |
| Когда выбирать Gemini 3.1 Flash Image вместо Lite или Pro? | ai.google.dev image generation docs ↗ | 2026-08-05 | к проверке |
| google/gemini-3.1-flash-image заменяет preview ID? | ai.google.dev changelog ↗ | 2026-08-05 | к проверке |
| Сниппеты на этой странице live-verified? | TheRouter API docs ↗ | 2026-08-05 | к проверке |