Extract Values
Agents
Extract Values
Extracts values from an image using a template
POST
Extract Values
TheDocumentation Index
Fetch the complete documentation index at: https://docs.vizapi.ai/llms.txt
Use this file to discover all available pages before exploring further.
/agents/extract-values endpoint extracts structured data from an image based on a provided template.
Request
Your API key for authentication.
The ID of an existing template to use for extraction. Required for template-based extraction.
Optional version number of the template to use. If not provided or set to 0, the latest version will be used. If provided along with
template_id, access will be verified.The URL of the image to extract data from. The URL must be publicly accessible.Supported formats: PNG, JPEG, GIF, WebP, TIFF, BMP, ICO, SVG, EPS, TGA
Maximum file size: 10MBAlternatively, you can provide a base64-encoded image using the data URL format:See our Base64 Encoding Guide for code snippets in various programming languages.
Maximum file size: 10MBAlternatively, you can provide a base64-encoded image using the data URL format:
Advanced options for extraction.
Response
An array of fields with extracted values.
Examples
Example Request with Image URL
Example Request with Base64 Encoded Image
Example Response
Error Codes
| Status Code | Description |
|---|---|
| 400 | Bad Request - The request was malformed, missing required parameters, unsupported image format, or image exceeds 10MB limit |
| 401 | Unauthorized - Invalid or missing API key |
| 402 | Payment Required - Insufficient credits to perform the extraction |
| 403 | Forbidden - Access denied to the specified template |
| 404 | Not Found - The specified template_id was not found, or the specified version_number does not exist |
| 500 | Internal Server Error - An unexpected error occurred on our servers |