Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/vertex-ai-generate-with-the-gemini-api-in-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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-.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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