# Image Captioner & Alt Text Generator — AI Image Descriptions (`tidydata/image-captioner`) Actor

Write SEO and WCAG alt text, titles, descriptions, tags and file names for images in bulk with AI: image links, uploads, product datasets from scrapers or whole web pages (only images missing alt). 36 languages, no API key, $3 per 1,000 images.

- **URL**: https://apify.com/tidydata/image-captioner.md
- **Developed by:** [tidydata](https://apify.com/tidydata) (community)
- **Categories:** AI, SEO tools, E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 image describeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🖼️ Image Captioner & Alt Text Generator — AI image descriptions in bulk

![Real run: a leather backpack product photo, a café street photo, a sale banner and a bar chart turned into alt text, image type and tags by the Image Captioner](https://api.apify.com/v2/key-value-stores/UJXqVadHhfb2eqS2e/records/image-captioner.png)

**Write alt text for thousands of images in minutes.** Give it image links, upload images, chain it with a product scraper or point it at your web pages, and get back for every image: **SEO and accessibility (WCAG) alt text**, a **title**, a **description**, **tags**, the **text inside the image**, the **image type**, **main colors** and an **SEO file name**. In **36 languages**.

**$3 per 1,000 images** ($0.003 per image) — no start fee, no subscription, **no API key** and no account at any AI service. Failed and skipped images are free.

- ✅ **Alt text that follows the rules**: within your length (125 characters by default), no "image of…", product name first, text in banners read out, charts summarized with their trend
- ✅ **Product catalogs**: chain it with any e-commerce scraper (Shopify, Amazon, WooCommerce…) and use the product **title, brand or color as context**, so the alt text names the real product. The **SKU / ID is copied** to each row to update your shop
- ✅ **Website fix-up**: give it your pages and it finds the images **missing alt text** (no alt, empty or generic like "image" or "IMG_2034"), skips icons and tracking pixels and describes the rest, with the page URL for each one
- ✅ **Text in the image** (OCR) copied exactly as written: banners, signs, packaging, screenshots, infographics
- ✅ **Any language**: English, Spanish, French, German, Italian, Portuguese, Dutch, Polish, Japanese, Chinese, Arabic, Hindi… 36 in total
- ✅ **Your own rules**: context ("product photos for a leather bag shop"), SEO keywords (used only where they truly fit, no stuffing), extra style instructions and **one question answered for every image** ("Is the product on a white background?")
- ✅ **All common formats**: JPG, PNG, WebP, GIF (first frame), AVIF, HEIC from iPhones, BMP, TIFF, CMYK JPEGs, rotated photos (EXIF). Google Drive, Dropbox and OneDrive links
- ✅ Works with **n8n, Make, Zapier and AI agents** (MCP): one call, one row per image, JSON / CSV / Excel

### What can I use it for?

- **E-commerce SEO**: fill the empty alt text of every product image in your shop, in your shop's language, with the product name in it.
- **Accessibility (WCAG 2.2 / European Accessibility Act)**: find and fix images without alt text across your site.
- **Catalog enrichment**: tags, colors, image type and a description for every product photo, ready for search filters and feeds.
- **Image SEO file names**: rename `IMG_2034.jpg` to `tan-leather-backpack-brass-buckles.jpg` before uploading.
- **Content teams and DAMs**: caption photo libraries, blog images and social posts in bulk.
- **AI pipelines**: turn images into searchable text for RAG, vector search and classification.

### How to use it

1. Add your images in one (or more) of these ways:
   - **Image links**: one link per line.
   - **Upload images** from your computer.
   - **Web pages to scan**: the images on those pages, by default only those missing alt text.
   - **Dataset of another Actor**: pick the dataset of your scraper run, the field with the image link(s) (e.g. `images` or `images.0.url`), the fields to use as context (e.g. `title`, `brand`) and the ID field (e.g. `sku`).
   - **Key-value store**: the images saved in one of your stores.
2. Choose the **language** and, optionally, tell it what the images are, your keywords and your style rules.
3. Click **Start**. Each image becomes one row; export as JSON, CSV or Excel, or read it from the API.

**Tip:** one line of context ("Product photos for an online shop selling handmade leather bags") makes the alt text noticeably better.

### Output example

```json
{
  "position": 1,
  "id": "BAG-0042",
  "imageUrl": "https://example.com/products/bag-0042.jpg",
  "altText": "Tan leather backpack with brass buckles and two front pockets, three-quarter view",
  "altTextLength": 82,
  "title": "Tan Leather Backpack With Brass Buckles",
  "description": "A tan leather backpack with two buckled front pockets, brass hardware and a top handle, photographed at a three-quarter angle on a light grey background.",
  "tags": ["leather backpack", "tan", "brass buckles", "bag", "accessories"],
  "textInImage": null,
  "imageType": "product photo",
  "isDecorative": false,
  "mainColors": ["tan", "light grey", "brass"],
  "seoFileName": "tan-leather-backpack-brass-buckles",
  "answer": null,
  "language": "English",
  "width": 1024,
  "height": 1024,
  "format": "JPEG",
  "status": "ok",
  "charged": true
}
```

Images found on web pages also have `pageUrl`, `existingAlt` and `altStatus` (`missing`, `empty`, `generic` or `present`). Rows from a dataset have `id`, `sourceRow` and the `context` that was used. Failed images have `status: "failed"` and the reason in `error`.

### Pricing

| What | Price |
|---|---|
| One image described (all fields included) | **$0.003** |
| 1,000 images | **$3** |
| Failed, skipped or already-good page images | free |

Apify store discounts apply automatically (−10 % Bronze, −15 % Silver, −20 % Gold and above). Your **spending limit** is respected: the Actor checks it **before** each image and stops cleanly when it is reached, so you never pay more than you set.

### Limits and good to know

- **SVG** (vector) images are not supported: use a PNG or JPG version. Animated GIFs/WebPs are described from their first frame.
- Images smaller than 16×16 px and files over the size limit (30 MB by default) are skipped for free.
- Images on **social and streaming platforms** (Instagram, Facebook, TikTok, YouTube, X, Pinterest…) are not downloaded: their terms forbid it.
- **People** are described by what they do and wear, never identified by name or by sensitive traits (age, ethnicity, health…). Visible brand names, logos and famous landmarks can be named.
- Only use images you have the right to use. The texts are written by an AI vision model: review them for critical uses (legal, medical, safety).
- Speed: about **8 images at a time** (adjustable); 1,000 images take roughly 10-15 minutes.

### FAQ

**Do I need an OpenAI, Google or Claude API key?** No. The AI cost is included in the price per image.

**Which AI model is used?** A fast, current vision-language model from Anthropic (Claude). It reads the image itself, not just its file name.

**Can I get alt text in my shop's language?** Yes: pick one of 36 languages. Text inside the image is copied as written.

**How do I update my Shopify / WooCommerce images afterwards?** Use the `id` (copied from your dataset) and `altText` columns with your platform's bulk editor, CSV import or API, or an n8n / Make flow.

**Does it change my website?** No. It only reads public pages and images and returns the texts; nothing is written to your site.

**What if a site blocks downloads?** Polite retries are built in (it respects "too many requests"). Lower "Images at a time" for slow sites.

### Related Actors

- [Bulk Image Downloader & Converter](https://apify.com/tidydata/bulk-image-downloader-converter) — download, resize and convert images in bulk, with a ZIP
- [Background Remover](https://apify.com/tidydata/background-remover) — transparent PNG, white or Amazon-ready backgrounds for the same images
- [PDF Text Extractor — PDF & Image to Text OCR](https://apify.com/tidydata/pdf-image-text-extractor) — full text of PDFs and scanned documents
- [Merge, Dedupe & Transform Datasets](https://apify.com/tidydata/merge-dedupe-datasets) — join the alt texts back to your product data

# Actor input Schema

## `imageUrls` (type: `array`):

One image link per line (JPG, PNG, WebP, GIF, AVIF, HEIC, BMP, TIFF). Google Drive, Dropbox and OneDrive share links work too (shared as 'anyone with the link'). Each image becomes one row.

## `uploadedImages` (type: `array`):

Upload images from your computer (they go to a key-value store of your account and only this run reads them).

## `pageUrls` (type: `array`):

Web pages (your shop, blog or landing pages): the Actor finds the images on each page and writes alt text for the ones that miss it. Ideal for an accessibility / SEO fix-up. Choose below whether to describe only images without alt text or all of them.

## `pageImages` (type: `string`):

'Missing' skips images that already have a real alt text (they are free, not described). Generic alt texts like 'image', 'photo' or the file name count as missing.

## `maxImagesPerPage` (type: `integer`):

Upper limit of images taken from each page.

## `minImageSizePx` (type: `integer`):

Icons and tracking pixels whose width or height attribute is below this are skipped (free).

## `datasetId` (type: `string`):

A dataset from another run, e.g. products from a Shopify, Amazon or e-commerce scraper. Each row's image link(s) are described, using the fields you pick below (title, brand…) as context, so the alt text names the real product. Only read access to this one dataset is requested.

## `datasetImageField` (type: `string`):

Field name, nested paths allowed: image, imageUrl, images, images.0.url, media.url… Lists are fine. Empty = auto-detect (image, imageUrl, url, src…).

## `datasetContextFields` (type: `array`):

Fields that tell the AI what the image is, e.g. title, brand, category, color. Strongly recommended for product images: the alt text then uses the real product name.

## `datasetIdField` (type: `string`):

Copied to each result row as 'id' (e.g. sku, productId, handle, url) so you can join the alt texts back to your products.

## `maxImagesPerRow` (type: `integer`):

1 = only the first (main) image of each row. 0 = all images of the row.

## `keyValueStoreId` (type: `string`):

Describe the images saved in one of your key-value stores (keys ending in .jpg, .png, .webp…). Only read access to this one store is requested.

## `keyValueStoreKeys` (type: `array`):

Optional: only these record keys of the store above.

## `outputLanguage` (type: `string`):

Alt text, title, description, tags and file name are written in this language. Text found inside the image is copied as written.

## `altTextMaxLength` (type: `integer`):

125 is the common screen-reader and SEO guideline.

## `descriptionLength` (type: `string`):

Length of the 'description' field (same price).

## `includeDescription` (type: `boolean`):

Turn off if you only need alt text, title and tags.

## `context` (type: `string`):

One line about the images helps a lot, e.g. 'Product photos for an online shop selling handmade leather bags' or 'Blog photos for a travel site about Japan'.

## `keywords` (type: `array`):

Used in the alt text only where they truly describe the image (no keyword stuffing).

## `instructions` (type: `string`):

Your own style rules, e.g. 'Always mention the material', 'Use British English', 'Do not mention the background'.

## `question` (type: `string`):

A question answered for every image in the 'answer' field, e.g. 'Is the product shown on a white background?' or 'Which sport is shown?'.

## `maxImages` (type: `integer`):

Upper limit of images described in this run (cost control).

## `maxFileSizeMb` (type: `integer`):

Bigger files are skipped (free).

## `maxConcurrency` (type: `integer`):

Lower it (e.g. 2) if a website answers 'too many requests'.

## Actor input object example

```json
{
  "imageUrls": [
    "https://api.apify.com/v2/key-value-stores/zCfleofV9kYG6liyw/records/sample-product.jpg",
    "https://api.apify.com/v2/key-value-stores/zCfleofV9kYG6liyw/records/sample-street.jpg"
  ],
  "pageImages": "missing",
  "maxImagesPerPage": 100,
  "minImageSizePx": 50,
  "maxImagesPerRow": 1,
  "outputLanguage": "English",
  "altTextMaxLength": 125,
  "descriptionLength": "medium",
  "includeDescription": true,
  "maxImages": 500,
  "maxFileSizeMb": 30,
  "maxConcurrency": 8
}
```

# Actor output Schema

## `results` (type: `string`):

One row per image: alt text, title, description, tags, text in the image, type, colors, SEO file name, status and the reason when it failed.

## `summary` (type: `string`):

Images described, failed and skipped.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "imageUrls": [
        "https://api.apify.com/v2/key-value-stores/zCfleofV9kYG6liyw/records/sample-product.jpg",
        "https://api.apify.com/v2/key-value-stores/zCfleofV9kYG6liyw/records/sample-street.jpg"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tidydata/image-captioner").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "imageUrls": [
        "https://api.apify.com/v2/key-value-stores/zCfleofV9kYG6liyw/records/sample-product.jpg",
        "https://api.apify.com/v2/key-value-stores/zCfleofV9kYG6liyw/records/sample-street.jpg",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("tidydata/image-captioner").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "imageUrls": [
    "https://api.apify.com/v2/key-value-stores/zCfleofV9kYG6liyw/records/sample-product.jpg",
    "https://api.apify.com/v2/key-value-stores/zCfleofV9kYG6liyw/records/sample-street.jpg"
  ]
}' |
apify call tidydata/image-captioner --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tidydata/image-captioner"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Djq679vKKdfPCwtvS/builds/msU3dTBDeG3BDsrA7/openapi.json
