Suggest Fields
Agents
Suggest Fields
Analyzes an image or text description and suggests fields for extraction
POST
Suggest Fields
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/suggest-fields endpoint analyzes an image and/or text description and suggests appropriate fields for extraction based on the provided content.
Request
Your API key for authentication.
The URL of the image to analyze. The URL must be publicly accessible.Supported formats: PNG, JPEG, GIF, WebP, TIFF, BMP, ICO, SVG, EPS, TGA
Maximum file size: 10MB
Maximum file size: 10MB
A text description of the data you want to extract. For example, “Plant disease detection with severity levels and affected area percentage.”
Whether to include metadata generation (title, description, category, tags) in addition to fields. Defaults to
false.When set to true, the response will include a metadata object with comprehensive template information that can be used for template creation and organization.At least one of
image_url or text_description must be provided. For best results, provide both.Response
A suggested name for the template based on the image content.
An array of suggested fields for extraction.
Template metadata including title, description, category, and tags. Only present when
with_metadata is set to true.Examples
Example Request with Image URL
Example Request with Text Description
Example Request with Both Inputs
Example Request with Metadata Generation
Example Response (without metadata)
Example Response (with metadata)
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 |
| 500 | Internal Server Error - An unexpected error occurred on our servers |