Google / Text, vision & video

Gemma 4 31B (free)

Gemma 4 31B (free) (google/gemma-4-31b-it:free) is a multimodal language model from Google on the OceanToken API at free of charge, rate-limited, with a 262K-token context window and reasoning, tool calling, image input.

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output.

Create an account or sign in to OceanToken.

Context window

262K tokens

Input

image + text + video

Output

text

  • Multi-step reasoning
  • Tool-using agents
  • Image understanding
  • Video understanding

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

Base URL https://api.oceantoken.ai/v1

One account. Your next idea.

Price
Free

Official price as of October 18, 2026. The console always shows the current price.

Open OceanToken ↗Specs, request sample and alternatives in the docs ↗

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output.

Gemma 4 31B (free) is free to use on OceanToken.

Gemma 4 31B (free) has a context window of 262K tokens (262,144 tokens).

Gemma 4 31B (free) supports tool calling, image input (vision) and reasoning. It takes image, text and video input and returns text.

Send requests to https://api.oceantoken.ai/v1/chat/completions with the model ID google/gemma-4-31b-it:free and your OceanToken API key. The API is OpenAI-compatible, so an OpenAI SDK needs only the base URL https://api.oceantoken.ai/v1 and your key. The Responses API and the Anthropic Messages API (/v1/messages) work too. The same OceanToken API key works for every model your account can use. Full reference: docs.oceantoken.ai.

OceanToken is prepaid. Open Credits in the console, choose an amount and pay by card on Stripe's hosted checkout page (Link works too; Alipay and WeChat Pay are not available). Each top-up is between $10 and $100,000, and your balance updates a few seconds after payment. Have a trial code? Redeem it on the same page.

Purchased credits are valid for 12 months from the date of purchase. Credits from trial codes, promotions or gifts may have a shorter validity. All purchases are final and non-refundable, except where the law requires a refund. Section 6 of the Terms of Service has the details.

Not if the request never ran: a request refused for an insufficient balance or by a safety check, or one whose provider fails before returning any output, is not charged. A video job that fails releases the amount it held. If a request breaks off after the model has started producing output, for example a stream cut off part-way, you pay for the tokens that were processed and generated for it.

There are two ways to buy. Pay-as-you-go is self-serve: sign up, add prepaid credits and use every model in the catalog at its official price. Enterprise customers get agreement pricing based on expected usage: email support@oceantoken.ai.