{
  "openapi": "3.0.1",
  "info": {
    "title": "Image Captioner & Alt Text Generator — AI Image Descriptions",
    "description": "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.",
    "version": "1.0",
    "x-build-id": "msU3dTBDeG3BDsrA7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidydata~image-captioner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidydata-image-captioner",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/tidydata~image-captioner/runs": {
      "post": {
        "operationId": "runs-sync-tidydata-image-captioner",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/tidydata~image-captioner/run-sync": {
      "post": {
        "operationId": "run-sync-tidydata-image-captioner",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "imageUrls": {
            "title": "Image links",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "uploadedImages": {
            "title": "Or upload images",
            "type": "array",
            "description": "Upload images from your computer (they go to a key-value store of your account and only this run reads them)."
          },
          "pageUrls": {
            "title": "Or: web pages to scan for images",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "pageImages": {
            "title": "Which images of the pages",
            "enum": [
              "missing",
              "all"
            ],
            "type": "string",
            "description": "'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.",
            "default": "missing"
          },
          "maxImagesPerPage": {
            "title": "Max images per page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit of images taken from each page.",
            "default": 100
          },
          "minImageSizePx": {
            "title": "Skip page images smaller than (px)",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Icons and tracking pixels whose width or height attribute is below this are skipped (free).",
            "default": 50
          },
          "datasetId": {
            "title": "Or: dataset of another Actor (chain it)",
            "type": "string",
            "description": "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": {
            "title": "Dataset field with the image link(s)",
            "type": "string",
            "description": "Field name, nested paths allowed: image, imageUrl, images, images.0.url, media.url… Lists are fine. Empty = auto-detect (image, imageUrl, url, src…)."
          },
          "datasetContextFields": {
            "title": "Dataset fields to use as context",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "datasetIdField": {
            "title": "Dataset field to copy as ID",
            "type": "string",
            "description": "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": {
            "title": "Max images per dataset row",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "1 = only the first (main) image of each row. 0 = all images of the row.",
            "default": 1
          },
          "keyValueStoreId": {
            "title": "Or: images of a key-value store",
            "type": "string",
            "description": "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": {
            "title": "Only these keys of the store",
            "type": "array",
            "description": "Optional: only these record keys of the store above.",
            "items": {
              "type": "string"
            }
          },
          "outputLanguage": {
            "title": "Language of the alt text and descriptions",
            "enum": [
              "English",
              "Spanish",
              "French",
              "German",
              "Italian",
              "Portuguese",
              "Brazilian Portuguese",
              "Dutch",
              "Polish",
              "Swedish",
              "Danish",
              "Norwegian",
              "Finnish",
              "Czech",
              "Slovak",
              "Hungarian",
              "Romanian",
              "Greek",
              "Turkish",
              "Russian",
              "Ukrainian",
              "Arabic",
              "Hebrew",
              "Hindi",
              "Bengali",
              "Indonesian",
              "Malay",
              "Thai",
              "Vietnamese",
              "Japanese",
              "Korean",
              "Chinese (Simplified)",
              "Chinese (Traditional)",
              "Catalan",
              "Croatian",
              "Bulgarian"
            ],
            "type": "string",
            "description": "Alt text, title, description, tags and file name are written in this language. Text found inside the image is copied as written.",
            "default": "English"
          },
          "altTextMaxLength": {
            "title": "Max alt text length (characters)",
            "minimum": 40,
            "maximum": 300,
            "type": "integer",
            "description": "125 is the common screen-reader and SEO guideline.",
            "default": 125
          },
          "descriptionLength": {
            "title": "Description length",
            "enum": [
              "short",
              "medium",
              "long"
            ],
            "type": "string",
            "description": "Length of the 'description' field (same price).",
            "default": "medium"
          },
          "includeDescription": {
            "title": "Include the description",
            "type": "boolean",
            "description": "Turn off if you only need alt text, title and tags.",
            "default": true
          },
          "context": {
            "title": "What are these images? (optional)",
            "type": "string",
            "description": "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": {
            "title": "SEO keywords (optional)",
            "type": "array",
            "description": "Used in the alt text only where they truly describe the image (no keyword stuffing).",
            "items": {
              "type": "string"
            }
          },
          "instructions": {
            "title": "Extra instructions (optional)",
            "type": "string",
            "description": "Your own style rules, e.g. 'Always mention the material', 'Use British English', 'Do not mention the background'."
          },
          "question": {
            "title": "Ask something about each image (optional)",
            "type": "string",
            "description": "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": {
            "title": "Max images",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Upper limit of images described in this run (cost control).",
            "default": 500
          },
          "maxFileSizeMb": {
            "title": "Max image file size (MB)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Bigger files are skipped (free).",
            "default": 30
          },
          "maxConcurrency": {
            "title": "Images at a time",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Lower it (e.g. 2) if a website answers 'too many requests'.",
            "default": 8
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}