# gemini-3.1-pro-preview API — WanAPIs

> **Model ID**: `gemini-3.1-pro-preview` · **Provider**: Google · **Category**: chat · **Endpoint**: `POST /v1/chat/completions`
> **Live Price**: $2.00 in · $12.00 out (RMB-anchored quota: `¥1 = $1 quota`, ~86% off USD list rates at `$1 ≈ ¥7`).
> **Web Page**: https://wanapi.ai/model/gemini-3-1-pro-preview

Google Gemini 3.1 Pro (2026), the successor flagship to Gemini 3 Pro — natively multimodal, 1M-token context, broad world knowledge and advanced cross-modal reasoning for the most complex reasoning and coding tasks.

**Also known as**: Google gemini-3.1-pro-preview

## Live Pricing & Specs

- **Input (per 1M tokens)**: $2.00 quota (¥2 ≈ $0.286 USD)
- **Output (per 1M tokens)**: $12.00 quota (¥12 ≈ $1.71 USD)

## Quickstart (cURL)

```bash
curl https://api.wanapis.com/v1/chat/completions \
  -H "Authorization: Bearer $WANAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gemini-3.1-pro-preview","messages":[{"role":"user","content":"Hello"}]}'
```

## FAQ

### How do I call gemini-3.1-pro-preview via WanAPIs?

Send an authenticated request with Authorization: Bearer <WANAPIS_API_KEY> to https://api.wanapis.com using POST /v1/chat/completions and model "gemini-3.1-pro-preview".

### How much does gemini-3.1-pro-preview cost on WanAPIs?

Current live rate: $2.00 in · $12.00 out. WanAPIs uses RMB-anchored quota (¥1 = $1 quota, roughly 1/7 or ~86% off USD-denominated list pricing) with zero monthly subscription.

### Can AI coding agents (Claude Code, Codex, Cursor) discover and use this model?

Yes. Point your agent to https://wanapi.ai/SKILL.md or install npx -y @wanapis/mcp. A machine-readable Markdown spec is also available at /model/gemini-3-1-pro-preview.md.

## Related Links

- Web Landing Page: https://wanapi.ai/model/gemini-3-1-pro-preview
- Agent Skill Router: https://wanapi.ai/SKILL.md
- Complete Live Pricing (Markdown): https://wanapi.ai/pricing.md
- OpenAPI 3.1 Spec: https://wanapi.ai/openapi.json
- MCP Server Card: https://wanapi.ai/.well-known/mcp.json
