Skip to main content

Text model

Gemma 4 31B IT (Free)

google/gemma-4-31b-it:free

google/gemma-4-31b-it:free is a language model from Google you can call free of charge on the OceanToken API, rate-limited, with a 262K-token context window and up to 33K output tokens; it supports reasoning, tool calling, image input.

At a glance

Model IDgoogle/gemma-4-31b-it:free
TypeText
PublisherGoogle
Context window262,144 tokens
Max output32,768 tokens
PriceFree, rate-limited
Capabilitiesreasoning, tool calling, image input
Endpoint/v1/chat/completions, /v1/responses
API shapeOpenAI-compatible
In the catalog since2026-04-02

Call it

Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.

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

More from Google

All Google models on OceanToken

Use it

Create an account All models and prices

Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.