Gemma API

Every Gemma model on EmpirioLabs AI, 2 in all. Compare them, then call the one that fits your task, quality, and pricing needs.

Google Text Generation 2 models

About Gemma APIs

Gemma on EmpirioLabs brings together 2 model APIs from Google, including Gemma 4 26B-A4B, Gemma 3 27B. Each model keeps its own dedicated page with live pricing, parameters, docs, and playground access.

Use the same EmpirioLabs API key and endpoint pattern across the family, then switch behavior by changing the model id in your request.

Gemma models (2)

Gemma API pricing

Compare the family at a glance, then open a model page for the complete live rate card and parameters.

Endpoint
POST/v1/chat/completions
Pricing
Type
Spec
Rate
Input
per 1M prompt tokens
$0.15$0.05
Output
per 1M generated tokens
$0.50$0.29
Implicit cache read
per 1M cached input tokens
$0.15$0.025
Web Search (Linkup)
per call when invoked
$0.013
Best fit
Gemma 4 26B A4B is a Google open multimodal model with 256K context, text, image, and video input, tools, and structured output.
Endpoint
POST/v1/chat/completions
Pricing
Type
Spec
Rate
Per Message
fixed
$0.0040
Web Search (Linkup)
per call when invoked
$0.013
Best fit
Open-source vision-language model with 128K context, 140+ languages, improved math/reasoning, structured outputs, and function calling.
Compare every model on the full pricing page

How to call Gemma models

Gemma 4 26B-A4B serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id gemma-4-26b-a4b. For this family, swap the model value for any supported id: gemma-4-26b-a4b gemma-3-27b. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma-4-26b-a4b",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'

Gemma examples and comparisons

See prompt tests, output notes, and comparison runs that mention this model family.

Gemma APIs: common questions

What is the Gemma API?

Gemma on EmpirioLabs covers 2 model APIs from Google: Gemma 4 26B-A4B, Gemma 3 27B. You use one EmpirioLabs API key and choose the model id that fits the request.

Which Gemma model should I use?

Start with the model whose dedicated page matches your speed, quality, and pricing needs, then test it in the EmpirioLabs playground. The comparison cards above link to each model's live rate card and quickstart.

Can I switch between Gemma models without rebuilding my integration?

Yes. The family is designed around the same EmpirioLabs API pattern, so most integrations switch by changing the model value. Check the model page before shipping if you rely on a model-specific parameter.

How is Gemma pricing shown?

Pay as you go, or choose a plan with weekly allowances. The cards on this page show a short live-catalog summary, and each model page shows the complete rate card that matches API billing.

Can I try Gemma in the browser?

Yes. Open any model page in this family and use its playground link to test prompts and parameters in the browser before integrating the API.

Ready to use better endpoints?

Check out our pricing or reach out if you want your own model deployed on our stack.