Documentation Index
Fetch the complete documentation index at: https://docs.img-processing.com/llms.txt
Use this file to discover all available pages before exploring further.
Classifies an image using a pre-trained model (ResNet50). Returns a list of labels and their probabilities.classify(imageID: string, options?: RequestOptions): APIPromise<ImageClassifyResponse>;
The unique identifier of the image to classify.
const response = await client.images.classify('image_etm0g3x5iap4cld1qcfsjvo2');
Extracts text from an image and returns it in plain text or markdown format.extractFormattedText(imageID: string, body: ImageExtractFormattedTextParams | null | undefined = {}, options?: RequestOptions): APIPromise<ImageExtractFormattedTextResponse>;
Show extractFormattedTextOptions
The unique identifier of the image to extract text from.
The body parameters for extracting formatted text.Show ImageExtractFormattedTextParams
The format of the extracted text (markdown or plain). Defaults to plain.
const response = await client.images.extractFormattedText('image_etm0g3x5iap4cld1qcfsjvo2');
Generates a response based on the content of an image and a text prompt using AI models.visualize(imageID: string, body: ImageVisualizeParams, options?: RequestOptions): APIPromise<ImageVisualizeResponse>;
The unique identifier of the image to visualize.
The body parameters for visualizing an image.Show ImageVisualizeParams
The prompt for the image.
The model to use for the visualization (uform-gen, llava, or gemini).
const response = await client.images.visualize('image_etm0g3x5iap4cld1qcfsjvo2', { prompt: 'What is in this image?' });