Назад к моделям

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проверено
Смешанная цена TheRouterTheRouter API docs ↗2026-08-05проверено
Нативная ставка Google за image outputai.google.dev pricing ↗2026-08-05проверено
Поддерживаемые параметры TheRouterTheRouter API docs ↗2026-08-05проверено
Лицензияai.google.dev image generation docs ↗2026-08-05проверено
Public benchmark suiteai.google.dev image generation docs ↗2026-08-05неизвестно
Production latencyTheRouter API docs ↗2026-08-05неизвестно
Image quality rankingai.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 после отключения previewai.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к проверке
Помощь и контакты