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
Deep Infra

Gemma 4 31B API

Deep Infra
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 cost-effective pricing at $0.13/1M input and $0.38/1M output tokens, native tool calling support, open weights architecture. Access Gemma 4 31B via the Deep Infra 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
$0.13
Output
$0.38
Frequently Asked Questions

Gemma 4 31B by Deep Infra costs $0.13 per 1M input tokens and $0.38 per 1M output tokens.

Model Details
ID
google/gemma-4-31B-it
Provider
Deep Infra
Family
gemma
Release Date
Apr 2, 2026
Knowledge Cutoff
N/A
API Integration
NPM Package
@ai-sdk/deepinfra
Environment Variables
DEEPINFRA_API_KEY
Documentation