AI Model APIs
AI Model APIsProviders
AI Model APIs

The complete platform for comparing AI models. Find pricing, capabilities, and the perfect model for your use case.

contact@aimodelapis.com

Resources

  • AI Models APIs
  • Providers

About

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 AI Model APIs. All rights reserved.

Back to Models
OpenRouter

Gemma 4 31B (free) API

OpenRouter
About

Build advanced reasoning agents with Gemma 4 31B (free), a specialized AI model optimized for complex logic and chain-of-thought tasks. This model delivers available completely free of charge, native tool calling support, open weights architecture. Access Gemma 4 31B (free) via the OpenRouter API with up to 33K output tokens.

Capabilities

Input Modalities

textimagevideo

Output Modalities

text
Reasoning
Yes
Structured Output
Yes
Tool Use
Yes
WeightsOpen
Temperature
Adjustable
Attachment
Supported
Limits
Context Window
262K

Tokens

Input Limit
262K

Tokens

Max Output
33K

Tokens

Pricing

Standard (per 1M tokens)

Input
Free
Output
Free
Frequently Asked Questions

Gemma 4 31B (free) by OpenRouter costs Free per 1M input tokens and Free per 1M output tokens.

Model Details
ID
google/gemma-4-31b-it:free
Provider
OpenRouter
Family
gemma
Release Date
Apr 2, 2026
Knowledge Cutoff
Jan 1, 2025
API Integration
NPM Package
@openrouter/ai-sdk-provider
Environment Variables
OPENROUTER_API_KEY
API Base URL
https://openrouter.ai/api/v1
Documentation