> ## 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.

# Analysis Methods

> Analyze images using different methods

**classify**

Classifies an image using a pre-trained model (ResNet50). Returns a list of labels and their probabilities.

```typescript node-sdk theme={null}
classify(imageID: string, options?: RequestOptions): APIPromise<ImageClassifyResponse>;
```

**classifyOptions**

**imageID** `string` *required*

The unique identifier of the image to classify.

**Examples**

```typescript node-sdk theme={null}
const response = await client.images.classify('image_etm0g3x5iap4cld1qcfsjvo2');
```

**extractFormattedText**

Extracts text from an image and returns it in plain text or markdown format.

```typescript node-sdk theme={null}
extractFormattedText(imageID: string, body: ImageExtractFormattedTextParams | null | undefined = {}, options?: RequestOptions): APIPromise<ImageExtractFormattedTextResponse>;
```

**extractFormattedTextOptions**

**imageID** `string` *required*

The unique identifier of the image to extract text from.

**body** `object`

The body parameters for extracting formatted text.

**ImageExtractFormattedTextParams**

**format** `string`

The format of the extracted text (markdown or plain). Defaults to plain.

**Examples**

```typescript node-sdk theme={null}
const response = await client.images.extractFormattedText('image_etm0g3x5iap4cld1qcfsjvo2');
```

**visualize**

Generates a response based on the content of an image and a text prompt using AI models.

```typescript node-sdk theme={null}
visualize(imageID: string, body: ImageVisualizeParams, options?: RequestOptions): APIPromise<ImageVisualizeResponse>;
```

**visualizeOptions**

**imageID** `string` *required*

The unique identifier of the image to visualize.

**body** `object` *required*

The body parameters for visualizing an image.

**ImageVisualizeParams**

**prompt** `string` *required*

The prompt for the image.

**model** `string`

The model to use for the visualization (uform-gen, llava, or gemini).

**Examples**

```typescript node-sdk theme={null}
const response = await client.images.visualize('image_etm0g3x5iap4cld1qcfsjvo2', { prompt: 'What is in this image?' });
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.