Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)

google/gemini-3.1-flash-image-preview

Характеристики

Контекстное окно
131,072
Входящие данные
Изображения, Текст
Исходящие данные
Изображения, Текст

Цены

Оплата по факту за использованные токены, цены за 1M токенов в рублях.

Входящие токены 49.38 ₽
Исходящие токены 296.25 ₽

Описание модели

Gemini 3.1 Flash Image Preview, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines...

API и примеры кода

Единый OpenAI-совместимый endpoint. Укажите base_url и ключ из личного кабинета.

curl https://app.cloudcompute.ru/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"google/gemini-3.1-flash-image-preview","messages":[{"role":"user","content":"Привет!"}]}'
from openai import OpenAI

client = OpenAI(
    base_url="https://app.cloudcompute.ru/api/v1",
    api_key="YOUR_KEY",
)

resp = client.chat.completions.create(
    model="google/gemini-3.1-flash-image-preview",
    messages=[{"role": "user", "content": "Привет!"}],
)
print(resp.choices[0].message.content)

Полная документация API →