Gemini's API supports URL scraping, allowing you to provide URLs for web pages, PDFs, and images to automatically fetch content, which it will then process for you. Note that the tokens from the fetched content are also counted among the input tokens, but you can save on the costs of third-party scraping APIs, making it quite cost-effective. Of course, URLs with paywalls or those that prohibit scraping won't work.
Logan Kilpatrick
Logan Kilpatrick20 tuntia sitten
Today we are making URL Context, my favorite Gemini API tool, ready for scaled production use 🔗 The model can now visit webpages, PDF's, images, and more when you provide the direct URL, and you simply pay for the tokens it processes, no additional tool cost!
50,66K