API · Models
Text

Gemma 4 26B

Gemma 4 26B A4B IT is Google's open-weight mixture-of-experts model with a 262K context window, optimized for instruction-following and coding tasks.

Context 262.1K·Max out 262.1K

Quickstart

import { streamText } from 'ai';
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';

const blackbox = createOpenAICompatible({
  name: 'blackbox',
  apiKey: process.env.BLACKBOX_API_KEY!,
  baseURL: 'https://api.blackbox.ai/v1',
});

const result = streamText({
  model: blackbox('blackboxai/google/gemma-4-26b-a4b-it'),
  prompt: 'Why is the sky blue?',
});

for await (const chunk of result.textStream) {
  process.stdout.write(chunk);
}

Specs & pricing

Input $/M
$0.13
Output $/M
$0.40
Context window
262.1K
Max output
262.1K
Supported parameters
tool-usejson-modestreaming

Related models

ModelTypeContextInput $/M
Gemma 4 31BText262.1K$0.14
Gemini 3.5 FlashText1M$1.50
Gemini 3.1 Flash LiteText1M$0.25
Gemini 3.1 ProText1.0M$2
Blackbox ProText400K$1.75