2 credits per call

Photo Colorization API

Turn black-and-white photographs into naturally coloured images with one request. Optional tear repair in the same call, and no manual colour picking anywhere in the process.

  • REST · JSON
  • No watermark
  • Nothing stored
endpoint

POST /v1/colorize-photo

Base URL
https://app.imggen.ai
Auth
Authorization: Bearer sk_live_…
Cost
2 credits
Input
JPEG (JPG), PNG and WebP · max 25 MB

01 — Overview

What is the Photo Colorization API?

The ImgGen AI colorize photo API is a REST endpoint that adds realistic colour to black-and-white or greyscale images. The model infers plausible colours for skin, clothing, foliage, sky, and materials from the content of the image itself, so no reference palette or manual selection is required. The coloured result is returned in the same response.

It is one of seven endpoints in the ImgGen AI image editing API, all of which share a single API key, a single base URL, and the same request and response shape. If you also need this capability in a browser rather than from code, the same AI model powers the Colorize Photo tool.

02 — Request

Request parameters

Send a POST request to https://app.imggen.ai/v1/colorize-photo, authenticated with an API key in the Authorization header.

Parameters accepted by this endpoint
ParameterTypeRequiredDefaultDescription
imagefileREQUIREDRepair scratches and tears while colorizing.
removeTearsbooleanoptionalfalseRepair scratches and tears while colorizing.
03 — Integrate

How do I integrate the colorize photo API?

Create an API key in your ImgGen account, set it as an environment variable, and call the endpoint. Here is the same request in cURL, Node.js and Python.

curl --request POST \
  --url 'https://app.imggen.ai/v1/colorize-photo' \
  --header 'Authorization: Bearer sk_live_YOUR_API_KEY' \
  --form image=@/path/to/photo.jpg \
  --form removeTears=false
04 — Response

Response

A successful call returns JSON. The result is base64-encoded — decode it before writing to disk or object storage. Every successful response also carries an X-Credit-Remaining header with your balance after the call.

{
  "success": true,
  "message": "Image colorized successfully",
  "image": "iVBORw0KGgoAAAANSUhEUgAA...SUVORK5CYII="
}
05 — Limits

Limits and behaviour worth knowing

The endpoint accepts JPEG (JPG), PNG and WebP with a 25 MB maximum file size, and responds synchronously within 60 seconds — there is no job to poll and no webhook to configure.

Colour is inferred, not recovered

The model predicts plausible colour from image content. It produces a convincing interpretation, not a historically verified one — worth saying plainly if you surface results to users.

Repair while you colorize

Set removeTears=true to fix scratches and physical damage in the same pass, without a second call to the restoration endpoint.

Already-colour images

The endpoint is built for greyscale input. Sending an image that already has colour is not useful — use the restoration endpoint if the goal is repair.

06 — In production

What is the colorize photo API used for?

Where teams put this endpoint into production to process images programmatically, at scale.

Family history products

Let users colorize inherited photographs inside your app as a paid upgrade or engagement feature.

Editorial and publishing

Produce coloured versions of archival photography for features and retrospectives, clearly labelled as interpretations.

Bulk archive processing

Generate colour access copies across a greyscale collection while preserving the originals untouched.

Memorial and gift services

Colorize and repair a customer’s uploaded photograph automatically as part of an order pipeline.

07 — Cost

How much does the colorize photo API cost?

Each successful call costs 2 credits, so your effective cost per image follows whichever plan you are on. Credits come from your plan and are shared across every endpoint and the web editor, so you are not buying a separate quota per tool. A call that fails is refunded automatically. See the full pricing page for details.

ImgGen AI plans and API access
PlanPriceCreditsAPI
Free$050 one-time free creditsNo API access
Starter$9.99 / month400 credits / monthAPI access included
Pro$29.99 / month1,400 credits / monthAPI access + priority support
EnterpriseCustomCustom volumeDedicated infrastructure

Credit costs and limits last verified 2026-08-27.

08 — Related

Teams using the colorize photo API usually reach for these next.

Photo Restoration APIImage Upscaling APIColorize Photo (web tool)All API endpoints

Also available: Background Removal, Watermark Removal, Text Removal, Image Generation.

FAQ

Photo Colorization API FAQ

It is an HTTP endpoint that takes a black-and-white image and returns a coloured version. The model reads the content of the photograph — faces, clothing, vegetation, sky, materials — and predicts colours that fit, so you get a natural result without specifying a palette.

Get started

Start calling the Photo Colorization API

One key unlocks all seven endpoints. No watermark, full commercial rights, and nothing you send is stored after the response is returned.

Get your API key