> ## Documentation Index
> Fetch the complete documentation index at: https://docs.platform.arb.inc/llms.txt
> Use this file to discover all available pages before exploring further.

# Process generic AI query

> Processes generic AI queries with optional Google Cloud Storage file attachments and returns AI-generated text responses. Supports multiple AI models and can analyze various file types. Requires `ai.agent.user` permission.



## OpenAPI

````yaml api-reference/ai.yaml post /process
openapi: 3.0.3
info:
  title: ai
  description: >-
    The AI Service acts as the intelligence hub of the arbitration platform,
    powering smart automation, analysis, and decision support. It centralizes
    all AI integrations, ensuring seamless and consistent AI functionality
    across every part of the system.
  version: 1.0.0
servers:
  - url: https://ai.platform.arb.inc
security: []
tags:
  - name: /
  - name: analysis
  - name: demo
  - name: generate-award
  - name: generate-document
  - name: process
  - name: prompts
paths:
  /process:
    post:
      tags:
        - process
      summary: Process generic AI query
      description: >-
        Processes generic AI queries with optional Google Cloud Storage file
        attachments and returns AI-generated text responses. Supports multiple
        AI models and can analyze various file types. Requires `ai.agent.user`
        permission.
      operationId: processAiQuery
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - prompt
              properties:
                prompt:
                  type: string
                  minLength: 1
                  maxLength: 50000
                  description: AI prompt for processing
                  example: >-
                    Summarize the key points from the attached document and
                    identify any potential legal issues.
                files:
                  type: array
                  description: >-
                    Optional list of Google Cloud Storage files to include in
                    context
                  items:
                    type: object
                    required:
                      - gsUrl
                      - mimeType
                    properties:
                      gsUrl:
                        type: string
                        format: uri
                        description: Google Cloud Storage URL beginning with gs://
                        example: gs://platform-uploads/2025/document.pdf
                      mimeType:
                        type: string
                        description: MIME type of the file
                        example: application/pdf
                model:
                  type: string
                  enum:
                    - gemini-3-flash-preview
                    - gemini-3-pro-preview
                  description: AI model to use (defaults to gemini-3-pro-preview)
                  example: gemini-3-pro-preview
      responses:
        '200':
          description: AI-generated response
          content:
            application/json:
              schema:
                type: object
                properties:
                  response:
                    type: string
                    description: AI-generated text response
                    example: >-
                      The document outlines a parking dispute involving unpaid
                      fees. Key legal issues include potential breach of
                      contract and the enforceability of the arbitration clause.
                  model:
                    type: string
                    description: Model that was used for processing
                    example: gemini-3-pro-preview
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      description: access token
      scheme: bearer
      bearerFormat: JWT

````