POST
/
v1beta
/
models
/
gemini-2.5-pro:generateContent
curl -X POST "https://www.anyfast.ai/v1beta/models/gemini-2.5-pro:generateContent?key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [
      {
        "role": "user",
        "parts": [{"text": "Summarize the content of this page: https://example.com"}]
      }
    ],
    "tools": [{"url_context": {}}]
  }'
{
  "candidates": [
    {
      "content": {
        "parts": [{"text": "The page contains..."}],
        "role": "model"
      },
      "finishReason": "STOP"
    }
  ]
}
Official documentation: https://ai.google.dev/gemini-api/docs/url-context
Use Gemini models to understand and analyze web page content by providing URLs.

Authentication

?key=YOUR_API_KEY

Request Parameters

key
string
required
API key.
contents
array
required
Content array containing text prompts with URLs.
tools
array
Tools configuration. Include url_context tool to enable URL fetching.
curl -X POST "https://www.anyfast.ai/v1beta/models/gemini-2.5-pro:generateContent?key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [
      {
        "role": "user",
        "parts": [{"text": "Summarize the content of this page: https://example.com"}]
      }
    ],
    "tools": [{"url_context": {}}]
  }'
{
  "candidates": [
    {
      "content": {
        "parts": [{"text": "The page contains..."}],
        "role": "model"
      },
      "finishReason": "STOP"
    }
  ]
}