OptionalcontextExecution context (tracing, requestId, etc.) Not sent to the provider.
OptionalextrasProvider escape hatch for OCR-specific request parameters.
OptionalfileOptional document or file source to process with OCR.
This can be a local path, URL string, bytes, blob, file, or readable stream.
OptionalfilenameOptional filename hint when file is bytes or a stream.
OptionalimagesOne or more images to process with OCR.
OptionalincludeWhether the caller prefers region-aware OCR output when supported.
OptionallanguageOptional language hint for the document or image text.
OptionalmimeOptional MIME type hint for the supplied file.
OptionalmodelOptionaloptionsProvider-agnostic tuning options (temperature, max tokens, etc.)
OptionalpromptOptional instruction to guide OCR behavior. Example: "Preserve line breaks and headings."
OptionalstructuredOptional advanced structured extraction controls.
Request payload for OCR and document extraction operations.