Share via


AnalysisInput interface

Additional input to analyze.

Properties

contentRange

Range of the input to analyze (ex. 1-3,5,9-). Document content uses 1-based page numbers, while audio visual content uses integer milliseconds.

data

Raw image bytes. Provide bytes-like object; do not base64-encode. Only one of url or data should be specified.

mimeType

The MIME type of the input content. Ex. application/pdf, image/jpeg, etc.

name

Name of the input.

url

The URL of the input to analyze. Only one of url or data should be specified.

Property Details

contentRange

Range of the input to analyze (ex. 1-3,5,9-). Document content uses 1-based page numbers, while audio visual content uses integer milliseconds.

contentRange?: string

Property Value

string

data

Raw image bytes. Provide bytes-like object; do not base64-encode. Only one of url or data should be specified.

data?: Uint8Array

Property Value

Uint8Array

mimeType

The MIME type of the input content. Ex. application/pdf, image/jpeg, etc.

mimeType?: string

Property Value

string

name

Name of the input.

name?: string

Property Value

string

url

The URL of the input to analyze. Only one of url or data should be specified.

url?: string

Property Value

string