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
Google

Gemma 4 31B API

Google
About

Build advanced reasoning agents with Gemma 4 31B, 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 via the Google API with up to 8K output tokens.

Capabilities

Input Modalities

textimage

Output Modalities

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

Tokens

Input Limit
256K

Tokens

Max Output
8K

Tokens

Pricing

Standard (per 1M tokens)

Input
Free
Output
Free
Frequently Asked Questions

Gemma 4 31B by Google costs Free per 1M input tokens and Free per 1M output tokens.

Model Details
ID
gemma-4-31b
Provider
Google
Family
gemma
Release Date
Apr 2, 2026
Knowledge Cutoff
N/A
API Integration
NPM Package
@ai-sdk/google
Environment Variables
GOOGLE_GENERATIVE_AI_API_KEY
GEMINI_API_KEY
Documentation