> ## Documentation Index
> Fetch the complete documentation index at: https://resq-dependabot-github-actions-github-actions-478e18be3d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /query-gemini

> Sends a general-purpose prompt to the Gemini AI service.



## OpenAPI

````yaml /specs/infrastructure.json post /query-gemini
openapi: 3.1.0
info:
  title: resq-api
  description: ''
  license:
    name: Apache-2.0
    identifier: Apache-2.0
  version: 0.1.0
servers: []
security: []
tags:
  - name: resq-backend
    description: ResQ Infrastructure API
  - name: auth
    description: Authentication endpoints
  - name: incidents
    description: Incident management endpoints
  - name: evidence
    description: Evidence management endpoints
  - name: blockchain
    description: Blockchain query endpoints
  - name: solana
    description: Solana program endpoints (PoD + airspace)
paths:
  /query-gemini:
    post:
      tags:
        - resq-backend
      summary: POST /query-gemini
      description: Sends a general-purpose prompt to the Gemini AI service.
      operationId: query_gemini
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryGeminiRequest'
        required: true
      responses:
        '200':
          description: Gemini query successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeminiResponse'
        '500':
          description: Internal server error
components:
  schemas:
    QueryGeminiRequest:
      type: object
      description: Request payload for querying Gemini AI.
      properties:
        context:
          description: Additional context for the query.
        query:
          type:
            - string
            - 'null'
          description: The natural language query.
    GeminiResponse:
      type: object
      description: Response payload from Gemini AI.
      required:
        - status
        - query
        - answer
        - model
        - timestamp
      properties:
        answer:
          type: string
          description: The AI-generated answer.
        model:
          type: string
          description: The model name used for the query.
        query:
          type: string
          description: The original query.
        status:
          type: string
          description: Status of the query.
        timestamp:
          type: string
          description: ISO 8601 timestamp of the response.

````