Gemma 3 27b It vs Gemma 4 E4B 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.

Gemma 3 27b It Gemma 4 E4B It
Input $0.08 $0.02
Output $0.17 $0.11
Default provider DeepInfra DeepInfra
Providers available 3 2

On input tokens, Gemma 4 E4B It is currently 4× cheaper than Gemma 3 27b It 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/gemma-3-27b-it", "google/gemma-4-E4B-it"]:
    response = client.chat.completions.create(
        model=model,
        messages=[{"role": "user", "content": "Hello!"}]
    )
    print(model, "->", response.choices[0].message.content)