Google Gemma 4 26B A4B Instruct API

Gemma 4 26B A4B is a Mixture-of-Experts model from Google DeepMind with 26B total parameters and only 4B active per token, offering fast inference at high quality. It handles text, image, and video input, supports 256K context, function calling, and reasoning with configurable thinking modes.

入力: USD 0.13 / 100万トークン; 出力: USD 0.4 / 100万トークン

パブリックID: google-gemma-4-26b-a4b-it

モデルタイプ: チャット

推理 ツール呼び出し ビジョン 構造化出力

料金

入力 · USD 0.13 / 100万トークン

出力 · USD 0.4 / 100万トークン

キャッシュ読み取り · USD 0.05 / 100万トークン

キャッシュ書き込み · USD 0.13 / 100万トークン

モデル仕様

モデルタイプ
チャット / 画像
コンテキスト ウィンドウ (トークン)
256000
最大出力(トークン)
8192
推理
対応
ツール呼び出し
対応
ビジョン
対応
構造化出力
対応

プライバシー

不明

不明とは、検証済みの service-wide 保証が公開されていないことを意味します。無修正は、すべてのリクエストが成功することを保証するものではありません。

クイックスタート

API キーに対してこのモデルが返されていることを確認し、その機能について文書化された入力オプションを確認してください。

GLOOP_API_BASE に API の URL、GLOOP_API_KEY にサーバー側のキーを設定してください。

curl

curl --fail-with-body "${GLOOP_API_BASE%/}/v1/chat/completions" \
  -H "Authorization: Bearer $GLOOP_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "messages": [
    {
      "content": "Hello",
      "role": "user"
    }
  ],
  "model": "google-gemma-4-26b-a4b-it"
}'

Python

import os, json, urllib.request

url = os.environ['GLOOP_API_BASE'].rstrip('/') + "/v1/chat/completions"
headers = {'Authorization': 'Bearer ' + os.environ['GLOOP_API_KEY']}
headers['Content-Type'] = 'application/json'
data = "{\n  \"messages\": [\n    {\n      \"content\": \"Hello\",\n      \"role\": \"user\"\n    }\n  ],\n  \"model\": \"google-gemma-4-26b-a4b-it\"\n}".encode('utf-8')
request = urllib.request.Request(url, data=data, headers=headers)
with urllib.request.urlopen(request) as response:
    print(json.load(response))

Node.js

const url = process.env.GLOOP_API_BASE.replace(/\/$/, '') + "/v1/chat/completions";
const headers = { Authorization: `Bearer ${process.env.GLOOP_API_KEY}` };
headers['Content-Type'] = 'application/json';
const response = await fetch(url, { method: 'POST', headers, body: JSON.stringify({
  "messages": [
    {
      "content": "Hello",
      "role": "user"
    }
  ],
  "model": "google-gemma-4-26b-a4b-it"
}) });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());

実行前にモデルのアクセス権限と料金を確認してください。コピーだけでは API は呼び出されません。

API ガイドを見る · モデルの検出 · SDKの統合 · 請求

よくある質問

Google Gemma 4 26B A4B Instruct — どのモデル ID を使用しますか?

google-gemma-4-26b-a4b-it

Google Gemma 4 26B A4B Instruct — このモデルの料金は?

入力: USD 0.13 / 100万トークン; 出力: USD 0.4 / 100万トークン

Google Gemma 4 26B A4B Instruct — 対応する API エンドポイントは?

/v1/chat/completions

Google Gemma 4 26B A4B Instruct — コンテキストウィンドウのサイズは?

256000 トークン

同じカテゴリのモデル

全モデル