
Gemma 4 12B IT
Google Gemma 4 12B, a multilingual assistant for chat, writing, code and maths in over 140 languages, that can reason…
Fine-tunableGEMMASmall multimodal LLM supporting text, image, audio and video inputs.

Gemma 4 E2B — a small, efficient multimodal LLM that accepts text, image, audio, and video inputs and returns a generated text response. Suited to chat and instruction-following, visual question answering, audio transcription/translation, video understanding, and lightweight reasoning.
prompt (optionally with system_prompt)image_inputasr) or translate (ast) via the audio-task inputsvideo_inputenable_thinking adds an extended chain-of-thought stepYou must provide either a prompt or an audio_task (they form a one-of group). See the API tab for ready-to-run request snippets.
| Name | Type | Required | Default | Details |
|---|---|---|---|---|
prompt | text | One of: prompt, audio_task | — | User prompt. Required if audio_task is not set. Min 1 characters |
system_prompt | text | No | — | System-level instruction prepended before the user prompt. |
max_new_tokens | integer | No | 200 | Maximum number of tokens to generate. 1–8192 |
temperature | number | No | 0.7 | Sampling temperature. Higher values increase randomness. 0–2 |
top_p | number | No | — | Cumulative probability threshold for nucleus sampling. 0–1 |
top_k | integer | No | — | Number of highest-probability tokens to keep for sampling. 1–200 |
do_sample | boolean | No | true | Whether to use sampling; if false, greedy decoding is used. |
enable_thinking | boolean | No | false | Enables extended chain-of-thought reasoning before the final answer. |
image_input | file list | No | — | One or more image URLs for visual question answering. image/png, jpeg, webp |
audio_input | file list | When audio_task in asr, ast | — | Audio file URL(s). Required when audio_task is asr or ast. audio/wav, mp3 |
video_input | file list | No | — | Video file URL(s) for video understanding tasks. video/mp4, webm |
vision_token_budget | integer | No | 280 | Maximum image tokens consumed per image input. Allowed: 70, 140, 280, 560, 1120 |
audio_task | text | One of: prompt, audio_task | — | Audio processing task: asr (transcription) or ast (translation). Required if prompt is not set. Allowed: asr, ast |
audio_language | text | When audio_task in asr, ast | — | Source language code for ASR or AST tasks. |
audio_target_language | text | When audio_task = ast | — | Target language code for AST (translation) tasks. |
Output. Returns plain text: Generated text response.
Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=GEMMA" \
-H "X-API-Key: kg_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"input": {
"do_sample": true,
"enable_thinking": false,
"max_new_tokens": 200,
"temperature": 0.7,
"vision_token_budget": 280
},
"outputFormat": "json"
}'
# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
-H "X-API-Key: kg_your_api_key"from kainguru import KainguruClient
with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
submitted = client.executions.execute(
"GEMMA",
{
"do_sample": True,
"enable_thinking": False,
"max_new_tokens": 200,
"temperature": 0.7,
"vision_token_budget": 280
},
output_format="json",
)
result = client.executions.await_completion(submitted.id)
print(result.execution.output)You can fine-tune Gemma 4 E2B on your own data and run the tuned model through the same API. Dataset: JSONL file(s): one JSON object per line, either {"text": "..."} or {"prompt": "...", "response": "..."}.
Gemma 4 E2B also supports retrieval-augmented generation.
The steps are in the docs.
Price per 1M tokens: 2038 credits ($20.38). The price is shown again before every run; all prices are on the pricing page.

Google Gemma 4 12B, a multilingual assistant for chat, writing, code and maths in over 140 languages, that can reason…
Fine-tunable
Gemma 4 31B, Google's open assistant for chat, reasoning, writing and code in over 35 languages, that thinks step by…
Fine-tunable
Reasoning model that shows its chain of thought before answering, distilled into a Llama 8B base.
Fine-tunable
DeepSeek-R1-0528 Qwen3 8B, a reasoning model for maths, code and science that works through a problem step by step…
Fine-tunable
MiniCPM5 2B, a small English and Chinese assistant for chat, code, maths and long documents, that can reason step by…
Fine-tunable
Qwen3.5 2B, a small assistant for chat, writing, summaries and code in about 200 languages, Azerbaijani included, that…
Fine-tunable