RunAPI Gemini API
The Gemini API from RunAPI — 2 operation(s) for gemini.
The Gemini API from RunAPI — 2 operation(s) for gemini.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.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.curl "https://apis.io/api/v1/apis/runapi:runapi-gemini-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: RunAPI Gemini API
version: v1
description: Create and retrieve AI media tasks, or use compatible LLM protocol endpoints.
servers:
- url: https://runapi.ai
security:
- bearerAuth: []
tags:
- name: Gemini
paths:
/v1beta/models/{model}{generateContent}:
post:
tags:
- Gemini
summary: Gemini Generate Content
operationId: protocol_operation_gemini_generate_content
security:
- bearerAuth: []
parameters:
- name: model
in: path
required: true
schema:
type: string
description: RunAPI model identifier placed in the wire path.
- name: generateContent
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- contents
properties:
contents:
type: array
description: Conversation content in Gemini Content and Part format.
systemInstruction:
type: object
description: System instructions represented as Gemini Content.
generationConfig:
type: object
description: Gemini generation configuration for the request.
tools:
type: array
description: Tools the model may call.
additionalProperties: true
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
candidates:
type: array
items:
type: object
properties:
content:
type: object
properties:
parts:
type: array
role:
type: string
additionalProperties: true
finishReason:
type: string
index:
type: integer
additionalProperties: true
usageMetadata:
type: object
properties:
promptTokenCount:
type: integer
candidatesTokenCount:
type: integer
totalTokenCount:
type: integer
additionalProperties: true
modelVersion:
type: string
responseId:
type: string
additionalProperties: true
'400':
description: Invalid request
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
additionalProperties: true
additionalProperties: true
/v1beta/models/{model}{streamGenerateContent}?alt=sse:
post:
tags:
- Gemini
summary: Gemini Stream Generate Content
operationId: protocol_operation_gemini_stream_generate_content
security:
- bearerAuth: []
parameters:
- name: model
in: path
required: true
schema:
type: string
description: RunAPI model identifier placed in the wire path.
- name: streamGenerateContent
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- contents
properties:
contents:
type: array
description: Conversation content in Gemini Content and Part format.
systemInstruction:
type: object
description: System instructions represented as Gemini Content.
generationConfig:
type: object
description: Gemini generation configuration for the request.
tools:
type: array
description: Tools the model may call.
additionalProperties: true
responses:
'200':
description: Streaming
content:
text/event-stream:
schema:
type: object
properties:
candidates:
type: array
items:
type: object
properties:
content:
type: object
properties:
parts:
type: array
role:
type: string
additionalProperties: true
finishReason:
type: string
index:
type: integer
additionalProperties: true
usageMetadata:
type: object
properties:
promptTokenCount:
type: integer
candidatesTokenCount:
type: integer
totalTokenCount:
type: integer
additionalProperties: true
modelVersion:
type: string
responseId:
type: string
additionalProperties: true
'400':
description: Invalid request
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
additionalProperties: true
additionalProperties: true
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: API token