Image Generation API

Your own on-demand image service

Generate images into your library, then serve any of them at any size with one URL — resized, cropped, grayscaled, or blurred on the fly. Like a placeholder image service, backed by your catalog instead of someone else’s stock photos.

Try the delivery URL

Build a delivery request and watch the URL update live. The preview is illustrative — real delivery is metered and needs an API key, but the URL and curl below are exactly what you’d call.

Try the delivery URL
https://api.photocen.com/600/400
request
curl -H "Authorization: Bearer pc_live_…" \
  "https://api.photocen.com/600/400" -o image.jpg
Advanced AI editing tools

Not just generation — a full AI photo editor

Generate or upload an image, then edit it step by step: remove backgrounds, erase text or objects, instruct natural-language edits, add typography and logos, and upscale — each step a new, non-destructive version. Charged 1 credit per AI step.

Generate or remix yours

Start from a prompt, or upload your own photo or screenshot and remix it with AI.

Background, objects & text

Remove backgrounds (BiRefNet), erase or replace objects and text (Qwen Image Edit), and instruct edits (FLUX Kontext).

Typography, logos & upscale

Drop in pixel-perfect text and logos, then upscale up to ×4 (RealESRGAN) for print-ready output.

One URL, any size

Request /{width}/{height} and get a ready-to-use image — center-cropped, optional grayscale and blur, JPG/WebP/PNG.

Your library is the source

Served from your own searchable, generated catalog — not a third-party stock pool.

Random · seeded · by id

Random for variety, seeded for deterministic repeats, by-id to pin an exact image — plus a /v2/list catalog feed.

Generate to fill it

A single REST API generates region-aware, style-aware images that flow straight into the catalog.

Visual search

Searchable images are indexed into a vector database for fast similarity search.

Enterprise options

Volume pricing and custom deployments — contact our sales team.

One URL to serve any size

Point an <img> (or any client) at a size and get a finished image back — center-cropped to fit, with optional grayscale and blur. Random for variety, seeded for repeatable results, by-id to pin an exact image. Backed by your generated catalog.

See all endpoints →
GET — on-demand delivery
# random catalog image, 400×300
GET https://api.photocen.com/400/300

# square, grayscale + blur
GET https://api.photocen.com/600?grayscale&blur=4

# a specific image by image_uid (recommended), WebP + crop anchor
GET https://api.photocen.com/uid/7bba1b6e-ec94-7bbf-a97d-83d6ed3618f5/800/600.webp?gravity=north

# deterministic from a seed
GET https://api.photocen.com/seed/picsum/1024/768

# metadata + catalog feed
GET https://api.photocen.com/uid/7bba1b6e-ec94-7bbf-a97d-83d6ed3618f5/info
GET https://api.photocen.com/v2/list?page=1&limit=30

…and one call to fill it

Your catalog is fed by the generation API: authenticate, send a prompt, get a region-aware, style-aware image. Searchable images join the catalog automatically and become available through every delivery URL above.

Generation docs →
POST /v1/images/generate
curl https://api.photocen.com/v1/images/generate \
  -H "Authorization: Bearer pc_live_..." \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a calm seaside cafe at golden hour",
    "region": "jp",
    "options": { "not_searchable": false }
  }'