Gemini 2.5 Flash Image vs Gemma 3 4b It

Live API pricing and availability, side by side. Both models run on FastInfra's OpenAI-compatible endpoint — switching between them is a one-line change.

Pricing

Price per 1M tokens

Prices are live and sync automatically from wholesale providers.

Gemini 2.5 Flash Image Gemma 3 4b It
Input $0.32 $0.05
Output $2.63 $0.11
Default provider OpenRouter DeepInfra
Providers available 1 3

On input tokens, Gemma 3 4b It is currently 6× cheaper than Gemini 2.5 Flash Image on FastInfra. Output-token pricing and quality trade-offs differ per workload — test both with the free tier.

Quickstart

Try both in 30 seconds

Same endpoint, same SDK — only the model string changes.

from openai import OpenAI

client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.fastinfra.ai/v1")

for model in ["google/gemini-2.5-flash-image", "google/gemma-3-4b-it"]:
    response = client.chat.completions.create(
        model=model,
        messages=[{"role": "user", "content": "Hello!"}]
    )
    print(model, "->", response.choices[0].message.content)