> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc-studio-tools-doc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini

> Google model example.

| Example                                                                                              | Description                                                                                                                            |
| ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| [Agent With Thinking Budget](/examples/models/google/gemini/agent-with-thinking-budget)              | This requires `google-genai > 1.10.0`.                                                                                                 |
| [Google Audio Input Bytes Content](/examples/models/google/gemini/audio-input-bytes-content)         | Cookbook example for `google/gemini/audio_input_bytes_content.py`.                                                                     |
| [Google Audio Input File Upload](/examples/models/google/gemini/audio-input-file-upload)             | Cookbook example for `google/gemini/audio_input_file_upload.py`.                                                                       |
| [Google Audio Input Local File Upload](/examples/models/google/gemini/audio-input-local-file-upload) | Cookbook example for `google/gemini/audio_input_local_file_upload.py`.                                                                 |
| [Google Basic](/examples/models/google/gemini/basic)                                                 | Cookbook example for `google/gemini/basic.py`.                                                                                         |
| [Db](/examples/models/google/gemini/db)                                                              | Google model example.                                                                                                                  |
| [External Url Input](/examples/models/google/gemini/external-url-input)                              | The Gemini API now supports external HTTPS URLs (up to 100MB).                                                                         |
| [Google File Search Advanced](/examples/models/google/gemini/file-search-advanced)                   | Cookbook example for `google/gemini/file_search_advanced.py`.                                                                          |
| [Google File Search Basic](/examples/models/google/gemini/file-search-basic)                         | Cookbook example for `google/gemini/file_search_basic.py`.                                                                             |
| [Google File Search Rag Pipeline](/examples/models/google/gemini/file-search-rag-pipeline)           | Cookbook example for `google/gemini/file_search_rag_pipeline.py`.                                                                      |
| [File Upload With Cache](/examples/models/google/gemini/file-upload-with-cache)                      | This greatly saves on tokens during normal prompting.                                                                                  |
| [Gcs File Input](/examples/models/google/gemini/gcs-file-input)                                      | The Gemini API now supports GCS URIs natively (up to 2GB).                                                                             |
| [Gemini 2 To 3](/examples/models/google/gemini/gemini-2-to-3)                                        | Create a new agent with Gemini 3 Pro and re-use the history from the previous session.                                                 |
| [Gemini 3 Pro](/examples/models/google/gemini/gemini-3-pro)                                          | Non-streaming response.                                                                                                                |
| [Gemini 3 Pro Thinking Level](/examples/models/google/gemini/gemini-3-pro-thinking-level)            | Demonstrate async Gemini usage with tool calls and thinking.                                                                           |
| [Grounding with Gemini](/examples/models/google/gemini/grounding)                                    | Grounding enables Gemini to search the web and provide responses backed by.                                                            |
| [Google Image Editing](/examples/models/google/gemini/image-editing)                                 | Cookbook example for `google/gemini/image_editing.py`.                                                                                 |
| [Google Image Generation](/examples/models/google/gemini/image-generation)                           | Cookbook example for `google/gemini/image_generation.py`.                                                                              |
| [Google Image Input](/examples/models/google/gemini/image-input)                                     | Cookbook example for `google/gemini/image_input.py`.                                                                                   |
| [Google Image Input File Upload](/examples/models/google/gemini/image-input-file-upload)             | Cookbook example for `google/gemini/image_input_file_upload.py`.                                                                       |
| [Imagen Tool](/examples/models/google/gemini/imagen-tool)                                            | Make sure you have set the GOOGLE\_API\_KEY environment variable.                                                                      |
| [Imagen Tool Advanced](/examples/models/google/gemini/imagen-tool-advanced)                          | An Agent using the Gemini image generation tool.                                                                                       |
| [Knowledge](/examples/models/google/gemini/knowledge)                                                | Add content to the knowledge.                                                                                                          |
| [Pdf Input File Upload](/examples/models/google/gemini/pdf-input-file-upload)                        | Note: If the size of the file is greater than 20MB, and a file path is provided, the file automatically gets uploaded to Google GenAI. |
| [Google Pdf Input Local](/examples/models/google/gemini/pdf-input-local)                             | Cookbook example for `google/gemini/pdf_input_local.py`.                                                                               |
| [Google Pdf Input Url](/examples/models/google/gemini/pdf-input-url)                                 | Cookbook example for `google/gemini/pdf_input_url.py`.                                                                                 |
| [Retry](/examples/models/google/gemini/retry)                                                        | Example demonstrating how to set up retries with Google Gemini.                                                                        |
| [S3 Url File Input](/examples/models/google/gemini/s3-url-file-input)                                | The Gemini API now supports external HTTPS URLs (up to 100MB).                                                                         |
| [Google Search with Gemini](/examples/models/google/gemini/search)                                   | The search tool enables Gemini to access current information from Google Search.                                                       |
| [Storage And Memory](/examples/models/google/gemini/storage-and-memory)                              | Comment out after first run.                                                                                                           |
| [Google Structured Output](/examples/models/google/gemini/structured-output)                         | Cookbook example for `google/gemini/structured_output.py`.                                                                             |
| [Google Text To Speech](/examples/models/google/gemini/text-to-speech)                               | Cookbook example for `google/gemini/text_to_speech.py`.                                                                                |
| [Google Thinking Agent](/examples/models/google/gemini/thinking-agent)                               | Cookbook example for `google/gemini/thinking_agent.py`.                                                                                |
| [Tool Use](/examples/models/google/gemini/tool-use)                                                  | Google model example.                                                                                                                  |
| [Url Context](/examples/models/google/gemini/url-context)                                            | Google model example.                                                                                                                  |
| [Url Context With Search](/examples/models/google/gemini/url-context-with-search)                    | Run `uv pip install google-generativeai` to install dependencies.                                                                      |
| [Vertex AI Search with Gemini](/examples/models/google/gemini/vertex-ai-search)                      | Vertex AI Search allows Gemini to search through your data stores,.                                                                    |
| [Vertexai](/examples/models/google/gemini/vertexai)                                                  | export `GOOGLE_GENAI_USE_VERTEXAI="true"`.                                                                                             |
| [Google Vertexai With Credentials](/examples/models/google/gemini/vertexai-with-credentials)         | Cookbook example for `google/gemini/vertexai_with_credentials.py`.                                                                     |
| [Google Video Input Bytes Content](/examples/models/google/gemini/video-input-bytes-content)         | Cookbook example for `google/gemini/video_input_bytes_content.py`.                                                                     |
| [Google Video Input File Upload](/examples/models/google/gemini/video-input-file-upload)             | Cookbook example for `google/gemini/video_input_file_upload.py`.                                                                       |
| [Google Video Input Local File Upload](/examples/models/google/gemini/video-input-local-file-upload) | Cookbook example for `google/gemini/video_input_local_file_upload.py`.                                                                 |
| [Google Video Input Youtube](/examples/models/google/gemini/video-input-youtube)                     | Cookbook example for `google/gemini/video_input_youtube.py`.                                                                           |
