VisionAnalyzeOptions
Defined in: core/namespaces/vision.ts:36
Options for vision analysis.
Properties
Section titled “Properties”image:
string|Buffer<ArrayBufferLike> |Uint8Array<ArrayBufferLike>
Defined in: core/namespaces/vision.ts:41
Image data: Buffer, Uint8Array, base64 string, data URL, or HTTPS URL
maxTokens?
Section titled “maxTokens?”
optionalmaxTokens:number
Defined in: core/namespaces/vision.ts:53
Max tokens for response
mimeType?
Section titled “mimeType?”
optionalmimeType:ImageMimeType
Defined in: core/namespaces/vision.ts:47
MIME type (auto-detected if not provided for Buffer/Uint8Array)
model:
string
Defined in: core/namespaces/vision.ts:38
Model to use (must support vision, e.g., “gpt-4o”, “claude-sonnet-4-20250514”, “gemini-2.5-flash”)
prompt
Section titled “prompt”prompt:
string
Defined in: core/namespaces/vision.ts:44
Analysis prompt describing what to do with the image
systemPrompt?
Section titled “systemPrompt?”
optionalsystemPrompt:string
Defined in: core/namespaces/vision.ts:50
System prompt for analysis context
temperature?
Section titled “temperature?”
optionaltemperature:number
Defined in: core/namespaces/vision.ts:56
Temperature (0-1)