Gemma 4 26B-A4B API

Gemma 4 26B A4B هو نموذج متعدد الوسائط مفتوح من Google مزود بمدخلات وسياق ونص وصور وفيديو 256K، وأدوات، ومخرجات منظمة.

Googleتوليد النصوص256K السياقتاريخ الإصدار Mar 31, 2026استدلال أصليجديد

About Gemma 4 26B-A4B

Gemma 4 26B A4B هو نموذج متعدد الوسائط مفتوح من Google مزود بمدخلات وسياق ونص وصور وفيديو 256K، وأدوات، ومخرجات منظمة.

يدعم إدخال النصوص والصور والفيديو، والبث، وأدوات الوظائف، وإخراج JSON الهيكلي، والتحكم في البذرة، ووضع التفكير بشكل افتراضي. استخدم reasoning_effort أو thinking_budget للتفكير المحدود، أو enable_thinking=خاطئ للإجابات المباشرة. يتم احتساب القراءات التلقائية للذاكرة المؤقتة عند الإبلاغ عن التخزين المؤقت عند الإبلاغ عنها من قبل خدمة النموذج. لا يتم دعم التحكم الصريح في ذاكرة التخزين المؤقت.

يعرف أيضا باسم Google Gemma 4 26B-A4B, Gemma-4-26B-A4B

reasoningvisionvideofunction callingstructured outputcachemultimodaljson modelogprobs

Gemma 4 26B-A4B specs

معرّف النموذج
gemma-4-26b-a4b
المزود
Google
الفئة
توليد النصوص
Released
Mar 31, 2026
نافذة السياق
256K tokens
أقصى إخراج
32,768 tokens
الإدخال
TextImageVideo
الإخراج
Text
نقاط النهاية
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages
POST /v1/completions

Gemma 4 26B-A4B API pricingSave up to 83%

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

النوع
المواصفة
السعر
المدخلات
لكل 1M رموز مطالبة
$0.15$0.05
الإنتاج
لكل مليون رمز مولد
$0.50$0.29
قراءة الذاكرة المؤقتة الضمنية
لكل مليون رمز إدخال مخبأ
$0.15$0.025
Web Search (Linkup)
per call when invoked
$0.013
قارن في صفحة الأسعار الكاملة

How to call the Gemma 4 26B-A4B API

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. 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."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

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

response = client.chat.completions.create(
    model="gemma-4-26b-a4b",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Full Gemma 4 26B-A4B API reference

Gemma 4 26B-A4B API parameters

Request parameters supported by the Gemma 4 26B-A4B API on EmpirioLabs. Defaults apply when a field is omitted.

المعاملالنوعافتراضيالنطاق / القيمالوصف
temperaturenumber10 to 2Sampling temperature. Lower values are more deterministic.
top_pnumber0.950 to 1Nucleus sampling probability mass.
max_tokensinteger40961 to 32768Maximum output tokens.
stopstring--One or more stop strings.
reasoning_effortenummediumnone, low, medium, high, maxReasoning effort. none disables thinking; low, medium, high, and max set bounded thinking budgets.
enable_thinkingbooleantrue-Enable the model reasoning channel before final output.
thinking_budgetinteger4096128 to 32768Maximum thinking tokens before the final answer. If max_tokens is lower, the service reserves room for the answer.
top_kinteger201 to 200Limit sampling to the top K candidate tokens when supported.
min_pnumber00 to 1Minimum probability threshold for token sampling.
presence_penaltynumber0-2 to 2Penalty for tokens that already appeared in the generated text.
frequency_penaltynumber0-2 to 2Penalty based on how often a token has already appeared.
repetition_penaltynumber10.1 to 2Penalty used by SGLang to reduce repeated text.
seedinteger-0 to 2147483647Optional random seed for reproducible sampling.
logprobsbooleanfalse-Return token log probabilities when supported.
8 more parameters in the docs

معلومات مفيدة

يدعم إدخال النصوص والصور والفيديو، والبث، وأدوات الوظائف، وإخراج JSON الهيكلي، والتحكم في البذرة، ووضع التفكير بشكل افتراضي. استخدم reasoning_effort أو thinking_budget للتفكير المحدود، أو enable_thinking=خاطئ للإجابات المباشرة. يتم احتساب القراءات التلقائية للذاكرة المؤقتة عند الإبلاغ عن التخزين المؤقت عند الإبلاغ عنها من قبل خدمة النموذج. لا يتم دعم التحكم الصريح في ذاكرة التخزين المؤقت.

Gemma 4 26B-A4B API: common questions

How much does the Gemma 4 26B-A4B API cost?

On EmpirioLabs, Gemma 4 26B-A4B is billed pay as you go: المدخلات $0.05 (was $0.15) لكل 1M رموز مطالبة; الإنتاج $0.29 (was $0.50) لكل مليون رمز مولد; قراءة الذاكرة المؤقتة الضمنية $0.025 (was $0.15) لكل مليون رمز إدخال مخبأ. The live rate card on this page always matches what the API charges.

What is the context window of Gemma 4 26B-A4B?

Gemma 4 26B-A4B supports a 256K-token context window with up to 32,768 output tokens per response.

Is the Gemma 4 26B-A4B API OpenAI-compatible?

Yes. Gemma 4 26B-A4B serves the OpenAI-compatible Chat Completions API, so existing OpenAI SDKs work by pointing base_url at https://api.empiriolabs.ai/v1 and setting the model id to gemma-4-26b-a4b.

Can I try Gemma 4 26B-A4B in the browser before integrating?

Yes. The EmpirioLabs playground runs Gemma 4 26B-A4B in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a Gemma 4 26B-A4B API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

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