Skip to main content
Generate images with Google Gemini image models through GregAPI, supporting OpenAI-compatible, async task, and native generateContent calling styles. All requests are forwarded by GregAPI — no self-signing required, just pass the GregAPI API Key in the header.
Standard headers:

Supported Models

Resolution Tiers

The size or imageConfig.imageSize field accepts the following tiers: Supported tiers per model:
  • gemini-2.5-flash-image: 1K only; higher tiers auto-downgrade to 1K
  • gemini-3-pro-image-preview: 1K / 2K / 4K
  • gemini-3.1-flash-image: 512 / 1K / 2K / 4K

Aspect Ratios

All three models support:
gemini-3.1-flash-image additionally supports:

Calling Style Comparison

Billing

  • Text input: billed by prompt tokens.
  • Image output: prioritizes upstream usageMetadata image tokens; if unavailable, estimated per tier:
    • gemini-2.5-flash-image / gemini-3-pro-image-preview: 1120 tokens per 1K/2K image, 2000 tokens per 4K image.
    • gemini-3.1-flash-image: 747 tokens (512), 1120 tokens (1K), 1680 tokens (2K), 2520 tokens (4K).
  • no-image responses that were already billed return usage: top-level usage for OpenAI-style, usageMetadata for native API, and top-level usage for async task queries.
See the platform’s “Model Pricing” page for exact rates, subject to upstream usage logs.