Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt

Use this file to discover all available pages before exploring further.

Gemini 3.1 Pro Preview is Google’s latest advanced language model, available through Anyfast via the native Gemini API. It excels at complex reasoning, coding, writing, and analysis with thinking capabilities.

Key capabilities

  • Native Gemini API — Uses Google’s native API format for full feature access
  • Thinking mode — Supports thinking configuration for enhanced reasoning
  • Multi-turn conversations — Handles complex dialogue with system instructions
  • Safety settings — Configurable content safety filters

Quick example

curl "https://www.anyfast.ai/v1beta/models/gemini-3.1-pro-preview:generateContent?key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [
      {
        "role": "user",
        "parts": [{ "text": "Explain quantum computing in simple terms." }]
      }
    ],
    "generationConfig": {
      "temperature": 1,
      "topP": 1
    }
  }'

Parameters

ParameterTypeRequiredDescription
keystringYesAPI key (query parameter)
contentsarrayYesArray of { role, parts } objects
systemInstructionobjectNoSystem instruction with parts array
generationConfig.temperaturefloatNo02. Controls randomness. Default: 1
generationConfig.topPfloatNoNucleus sampling threshold. Default: 1
generationConfig.thinkingConfigobjectNoThinking mode configuration

API Reference

View the interactive API playground for Gemini 3.1 Pro Preview.