Skip to main content
POST
/
api
/
v2
/
chat
/
image-analysis
Generate a visual document analysis
curl --request POST \
  --url https://paradigm.lighton.ai/api/v2/chat/image-analysis \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "<string>",
  "document_ids": [
    "<any>"
  ]
}'
{
  "answer": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

Request serializer for chat image analysis.

query
string
required

The user's question or prompt about the image(s) for AI-powered visual analysis

document_ids
any[]
required

List of document IDs containing images to analyze (1-5 documents)

Required array length: 1 - 5 elements
model
string

Specific vision-language model to use for analysis (optional)

private
boolean
default:false

Specifies whether this chat interaction is private

Response

Image analysis output

Response serializer for chat image analysis results.

answer
string
required

The AI-generated response analyzing the images based on the user's query

I