Skip to main content
POST
Suggest Fields
The /agents/suggest-fields endpoint analyzes an image and/or text description and suggests appropriate fields for extraction based on the provided content.

Request

string
required
Your API key for authentication.
string
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
string
A text description of the data you want to extract. For example, “Plant disease detection with severity levels and affected area percentage.”
boolean
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

string
A suggested name for the template based on the image content.
array
An array of suggested fields for extraction.
object
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