Skip to main content
POST
/
process
Process generic AI query
curl --request POST \
  --url https://ai.platform.arb.inc/process \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "Summarize the key points from the attached document and identify any potential legal issues.",
  "files": [
    {
      "gsUrl": "gs://platform-uploads/2025/document.pdf",
      "mimeType": "application/pdf"
    }
  ],
  "model": "gemini-3-pro-preview"
}
'
{
  "response": "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": "gemini-3-pro-preview"
}

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"