Google: Gemma 4 31B

google/gemma-4-31b-it — available through the Autonomous Relay Agents API, served by Google.

Google: Gemma 4 31B has a 262,144-token context window and costs $0.09 per million input tokens and $0.34 per million output tokens, at the provider's list price on your own key.

Context length
262,144 tokens
Input
$0.09 per M
Output
$0.34 per M
Served by
google
Input modalities
image, text, video

Variants

The same model under another model id, priced or limited differently. Call it by its id; prices are per million tokens.

VariantModel idContextInputOutput
Google: Gemma 4 31B (batch)google/gemma-4-31b-it:batch262,144$0.39 per M$0.97 per M
Google: Gemma 4 31B (free)google/gemma-4-31b-it:free262,144$0.00 per M$0.00 per M

This is a BYOK-only model: requests use your own provider key. Prices shown are the provider's list prices.

Call it

Any OpenAI-compatible client works: change the base URL and send this model id.

curl https://autonomousrelay.com/v1/chat/completions \
  -H "Authorization: Bearer $AUTONOMOUS_RELAY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "google/gemma-4-31b-it", "messages": [{"role": "user", "content": "Hello"}]}'

Compare

In collections