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
DigitalOcean

Gemma 4 31B API

DigitalOcean
About

Integrate multimodal vision capabilities using Gemma 4 31B, designed to process both text and images seamlessly. This model delivers cost-effective pricing at $0.18/1M input and $0.50/1M output tokens, native tool calling support, open weights architecture. Access Gemma 4 31B via the DigitalOcean API with up to 8K output tokens.

Capabilities

Input Modalities

textimage

Output Modalities

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

Tokens

Input Limit
256K

Tokens

Max Output
8K

Tokens

Pricing

Standard (per 1M tokens)

Input
$0.18
Output
$0.50
Frequently Asked Questions

Gemma 4 31B by DigitalOcean costs $0.18 per 1M input tokens and $0.50 per 1M output tokens.

Model Details
ID
gemma-4-31B-it
Provider
DigitalOcean
Family
gemma
Release Date
Apr 22, 2026
Knowledge Cutoff
N/A
API Integration
NPM Package
@ai-sdk/openai-compatible
Environment Variables
DIGITALOCEAN_ACCESS_TOKEN
API Base URL
https://inference.do-ai.run/v1
Documentation