Skip to content

Gemini 3.1 Pro Preview

model: 'gemini-3-1-pro-preview'

Available through vertex, google, and openrouter.

Configuration

ts
// Vertex AI
{
  provider: 'vertex',
  model: 'gemini-3-1-pro-preview',
  extra: { project: 'my-gcp-project', location: 'us-central1' },
}

// Google AI
{
  provider: 'google',
  model: 'gemini-3-1-pro-preview',
  extra: { apiKey: process.env.GEMINI_API_KEY },
}

See Google Vertex AI or Google AI for authentication.

Specifications

Max input tokens1,000,000
Max output tokens64,000
Temperature0 (fixed — not configurable)

Cost

Cost
Input tokens$2.00 / million
Output tokens$12.00 / million

Costs are estimates. Actual billing depends on the provider and region.

Timeout

timeoutMs applies per individual LLM call within a batch. If unset, no explicit timeout is applied beyond the provider's default.