← All models

gemini-3.1-flash-image-preview

gemini-3.1-flash-image-preview·Google·Image

gemini-3.1-flash-image-preview is an image generation model from Google, available through NovAPI's OpenAI-compatible API with the model ID gemini-3.1-flash-image-preview. Pricing is $0.04 per image.

Pricing

Price
$0.04/image

You are billed in credits (1 USD = 100 credits); USD is shown for reference.

Quick start

Call gemini-3.1-flash-image-preview through the OpenAI-compatible endpoint POST /v1/images/generations. Set model to gemini-3.1-flash-image-preview and send your API key as a Bearer token in the Authorization header.

from openai import OpenAI

client = OpenAI(base_url="https://api.novapi.ai/v1", api_key="sk-...")

img = client.images.generate(
    model="gemini-3.1-flash-image-preview",
    prompt="An isometric night city with neon reflections, tilt-shift miniature look",
    size="1024x1024",
)
print(img.data[0].url)

More languages and parameters are on the API tab →

Quick answers

How much does gemini-3.1-flash-image-preview cost?
Pricing is $0.04 per image. Prices are in USD (1 USD = 100 credits) and come from the live model catalog (https://api.novapi.ai/v1/models), the same source as the pricing page; any account discount applies at billing.
How do I call gemini-3.1-flash-image-preview through NovAPI?
Send a request to https://api.novapi.ai/v1/images/generations with model set to "gemini-3.1-flash-image-preview" and your API key as a Bearer token in the Authorization header.

Contact support about this model