# Image Caption API

> Image Caption generates natural language descriptions for uploaded image files. Upload a JPG, PNG, or GIF up to 5MB to receive an automated caption for alt text and media tagging.

**Endpoint:** `POST https://api.apiverve.com/v1/imagecaption`  
**Category:** AI/Computer Vision  
**Cost:** 20 credits per call  
**Canonical page:** https://apiverve.com/marketplace/imagecaption

## Overview

Supports common image formats including JPG, PNG, and GIF. Images are automatically resized for optimal processing. Maximum file size is 5MB.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/imagecaption" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "image=@photo.jpg"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `image` | string | Yes | Upload an image file to generate a caption (supported formats: JPG, PNG, GIF, max 5MB) |

## Response fields

- `caption` — string · AI-generated natural language description of image contents

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "caption": "A golden retriever running through a grassy field on a sunny day"
  }
}
```

## Use cases

- **Accessibility** — Generate alt text for images to improve web accessibility for visually impaired users
- **Content Management** — Automatically generate descriptions for large image libraries and media assets
- **Social Media** — Create engaging captions for social media posts and marketing content
- **Search Optimization** — Improve image searchability by generating descriptive metadata

## SDKs

- **npm** — `npm install @apiverve/imagecaption` (https://www.npmjs.com/package/@apiverve/imagecaption)
- **PyPI** — `pip install apiverve-imagecaption` (https://pypi.org/project/apiverve-imagecaption/)
- **NuGet** — `dotnet add package APIVerve.API.ImageCaption` (https://www.nuget.org/packages/APIVerve.API.ImageCaption)
- **Source** — https://github.com/apiverve/imagecaption-api

## More

- Full reference: https://docs.apiverve.com/ref/imagecaption
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
