Google Gemini · Capability

Google Gemini API — Content Generation

Google Gemini API — Content Generation. 2 operations. Lead operation: 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 tuned models.. Self-contained Naftiko capability covering one Google Gemini business surface.

Run with Naftiko Google GeminiContent Generation

What You Can Do

POST
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 tuned models.
/v1/models/model-generatecontent
POST
Streamgeneratecontent — Google Gemini Generates a streamed response from the model given an input GenerateContentRequest. Returns a stream of GenerateContentResponse chunks using server-sent events.
/v1/models/model-streamgeneratecontent

MCP Tools

google-gemini-generates-model-response

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 tuned models.

google-gemini-generates-streamed-response

Google Gemini Generates a streamed response from the model given an input GenerateContentRequest. Returns a stream of GenerateContentResponse chunks using server-sent events.

Capability Spec

google-gemini-content-generation.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Gemini API — Content Generation
  description: 'Google Gemini API — Content Generation. 2 operations. Lead operation: 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 tuned models.. Self-contained Naftiko capability covering one Google Gemini business
    surface.'
  tags:
  - Google Gemini
  - Content Generation
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_GEMINI_API_KEY: GOOGLE_GEMINI_API_KEY
capability:
  consumes:
  - type: http
    namespace: google-gemini-content-generation
    baseUri: https://generativelanguage.googleapis.com/v1beta
    description: Google Gemini API — Content Generation business capability. Self-contained, no shared references.
    resources:
    - name: models-model}:generateContent
      path: /models/{model}:generateContent
      operations:
      - name: generatecontent
        method: POST
        description: 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 tuned models.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: model
          in: path
          type: string
          description: 'The name of the Model to use for generating the completion. Format: models/{model}. Example: models/gemini-2.0-flash.'
          required: true
        - name: key
          in: query
          type: string
          description: API key for authentication.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: models-model}:streamGenerateContent
      path: /models/{model}:streamGenerateContent
      operations:
      - name: streamgeneratecontent
        method: POST
        description: Google Gemini Generates a streamed response from the model given an input GenerateContentRequest. Returns
          a stream of GenerateContentResponse chunks using server-sent events.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: model
          in: path
          type: string
          description: 'The name of the Model to use for generating the completion. Format: models/{model}. Example: models/gemini-2.0-flash.'
          required: true
        - name: key
          in: query
          type: string
          description: API key for authentication.
          required: true
        - name: alt
          in: query
          type: string
          description: Set to 'sse' for server-sent events streaming.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: key
      value: '{{env.GOOGLE_GEMINI_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: google-gemini-content-generation-rest
    port: 8080
    description: REST adapter for Google Gemini API — Content Generation. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/models/model-generatecontent
      name: models-model-generatecontent
      description: REST surface for models-model}:generateContent.
      operations:
      - method: POST
        name: generatecontent
        description: 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 tuned models.
        call: google-gemini-content-generation.generatecontent
        with:
          model: rest.model
          key: rest.key
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/models/model-streamgeneratecontent
      name: models-model-streamgeneratecontent
      description: REST surface for models-model}:streamGenerateContent.
      operations:
      - method: POST
        name: streamgeneratecontent
        description: Google Gemini Generates a streamed response from the model given an input GenerateContentRequest. Returns
          a stream of GenerateContentResponse chunks using server-sent events.
        call: google-gemini-content-generation.streamgeneratecontent
        with:
          model: rest.model
          key: rest.key
          alt: rest.alt
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: google-gemini-content-generation-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Gemini API — Content Generation. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: google-gemini-generates-model-response
      description: 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 tuned models.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: google-gemini-content-generation.generatecontent
      with:
        model: tools.model
        key: tools.key
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-gemini-generates-streamed-response
      description: Google Gemini Generates a streamed response from the model given an input GenerateContentRequest. Returns
        a stream of GenerateContentResponse chunks using server-sent events.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: google-gemini-content-generation.streamgeneratecontent
      with:
        model: tools.model
        key: tools.key
        alt: tools.alt
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.