ccapi-ai Google Gemini LLM Integration API

Access the Google Gemini native API via CCAPI Gemini proxy routing. --- ## Authentication The Gemini native path supports two ways to pass the CCAPI token: - Header: `x-goog-api-key: ` - Query: `?key=` Either one is sufficient. --- ## Recommended Endpoints - `POST /v1beta/models/{model}:generateContent` - `POST /v1beta/models/{model}:streamGenerateContent?alt=sse` --- ## Capabilities - Native `contents` / `parts` message format supported - Tool declarations and function calling configuration supported - System instructions, temperature/topP/maxOutputTokens and other generation parameters supported - Supports converting from OpenAI/Claude format to Gemini, but this document focuses on the Gemini native API --- ## Models Common model examples: `gemini-3.1-pro`, `gemini-2.5-flash`, `gemini-2.5-pro`, `gemini-3-pro-preview`. Actually available models are determined by the `GET /v1beta/models` response and backend channel configuration. --- ## Pricing Visit the [Pricing page](/pricing?vendor=Google) to see full model pricing for this provider.

Operations 2

POST /v1beta/models/{model}:generateContent Generate Content #
POST /v1beta/models/{model}:streamGenerateContent Stream Generate Content #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ccapi-ai:ccapi-ai-google-gemini-llm-integration-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ccapi-ai-google-gemini-llm-integration-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CCAPI Google Gemini LLM Integration API
  description: CCAPI Model Gateway — OpenAI-compatible unified API
  version: 1.0.0
servers:
- url: https://api.ccapi.ai
  description: CCAPI API Gateway
tags:
- name: Google Gemini LLM Integration
  description: 'Access the Google Gemini native API via CCAPI Gemini proxy routing.


    ---


    ## Authentication


    The Gemini native path supports two ways to pass the CCAPI token:


    - Header: `x-goog-api-key: `

    - Query: `?key=`


    Either one is sufficient.


    ---


    ## Recommended Endpoints


    - `POST /v1beta/models/{model}:generateContent`

    - `POST /v1beta/models/{model}:streamGenerateContent?alt=sse`


    ---


    ## Capabilities


    - Native `contents` / `parts` message format supported

    - Tool declarations and function calling configuration supported

    - System instructions, temperature/topP/maxOutputTokens and other generation parameters supported

    - Supports converting from OpenAI/Claude format to Gemini, but this document focuses on the Gemini native API


    ---


    ## Models


    Common model examples: `gemini-3.1-pro`, `gemini-2.5-flash`, `gemini-2.5-pro`, `gemini-3-pro-preview`.


    Actually available models are determined by the `GET /v1beta/models` response and backend channel configuration.


    ---


    ## Pricing


    Visit the Pricing page to see full model pricing for this provider.'
