Google Gemini · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Gemini Models API
21 actions
21 updates
phrasing
extends
openapi/google-gemini-models-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for Google Gemini's API. It is a proposal applied on top of the contract, not a document Google Gemini publishes.
What the actions change
x-apievangelist-phrasing
Targets 21 · first 16 shown; the file carries all of them
$.info
$.paths['/v1beta/models/{modelsId}:generateText'].post
$.paths['/v1beta/models'].get
$.paths['/v1beta/models/{modelsId}:countTextTokens'].post
$.paths['/v1beta/models/{modelsId}:streamGenerateContent'].post
$.paths['/v1beta/models/{modelsId}:batchEmbedText'].post
$.paths['/v1beta/models/{modelsId}'].get
$.paths['/v1beta/models/{modelsId}:embedText'].post
$.paths['/v1beta/models/{modelsId}:embedContent'].post
$.paths['/v1beta/models/{modelsId}:predictLongRunning'].post
$.paths['/v1beta/models/{modelsId}:generateMessage'].post
$.paths['/v1beta/models/{modelsId}:countTokens'].post
$.paths['/v1beta/models/{modelsId}:generateAnswer'].post
$.paths['/v1beta/models/{modelsId}:generateContent'].post
$.paths['/v1beta/models/{modelsId}:asyncBatchEmbedContent'].post
$.paths['/v1beta/models/{modelsId}:countMessageTokens'].post
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Gemini Models API
version: 1.0.0
extends: openapi/google-gemini-models-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-15'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 20
- target: $.paths['/v1beta/models/{modelsId}:generateText'].post
update:
x-apievangelist-phrasing:
intent: Generate text from a prompt
effect: write
questions:
- How do I get a model to write a story or answer a question from a prompt?
- Can I cap the number of tokens in a text generation?
instructions:
- text: Generate text from prompt {prompt} on model {modelsId}.
slots:
prompt: requestBody.prompt
modelsId: path.modelsId
- text: Write {candidateCount} text responses from {prompt} on {modelsId}, each capped at {maxOutputTokens} tokens.
slots:
candidateCount: requestBody.candidateCount
prompt: requestBody.prompt
modelsId: path.modelsId
maxOutputTokens: requestBody.maxOutputTokens
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models'].get
update:
x-apievangelist-phrasing:
intent: List available text generation models
effect: read
questions:
- Which Gemini models can I use for text generation?
- What are the token limits of each model?
instructions:
- text: List all available text generation models.
- text: Show the first {pageSize} models available for text generation.
slots:
pageSize: query.pageSize
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:countTextTokens'].post
update:
x-apievangelist-phrasing:
intent: Count tokens in text
effect: read
questions:
- How many tokens does a given piece of text take up in a model?
- Can I check token count before sending a long prompt?
instructions:
- text: Count the tokens in {prompt} using model {modelsId}.
slots:
prompt: requestBody.prompt
modelsId: path.modelsId
- text: Tell me how many tokens {prompt} would use on {modelsId}.
slots:
prompt: requestBody.prompt
modelsId: path.modelsId
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:streamGenerateContent'].post
update:
x-apievangelist-phrasing:
intent: Stream a model response
effect: write
questions:
- Can I stream a model's answer piece by piece as it writes?
- Is there a streaming version of text generation for long responses?
instructions:
- text: Stream a generation from {contents} on model {modelsId}.
slots:
contents: requestBody.contents
modelsId: path.modelsId
- text: Stream a model response to {contents} on {modelsId} with safety settings {safetySettings}.
slots:
contents: requestBody.contents
modelsId: path.modelsId
safetySettings: requestBody.safetySettings
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:batchEmbedText'].post
update:
x-apievangelist-phrasing:
intent: Batch embed a list of texts
effect: write
questions:
- Can I turn a batch of short texts into embedding vectors at once?
- What is the maximum number of texts I can embed in one batch?
instructions:
- text: 'Batch embed these texts: {texts} using model {modelsId}.'
slots:
texts: requestBody.texts
modelsId: path.modelsId
- text: Embed {texts} in one request on {modelsId}.
slots:
texts: requestBody.texts
modelsId: path.modelsId
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}'].get
update:
x-apievangelist-phrasing:
intent: Get a model's details
effect: read
questions:
- What parameters and token limits does a specific model have?
- How do I look up one model's metadata by its name?
instructions:
- text: Get the details of model {modelsId}.
slots:
modelsId: path.modelsId
- text: Show the version number and token limits for {modelsId}.
slots:
modelsId: path.modelsId
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:embedText'].post
update:
x-apievangelist-phrasing:
intent: Embed a single text string
effect: write
questions:
- How do I turn one sentence into an embedding vector?
- Can I embed a single text string without a chat history?
instructions:
- text: Embed the text {text} using model {modelsId}.
slots:
text: requestBody.text
modelsId: path.modelsId
- text: Create an embedding vector for {text} on {modelsId}.
slots:
text: requestBody.text
modelsId: path.modelsId
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:embedContent'].post
update:
x-apievangelist-phrasing:
intent: Embed structured content
effect: write
questions:
- Can I embed a chat message or document title as structured content?
- What embedding options exist for a single piece of content?
instructions:
- text: Embed content {content} using model {modelsId}.
slots:
content: requestBody.content
modelsId: path.modelsId
- text: Embed {content} on {modelsId} as a {taskType} task.
slots:
content: requestBody.content
modelsId: path.modelsId
taskType: requestBody.taskType
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:predictLongRunning'].post
update:
x-apievangelist-phrasing:
intent: Run a long-running prediction (deprecated)
effect: write
questions:
- Is there a long-running prediction call that returns an operation ID?
- Can I track a prediction that takes a while to finish?
instructions:
- text: Run a long-running prediction on {instances} for model {modelsId}.
slots:
instances: requestBody.instances
modelsId: path.modelsId
- text: Submit {instances} for a long-running prediction on {modelsId} with labels {labels}.
slots:
instances: requestBody.instances
modelsId: path.modelsId
labels: requestBody.labels
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:generateMessage'].post
update:
x-apievangelist-phrasing:
intent: Generate a chat-style message
effect: write
questions:
- How do I get a model to reply to a chat prompt as a message?
- Can I set the temperature on a chat message generation?
instructions:
- text: Generate a chat message from {prompt} on model {modelsId}.
slots:
prompt: requestBody.prompt
modelsId: path.modelsId
- text: Reply to {prompt} on {modelsId} with temperature {temperature} and {candidateCount} candidates.
slots:
prompt: requestBody.prompt
modelsId: path.modelsId
temperature: requestBody.temperature
candidateCount: requestBody.candidateCount
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:countTokens'].post
update:
x-apievangelist-phrasing:
intent: Count the tokens in text
effect: read
questions:
- How many tokens does a prompt take up in Gemini?
- Can I estimate token count before sending a generation request?
instructions:
- text: Count tokens in {contents} on model {modelsId}.
slots:
contents: requestBody.contents
modelsId: path.modelsId
- text: Estimate tokens for prompt {contents} using model {modelsId}.
slots:
contents: requestBody.contents
modelsId: path.modelsId
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:generateAnswer'].post
update:
x-apievangelist-phrasing:
intent: Answer a question from passages
effect: write
questions:
- Can I get a model to answer a question grounded in a set of passages?
- What answer styles can I choose from when answering a question?
instructions:
- text: Answer {contents} using passages {inlinePassages} on model {modelsId}.
slots:
contents: requestBody.contents
inlinePassages: requestBody.inlinePassages
modelsId: path.modelsId
- text: Answer {contents} on {modelsId} in {answerStyle} style.
slots:
contents: requestBody.contents
modelsId: path.modelsId
answerStyle: requestBody.answerStyle
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:generateContent'].post
update:
x-apievangelist-phrasing:
intent: Generate a model response to content
effect: write
questions:
- How do I get a model to respond to a chat history or document?
- Can I use tools when generating a model response?
instructions:
- text: Generate a response to {contents} on model {modelsId}.
slots:
contents: requestBody.contents
modelsId: path.modelsId
- text: Respond to {contents} on {modelsId} with tools {tools} and safety settings {safetySettings}.
slots:
contents: requestBody.contents
modelsId: path.modelsId
tools: requestBody.tools
safetySettings: requestBody.safetySettings
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:asyncBatchEmbedContent'].post
update:
x-apievangelist-phrasing:
intent: Enqueue a batch of embedding requests
effect: write
questions:
- Can I queue many embedding requests to be processed in the background?
- Is there an asynchronous batch embed for content?
instructions:
- text: Enqueue batch {batch} for embedding on model {modelsId}.
slots:
batch: requestBody.batch
modelsId: path.modelsId
- text: Queue these embedding requests {batch} on {modelsId}.
slots:
batch: requestBody.batch
modelsId: path.modelsId
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:countMessageTokens'].post
update:
x-apievangelist-phrasing:
intent: Count tokens in a chat message
effect: read
questions:
- How many tokens does a single chat message use?
- Can I count tokens for a message string before sending it?
instructions:
- text: Count the tokens in message {prompt} on model {modelsId}.
slots:
prompt: requestBody.prompt
modelsId: path.modelsId
- text: Tell me how many tokens {prompt} takes on {modelsId}.
slots:
prompt: requestBody.prompt
modelsId: path.modelsId
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:batchEmbedContents'].post
update:
x-apievangelist-phrasing:
intent: Batch embed a list of content objects
effect: write
questions:
- Can I embed many pieces of content in one request?
- What does each request in a batch of content embeddings need?
instructions:
- text: Batch embed these content requests {requests} on model {modelsId}.
slots:
requests: requestBody.requests
modelsId: path.modelsId
- text: Embed each of {requests} on {modelsId}.
slots:
requests: requestBody.requests
modelsId: path.modelsId
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:predict'].post
update:
x-apievangelist-phrasing:
intent: Run a prediction on a model (deprecated)
effect: write
questions:
- Is there an older prediction call that takes instances and parameters?
- Can I still use the legacy prediction method for a model?
instructions:
- text: Run a legacy prediction on {instances} for model {modelsId}.
slots:
instances: requestBody.instances
modelsId: path.modelsId
- text: Predict on {instances} for {modelsId} with parameters {parameters}.
slots:
instances: requestBody.instances
modelsId: path.modelsId
parameters: requestBody.parameters
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}:batchGenerateContent'].post
update:
x-apievangelist-phrasing:
intent: Enqueue a batch of generation requests
effect: write
questions:
- Can I queue many generation requests to be processed in the background?
- Is there an asynchronous batch generate for content?
instructions:
- text: Enqueue batch {batch} for generation on model {modelsId}.
slots:
batch: requestBody.batch
modelsId: path.modelsId
- text: Queue these generation requests {batch} on {modelsId}.
slots:
batch: requestBody.batch
modelsId: path.modelsId
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}/operations/{operationsId}'].get
update:
x-apievangelist-phrasing:
intent: Get a long-running operation
effect: read
questions:
- How do I check the result of a long-running operation?
- What state is a queued operation in?
instructions:
- text: Get operation {operationsId} on model {modelsId}.
slots:
operationsId: path.operationsId
modelsId: path.modelsId
- text: Check the status of long-running operation {operationsId} for {modelsId}.
slots:
operationsId: path.operationsId
modelsId: path.modelsId
method: generated
generated: '2026-11-15'
- target: $.paths['/v1beta/models/{modelsId}/operations'].get
update:
x-apievangelist-phrasing:
intent: List long-running operations
effect: read
questions:
- Which long-running operations are still running on a model?
- Can I filter the operations on a model?
instructions:
- text: List the long-running operations on model {modelsId}.
slots:
modelsId: path.modelsId
- text: Show operations on {modelsId} matching {filter}.
slots:
modelsId: path.modelsId
filter: query.filter
method: generated
generated: '2026-11-15'
Work with this as data
Every overlay here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/google-gemini-models-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.