google · Google Cloud Docs
Generate content with the Gemini API in Vertex AI
Provides the technical implementation details and API methods for generating content using the Gemini API within the Vertex AI platform.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Generate content with the Gemini API in Vertex AI
Provides the technical implementation details and API methods for generating content using the Gemini API within the Vertex AI platform.
When To Use
Use when you need to implement code to send prompts to Gemini models, stream responses, or calculate token counts via the Vertex AI REST API.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/vertex-ai-generate-with-the-gemini-api-in-workflow-guide.md | A reference guide detailing the supported models, parameters, and request body structure for the Gemini API generateContent and streamGenerateContent operations in Vertex AI. | Questions about a reference guide detailing the supported models, parameters, and request body structure for the Gemini API generateC... |
examples/vertex-ai-generate-with-the-gemini-api-in-vertex-ai-gemini-generate-pyth.text | A Python code example using the Google GenAI SDK to call the generateContent method with a Gemini model. | Exact payloads, commands, or snippets shown in A Python code example using the Google GenAI SDK to call the generateContent method with a Gemini model. |
examples/vertex-ai-generate-with-the-gemini-api-in-vertex-ai-gemini-api-python-op.text | A Python code example demonstrating how to use the OpenAI client library to interact with the Gemini API via Vertex AI endpoints. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the OpenAI client library to interact with the Gemini API via Vertex A... |
examples/vertex-ai-generate-with-the-gemini-api-in-vertex-ai-gemini-generate-gola.text | A Go code example demonstrating how to use the Google GenAI SDK to generate text content using the Gemini API in Vertex AI. | Exact payloads, commands, or snippets shown in A Go code example demonstrating how to use the Google GenAI SDK to generate text content using the Gemini API in Vert... |
examples/vertex-ai-generate-with-the-gemini-api-in-vertex-ai-gemini-generateconte.text | A Python code example demonstrating how to use the Google GenAI client to generate content from an image URI using the Gemini model. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the Google GenAI client to generate content from an image URI using th... |
examples/vertex-ai-generate-with-the-gemini-api-in-vertex-ai-gemini-api-python-op-2.text | A Python code example demonstrating how to use the OpenAI client library to interact with the Gemini API via Vertex AI endpoints. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the OpenAI client library to interact with the Gemini API via Vertex A... |
examples/vertex-ai-generate-with-the-gemini-api-in-vertex-ai-gemini-generate-with.text | A Go code example demonstrating how to use the Gemini API in Vertex AI to generate content using both text and image inputs. | Exact payloads, commands, or snippets shown in A Go code example demonstrating how to use the Gemini API in Vertex AI to generate content using both text and image... |
examples/vertex-ai-generate-with-the-gemini-api-in-vertex-ai-gemini-generate-stre.text | A Python code example demonstrating how to use the Google GenAI SDK to perform a streaming content generation request with the Gemini model. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the Google GenAI SDK to perform a streaming content generation request... |
examples/vertex-ai-generate-with-the-gemini-api-in-vertex-ai-gemini-api-python-op-3.text | A Python code example demonstrating how to use the OpenAI client library to interact with the Gemini API via Vertex AI endpoints. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the OpenAI client library to interact with the Gemini API via Vertex A... |
examples/vertex-ai-generate-with-the-gemini-api-in-vertex-ai-gemini-api-generate-.text | A Go code example demonstrating how to use the Gemini API in Vertex AI to generate a text stream using a text prompt. | Exact payloads, commands, or snippets shown in A Go code example demonstrating how to use the Gemini API in Vertex AI to generate a text stream using a text prompt. |
What This Skill Covers
- Use generateContent or streamGenerateContent to generate content with Gemini.
- Main sections:
Get started,Supported models,Parameter list,Request body,contents.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference
