Gemma 4 26B A4B IT

Instruction-tuned Gemma 4 text model exposed through Cloudflare Workers AI for general chat and writing tasks.

Text

Gemma 4 technical docs

Endpoint, auth header, parameters, prices, and tested request examples for Gemma 4 26B A4B IT.

Endpoint

Endpoint and pricing

POST /responses Endpoint https://api.imole.app/v1 Base URL 0.5 API cauris 0.5 Agent cauris
Headers

Request headers

Authorization required

Bearer Imole API key.

Content-Type required

Use application/json for JSON requests.

Parameters

Request parameters

model required

Text model id.

input required

String input or Responses input array.

messages

Legacy chat-style array. The router converts it to Responses input.

instructions

System or developer instruction inserted ahead of the user task.

max_output_tokens

Optional provider output control. Imole does not require it or impose its own token ceiling.

reasoning

Optional reasoning controls when supported, including effort and Pro mode.

temperature

Sampling randomness when the model supports it.

top_p

Nucleus sampling control.

stream

Return server-sent events when supported.

true, false
tools

Tool definitions for tool-enabled Responses calls.

tool_choice

Tool selection policy.

auto, none, required
parallel_tool_calls

Allow multiple tool calls in one turn.

true, false
text.format

Structured text format controls for Responses.

response_format

Compatibility field for JSON-style output requests.

metadata

Optional request metadata.

Examples

Tested request examples

String input
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."
}'
Responses input array
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."
}'
Legacy messages array
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."
    }
  ]
}'