Skip to main content
Gemini 2.5 Flash is Google’s fast and efficient model with Google Search integration, available through AnyFast via the native Gemini API. It can ground responses with real-time search results.

Key capabilities

  • Google Search grounding — Enhance responses with real-time web search
  • Document processing — Process and analyze documents
  • Multi-modal input — Accept text and file inputs
  • Fast inference — Optimized for speed and efficiency

Quick example

curl "https://www.anyfast.ai/v1beta/models/gemini-2.5-flash:generateContent?key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [
      {
        "role": "user",
        "parts": [{ "text": "What is the latest news about AI?" }]
      }
    ],
    "tools": [{ "googleSearch": {} }]
  }'

Parameters

ParameterTypeRequiredDescription
keystringYesAPI key (query parameter)
contentsarrayYesArray of { role, parts } objects
toolsarrayNoInclude { "googleSearch": {} } to enable search

API Reference

View the interactive API playground for Gemini 2.5 Flash.