v42

latestOpenAPI 3.0.3raw.githubusercontent.com2026-07-2129120150.2 KB
Vision

Analyze images

Submit images and documents with a prompt to generate an analysis. Supports JPG, PNG, PDF, and TXT files up to 7MB each.

post/v1/vision

Request body

model'palmyra-vision' required

The model to use for image analysis.

promptstring required

The prompt to use for the image analysis. The prompt must include the name of each image variable, surrounded by double curly braces ({{}}). For example, Describe the difference between the image {{image_1}} and the image {{image_2}}.

Response

Successful response

datastring required

The result of the image analysis.