Gemma 4 technical docs
Endpoint, auth header, parameters, prices, and tested request examples for Gemma 4 26B A4B IT.
Endpoint and pricing
Request headers
Bearer Imole API key.
Use application/json for JSON requests.
Request parameters
Text model id.
String input or Responses input array.
Legacy chat-style array. The router converts it to Responses input.
System or developer instruction inserted ahead of the user task.
Optional provider output control. Imole does not require it or impose its own token ceiling.
Optional reasoning controls when supported, including effort and Pro mode.
Sampling randomness when the model supports it.
Nucleus sampling control.
Return server-sent events when supported.
true, falseTool definitions for tool-enabled Responses calls.
Tool selection policy.
auto, none, requiredAllow multiple tool calls in one turn.
true, falseStructured text format controls for Responses.
Compatibility field for JSON-style output requests.
Optional request metadata.
Tested request examples
curl -X POST "https://api.imole.app/v1/responses" \
-H "Authorization: Bearer $IMOLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemma-4-26b-a4b-it",
"max_output_tokens": 256,
"input": "Say hello from Imole.",
"instructions": "Reply with exactly hello-from-imole and nothing else."
}'curl -X POST "https://api.imole.app/v1/responses" \
-H "Authorization: Bearer $IMOLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemma-4-26b-a4b-it",
"max_output_tokens": 256,
"input": [
{
"role": "user",
"content": [
{
"type": "input_text",
"text": "Say hello from Imole."
}
]
}
],
"instructions": "Reply with exactly hello-from-imole and nothing else."
}'curl -X POST "https://api.imole.app/v1/responses" \
-H "Authorization: Bearer $IMOLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemma-4-26b-a4b-it",
"max_output_tokens": 256,
"messages": [
{
"role": "system",
"content": "Reply with exactly hello-from-imole and nothing else."
},
{
"role": "user",
"content": "Say hello from Imole."
}
]
}'