paths:
  /v1beta/models/{model}:generateContent:
    post:
      deprecated: false
      description: Generate text or multimodal responses using the Gemini native `generateContent` API.
      operationId: google-gemini-generate-content
      parameters:
      - description: Model name, e.g. `gemini-3.1-pro`.
        example: gemini-3.1-pro
        in: path
        name: model
        required: true
        schema:
          type: string
      - description: CCAPI token. Use either this or the `key` query parameter.
        example: sk-xxxx
        in: header
        name: x-goog-api-key
        required: false
        schema:
          type: string
      - description: CCAPI token. Use either this or the `x-goog-api-key` header.
        example: sk-xxxx
        in: query
        name: key
        required: false
        schema:
          type: string
      requestBody:
        content:
          application/json:
            examples:
              basic_generate:
                summary: Basic content generation
                value:
                  contents:
                  - parts:
                    - text: Summarize the scenarios where event-driven architecture is suitable.
                    role: user
                  generationConfig:
                    maxOutputTokens: 512
                    temperature: 0.7
              tool_calling:
                summary: Tool calling
                value:
                  contents:
                  - parts:
                    - text: Help me check tomorrow's weather in Beijing.
                    role: user
                  toolConfig:
                    functionCallingConfig:
                      mode: AUTO
                  tools:
                  - functionDeclarations:
                    - description: Query weather
                      name: get_weather
                      parameters:
                        properties:
                          city:
                            type: string
                        required:
                        - city
                        type: object
            schema:
              properties:
                contents:
                  description: Gemini native message array.
                  items:
                    properties:
                      parts:
                        items:
                          properties:
                            fileData:
                              type: object
                            inlineData:
                              type: object
                            text:
                              type: string
                          type: object
                        type: array
                      role:
                        enum:
                        - user
                        - model
                        type: string
                    required:
                    - parts
                    type: object
                  type: array
                generationConfig:
                  properties:
                    maxOutputTokens:
                      type: integer
                    responseMimeType:
                      type: string
                    stopSequences:
                      items:
                        type: string
                      type: array
                    temperature:
                      type: number
                    topK:
                      type: integer
                    topP:
                      type: number
                  type: object
                safetySettings:
                  items:
                    type: object
                  type: array
                systemInstruction:
                  properties:
                    parts:
                      items:
                        properties:
                          text:
                            type: string
                        type: object
                      type: array
                  type: object
                toolConfig:
                  properties:
                    functionCallingConfig:
                      properties:
                        allowedFunctionNames:
                          items:
                            type: string
                          type: array
                        mode:
                          enum:
                          - AUTO
                          - ANY
                          - NONE
                          type: string
                      type: object
                  type: object
                tools:
                  items:
                    properties:
                      functionDeclarations:
                        items:
                          properties:
                            description:
                              type: string
                            name:
                              type: string
                            parameters:
                              type: object
                          required:
                          - name
                          type: object
                        type: array
                    type: object
                  type: array
              required:
              - contents
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              example:
                candidates:
                - content:
                    parts:
                    - text: Event-driven architecture is suitable for asynchronous decoupling, peak load smoothing, and multi-system coordination scenarios.
                    role: model
                  finishReason: STOP
                usageMetadata:
                  candidatesTokenCount: 18
                  promptTokenCount: 19
                  totalTokenCount: 37
              schema:
                properties:
                  candidates:
                    items:
                      properties:
                        content:
                          properties:
                            parts:
                              items:
                                type: object
                              type: array
                            role:
                              type: string
                          type: object
                        finishReason:
                          type: string
                      type: object
                    type: array
                  usageMetadata:
                    properties:
                      candidatesTokenCount:
                        type: integer
                      promptTokenCount:
                        type: integer
                      totalTokenCount:
                        type: integer
                    type: object
                type: object
          description: Success
        '401':
          description: Authentication failed
      summary: Generate Content
      tags:
      - Google Gemini LLM Integration
      x-apifox-folder: Google
  /v1beta/models/{model}:streamGenerateContent:
    post:
      deprecated: false
      description: Gemini native streaming generation endpoint. Typically used with the `alt=sse` query parameter.
      operationId: google-gemini-stream-generate-content
      parameters:
      - description: Model name, e.g. `gemini-3.1-pro`.
        example: gemini-3.1-pro
        in: path
        name: model
        required: true
        schema:
          type: string
      - description: CCAPI token. Use either this or the `key` query parameter.
        example: sk-xxxx
        in: header
        name: x-goog-api-key
        required: false
        schema:
          type: string
      - description: CCAPI token. Use either this or the `x-goog-api-key` header.
        example: sk-xxxx
        in: query
        name: key
        required: false
        schema:
          type: string
      - description: For streaming responses, this should be set to `sse`.
        example: sse
        in: query
        name: alt
        required: false
        schema:
          enum:
          - sse
          type: string
      requestBody:
        content:
          application/json:
            example:
              contents:
              - parts:
                - text: Explain common WebSocket authentication practices step by step.
                role: user
            schema:
              properties:
                contents:
                  items:
                    type: object
                  type: array
                generationConfig:
                  type: object
                tools:
                  items:
                    type: object
                  type: array
              required:
              - contents
              type: object
        required: true
      responses:
        '200':
          content:
            text/event-stream:
              schema:
                description: Gemini streaming SSE data stream.
                type: string
          description: Success
        '401':
          description: Authentication failed
      summary: Stream Generate Content
      tags:
      - Google Gemini LLM Integration
      x-apifox-folder: Google
components:
  securitySchemes:
    bearer:
      description: 'CCAPI API Key. Format: `Bearer sk-xxx`'
      scheme: bearer
      type: http
x-tagGroups:
- name: Integration Guides
  tags:
  - OpenClaw Integration
  - Hermes Integration
  - Claude Code Integration
  - Codex CLI Integration
  - Gemini CLI Integration
- name: Chat
  tags:
  - Claude / Anthropic LLM Integration
  - OpenAI LLM Integration
  - Google Gemini LLM Integration
  - DeepSeek LLM Integration
  - MiniMax LLM Integration
- name: Image
  tags:
  - GPT Image 2 Per-Call Image Generation
  - Midjourney Imagine API
  - Gemini Per-Call Image Generation
  - CCAPI Image Upscale
  - Z-Image Turbo
  - Doubao Seedream Official Image API
- name: Video
  tags:
  - Gemini Video (Veo 3.1 / Omni Flash)
  - Grok Imagine Video
  - MiniMax H3 Family Video Generation
  - Seedance Trusted Asset Library
  - Seedance 2.5 / 2.0 Video Generation
  - Vidu Video Generation API
- name: Audio
  tags:
  - Producer Task API
  - Suno Task API