Gemma 4 E4B It vs Palmyra x5
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 4 E4B It | Palmyra x5 | |
|---|---|---|
| Input | $0.02 | $0.63 |
| Output | $0.11 | $6.30 |
| Default provider | DeepInfra | OpenRouter |
| Providers available | 2 | 1 |
On input tokens, Gemma 4 E4B It is currently 30× cheaper than Palmyra x5 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-4-E4B-it", "writer/palmyra-x5"]:
response = client.chat.completions.create(
model=model,
messages=[{"role": "user", "content": "Hello!"}]
)
print(model, "->", response.choices[0].message.content)