---
title: "Image to Text (Captioning)"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/transformers/imagetotextcaptioning
markdown: https://docs.nodetool.ai/nodes/transformers/imagetotextcaptioning.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/transformers/imagetotextcaptioning.md
---

# Image to Text (Captioning)

**Type:** `transformers.ImageToText`

**Namespace:** `transformers`

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| image | `image` | Image to caption. | `{"type":"image"}` |
| model | `any` | Transformers.js model (ONNX-compatible). | - |
| max_new_tokens | `int` | Maximum number of tokens in the caption. | `50` |
| dtype | `enum` | Model dtype / quantization level. | `auto` |
| device | `enum` | Inference device. | `auto` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| text | `str` |  |

## Related Nodes

Browse other nodes in the [transformers](./) namespace.
