How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Google Gemini Content Generation API

Generate content using Gemini models with text, image, audio, and video inputs. Supports multimodal prompts, function calling, structured output, and configurable safety settings.

Google Gemini Content Generation API is one of 15 APIs that Google Gemini publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 1 JSON Schema definition.

Tagged areas include Content Generation. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, a getting-started guide, pricing, rate-limit docs, and 1 JSON Schema.

This API exposes 2 operations across 2 paths, and defines 21 schemas. It is described by OpenAPI 3.1.0, at version v1beta.

Requests are made against a single base URL, https://generativelanguage.googleapis.com/v1beta.

2 operations 2 paths 21 schemas 2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
v1beta
Base URL
https://generativelanguage.googleapis.com
Authentication
API Key
License
Terms of Service
Resource Areas
1

Authentication & Security 1

Google Gemini Content Generation API declares 1 security scheme for authenticating requests. An API key is passed in the query as key (ApiKeyAuth). By default, every request must be authenticated.

  • ApiKeyAuth — API key for authenticating requests. Obtain from Google AI Studio at https://aistudio.google.com/app/apikey.

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 POST. Each is listed below with its method, path, parameters, and response codes.

Content Generation 2

Generate content using Gemini models with text, image, audio, and video inputs. Supports multimodal prompts, function calling, structured output, and configurable safety settings.

POST
/models/{model}:generateContent
Google Gemini Generates a model response given an input GenerateContentRequest. Refer to the text generation guide for detailed usage information. Input capabilities differ between models, including…
generateContent 2 params body → 200400401403404429500
POST
/models/{model}:streamGenerateContent
Google Gemini Generates a streamed response from the model given an input GenerateContentRequest. Returns a stream of GenerateContentResponse chunks using server-sent events.
streamGenerateContent 3 params body → 200400429

Schemas 21

The contract defines 21 schemas that model the data the API accepts and returns. The most detailed are GenerationConfig (11 properties), GenerateContentRequest (7 properties), Candidate (6 properties), GenerateContentResponse (5 properties). Each schema is shown below with its type and property counts.

Blob
object
Raw media bytes with MIME type information.
2 properties
Tool
object
Tool details that the model may use to generate response. A Tool is a piece of code that enables the system to interact with external systems to perform an act…
2 properties
SafetyRating
object
Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content.
3 properties
GenerateContentResponse
object
Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in GenerateContentResponse.p…
5 properties
GenerationConfig
object
Configuration options for model generation and outputs. Not all parameters are configurable for every model.
11 properties
GenerateContentRequest
object
Request to generate a completion from the model. Contains the conversation content, optional tools, safety settings, system instructions, and generation config…
7 properties 1 required
FunctionCallingConfig
object
Configuration for specifying function calling behavior.
2 properties
PromptFeedback
object
A set of the feedback metadata for the prompt specified in GenerateContentRequest.content.
2 properties
Candidate
object
A response candidate generated from the model.
6 properties
Part
object
A datatype containing media that is part of a multi-part Content message. A Part consists of data which has an associated datatype. A Part can only contain one…
5 properties
CitationSource
object
A citation to a source for a portion of a specific response.
4 properties
FunctionCall
object
A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name with the arguments and their values.
2 properties
FileData
object
URI based data for media uploaded via the Files API.
2 properties
SafetySetting
object
Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.
2 properties
ErrorResponse
object
Error response from the API.
1 property
UsageMetadata
object
Metadata on the generation request's token usage.
4 properties
FunctionResponse
object
The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from…
2 properties
CitationMetadata
object
A collection of source attributions for a piece of content.
1 property
Content
object
The base structured datatype containing multi-part content of a message. A Content includes a role field designating the producer of the Content and a parts fi…
2 properties
ToolConfig
object
The Tool configuration containing parameters for specifying Tool use in the request.
1 property
FunctionDeclaration
object
Structured representation of a function declaration as defined by the OpenAPI 3.0 specification. Included in this declaration are the function name and paramet…
3 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

google-gemini-content-generation-api-openapi.yml Raw ↑

Other APIs Google Gemini publishes across the network.

Gemini Pro API
Gemini Pro Vision API
Gemini Ultra API
Gemini Embedding API
Gemini Live API
Gemini Context Caching API
Gemini Fine-Tuning API
Gemini Interactions API
Vertex AI Gemini API
Vertex AI Imagen API
Vertex AI Gemini Live API
Vertex AI Text Embeddings API
Where this information came from

This is an independent, third-party profile of Google Gemini Content Generation API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.