Skip to main content
POST
Process generic AI query

Authorizations

Authorization
string
header
required

access token

Body

application/json
prompt
string
required

AI prompt for processing

Required string length: 1 - 50000
Example:

"Summarize the key points from the attached document and identify any potential legal issues."

files
object[]

Optional list of Google Cloud Storage files to include in context

model
enum<string>

AI model to use (defaults to gemini-3-pro-preview)

Available options:
gemini-3-flash-preview,
gemini-3-pro-preview
Example:

"gemini-3-pro-preview"

Response

200 - application/json

AI-generated response

response
string

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
string

Model that was used for processing

Example:

"gemini-3-pro-preview"