Coding

gemini

Try it

Call Gemini 2.5 and 3 series models through RunAPI using Gemini contents clients. Use for Gemini chat, streaming, multimodal input, grounding, structured output, reasoning, or an existing compatibility client that needs the conditional reference.

What it does

Call Gemini 2.5 and 3 series models through RunAPI using Gemini contents clients. Use for Gemini chat, streaming, multimodal input, grounding, structured output, reasoning, or an existing compatibility client that needs the conditional reference.

The skill document

Gemini on RunAPI

Use Gemini contents at https://runapi.ai with generateContent or streamGenerateContent as the primary protocol.

Primary protocol recipe

Authenticate

Set GEMINI_API_KEY to a RunAPI API key and the Gemini client base URL to https://runapi.ai. Raw requests send the key with x-goog-api-key.

Send request

curl -X POST \
  "https://runapi.ai/v1beta/models/gemini-3.6-flash:streamGenerateContent" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"contents":[{"role":"user","parts":[{"text":"Summarize this review."}]}]}'

Use generateContent for a synchronous response and streamGenerateContent for long output. Add inline media, function declarations, grounding, structured output, or reasoning only when the current RunAPI contract verifies the exact model and request shape.

Verify result

Require candidate content, terminal finishReason, and usageMetadata. A stream is complete only after the terminal candidate and Usage; an HTTP 2xx without both is incomplete.

Stop boundaries

Correct a rejected shape once using the structured error. Retry transport once only before any candidate or Usage and when replay is safe. Record a terminal error and stop without changing model or protocol.

Compatibility protocols

Load compatibility protocols only when an existing client requires OpenAI-compatible Chat Completions.

Supported models

Model IDUse when
gemini-3.6-flashFast current-generation multimodal requests
gemini-3.5-flashFast multimodal and function-calling requests
gemini-3.1-pro-previewComplex multimodal and reasoning requests
gemini-3-flash-previewPreview flash workloads
gemini-2.5-proStable high-quality multimodal requests
gemini-2.5-flashStable fast multimodal requests

References

Related skills

Create Gemini Omni voice resources, character resources, and Flash Preview or multimodal text-to-video tasks through RunAPI. Use when the user asks an agent to create or manage Gemini Omni audio voices, character resources, or video. Default to the RunAPI CLI for one-off calls; use SDKs only when integrating RunAPI into an app or backend.

Call GPT generation and OpenAI text embedding models through RunAPI using OpenAI-compatible clients. Use for chat, Responses, embeddings, streaming, tools, vision, or an existing compatibility client that needs the conditional reference.

12 installs

Generate multi-speaker speech with Gemini TTS through RunAPI. Use when the user asks an agent to synthesize dialogue or integrate Gemini TTS. Use the RunAPI CLI for one-off generation and the language SDK for application integration.

Call Claude models through RunAPI using the Anthropic Messages protocol. Use for Claude chat, streaming, vision, tools, reasoning, token counting, or an existing compatibility client that needs the conditional reference.

12 installs

Use APIDot for Gemini 3 API workflows, including Gemini 3 Flash Preview, Gemini 3 Pro Preview, native generateContent, streamGenerateContent, Gemini chat, co...

3 installs

Use APIDot for Gemini 3.5 Flash API workflows, including stable Gemini Native generateContent, streamGenerateContent, long-context chat, coding iteration, kn...