Image APIs
API REFERENCE · v0.15.2 · 44 OPERATIONS

Image APIs

Render social cards, Open Graph images, banners, certificates and PDFs from JSON layer templates or your own HTML; draw charts and QR codes as SVG or PNG; convert SVG and other images to PNG, JPEG or WebP at any size; screenshot public pages; build signed URLs that render on first fetch. Every render returns a hosted URL. Costs are in images: one per image or screenshot, one per PDF page; template and record reads are free. Plan ceilings are reported on every response in the X-Gw-* headers (X-Gw-Remaining, X-Gw-Reset), so clients and agents can pace themselves.

GETTING STARTED
Every request goes to https://api.imageapis.com/ with your key in the X-API-Key header. What's left of your allowance rides back on every response in X-Gw-Remaining.
Get a key → · Sign in →
curl "https://api.imageapis.com/v1/templates" \
  -H "X-API-Key: YOUR_KEY"
FROM AN AI AGENT
This API is also an MCP server. Add https://mcp.imageapis.com/ to Claude Code, Cursor or any MCP client with your key as a bearer token and every operation below becomes a tool — same key, same metering, same allowance. In a connector that only takes a URL, use the connector URL instead. Prompting a model by hand? Every operation has a Markdown version. An agent setting itself up can start from agents.md, and npx skills add https://dash.imageapis.com/ installs this API as a skill.
claude mcp add --transport http imageapis https://mcp.imageapis.com/ \
  --header "Authorization: Bearer YOUR_KEY"
ERRORS
Every operation can also answer with this, so it is listed once here rather than on each card.
400A parameter is missing, malformed or out of range
{
  "error": "string",
  "message": "string",
  "param": "string"
}

Images

POST/v1/images

Render an image from a template, an inline template or HTML

One request, one image. Pass a stored template's id with modifications and variables, an inline template object, or raw html. The response carries a hosted url (30 days on Free, a year on paid plans). Set response to binary to get the file itself, or webhook_url to render in the background.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "modifications": [
    {
      "name": "title",
      "text": "Launch week starts Monday"
    },
    {
      "name": "photo",
      "src": "https://example.com/hero.jpg"
    }
  ],
  "format": "png",
  "scale": 2
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/images" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "modifications": [
    {
      "name": "title",
      "text": "Launch week starts Monday"
    },
    {
      "name": "photo",
      "src": "https://example.com/hero.jpg"
    }
  ],
  "format": "png",
  "scale": 2
}'
RESPONSE
200With response=binary: the file itself, with X-Image-Id and X-Image-Url headers
201Created
{
  "id": "img_7hk2mq9ztbw4e6nrcxpd",
  "object": "image",
  "status": "completed",
  "url": "https://img.imageapis.com/i/img_7hk2mq9ztbw4e6nrcxpd.png",
  "format": "png",
  "width": 1200,
  "height": 630,
  "scale": 1,
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "bytes": 48213,
  "units": 1,
  "created": "2026-10-10T18:04:11Z",
  "completed": "2026-10-10T18:04:12Z",
  "expires": "2026-11-09T18:04:11Z"
}
202Accepted: rendering in the background; the record has status pending and the webhook gets the finished one
{
  "id": "img_7hk2mq9ztbw4e6nrcxpd",
  "object": "image",
  "status": "completed",
  "url": "https://img.imageapis.com/i/img_7hk2mq9ztbw4e6nrcxpd.png",
  "format": "png",
  "width": 1200,
  "height": 630,
  "scale": 1,
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "bytes": 48213,
  "units": 1,
  "created": "2026-10-10T18:04:11Z",
  "completed": "2026-10-10T18:04:12Z",
  "expires": "2026-11-09T18:04:11Z"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

GET/v1/images/{id}

Fetch an image's record: status, url, size

PARAMETERS
idpath · stringREQUIRED
The image id
e.g. img_7hk2mq9ztbw4e6nrcxpd
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/images/img_7hk2mq9ztbw4e6nrcxpd" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "img_7hk2mq9ztbw4e6nrcxpd",
  "object": "image",
  "status": "completed",
  "url": "https://img.imageapis.com/i/img_7hk2mq9ztbw4e6nrcxpd.png",
  "format": "png",
  "width": 1200,
  "height": 630,
  "scale": 1,
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "bytes": 48213,
  "units": 1,
  "created": "2026-10-10T18:04:11Z",
  "completed": "2026-10-10T18:04:12Z",
  "expires": "2026-11-09T18:04:11Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/v1/images/sizes

Render one template at several sizes in one call: Open Graph, square, story, banner

Magic resize for templates. Each size is laid out from the template: everything scales by the factor that fits the original inside the new canvas, layers touching an edge stay on it, layers spanning the canvas (backgrounds, bands) stretch across it, and the rest keep their centre at the same fraction of the canvas, so the extra room of a taller or wider canvas goes between layers. Text that shrinks to fit keeps fitting. Give modifications inside a size to move or restyle a layer for that size only. One image per size, reserved before rendering; a size that fails twice comes back with status failed.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "sizes": [
    "og",
    "instagram-post",
    {
      "preset": "instagram-story",
      "modifications": [
        {
          "name": "title",
          "size": 96
        }
      ]
    }
  ],
  "variables": {
    "title": "Launch week starts Monday"
  }
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/images/sizes" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "sizes": [
    "og",
    "instagram-post",
    {
      "preset": "instagram-story",
      "modifications": [
        {
          "name": "title",
          "size": 96
        }
      ]
    }
  ],
  "variables": {
    "title": "Launch week starts Monday"
  }
}'
RESPONSE
201Created
{
  "object": "list",
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "units": 3,
  "images": [
    {
      "id": "img_3kd8wq2mzx7hbn4tcv9r",
      "object": "image",
      "status": "completed",
      "url": "https://img.imageapis.com/i/img_3kd8wq2mzx7hbn4tcv9r.png",
      "format": "png",
      "width": 1200,
      "height": 630,
      "scale": 1,
      "template": "tpl_4nq8vzk2hdyw7bxme3rc",
      "bytes": 48213,
      "units": 1,
      "created": "2026-10-10T18:04:11Z",
      "completed": "2026-10-10T18:04:12Z",
      "expires": "2026-11-09T18:04:11Z",
      "size": "og"
    },
    {
      "id": "img_8vtr2kx9mwq4zhdn7bc3",
      "object": "image",
      "status": "completed",
      "url": "https://img.imageapis.com/i/img_8vtr2kx9mwq4zhdn7bc3.png",
      "format": "png",
      "width": 1080,
      "height": 1080,
      "scale": 1,
      "template": "tpl_4nq8vzk2hdyw7bxme3rc",
      "bytes": 48213,
      "units": 1,
      "created": "2026-10-10T18:04:11Z",
      "completed": "2026-10-10T18:04:12Z",
      "expires": "2026-11-09T18:04:11Z",
      "size": "instagram-post"
    },
    {
      "id": "img_q7nd2wz4hkx8vmtb3cr9",
      "object": "image",
      "status": "completed",
      "url": "https://img.imageapis.com/i/img_q7nd2wz4hkx8vmtb3cr9.png",
      "format": "png",
      "width": 1080,
      "height": 1920,
      "scale": 1,
      "template": "tpl_4nq8vzk2hdyw7bxme3rc",
      "bytes": 48213,
      "units": 1,
      "created": "2026-10-10T18:04:11Z",
      "completed": "2026-10-10T18:04:12Z",
      "expires": "2026-11-09T18:04:11Z",
      "size": "instagram-story"
    }
  ]
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Collections

POST/v1/collections

Render many images from one template: a CSV with one row per image, or a list of items

One template and up to 1000 images in one call. Send csv (a header row, then one row per image: a column named after a {{placeholder}} fills it, layer.property sets that layer's property, a column starting with _ is kept as metadata) or items; or POST the CSV itself as text/csv, options in the query string.

The answer is 202 with every image's id and final url already assigned, plus csv (how each column was read) and warnings (columns and placeholders that match nothing). Images render in the background: poll GET /v1/collections/{id} or pass webhook_url. It is all reserved first, one image per row: if the plan has fewer left, it's 429 and nothing is charged.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "csv": "title,author,photo.src,_post\nWhat we learned running Postgres at 40 TB,Dana Reyes,https://example.com/a.jpg,101\n\"Queues, retries and idempotency\",Sam Okafor,https://example.com/b.jpg,102\n",
  "scale": 2,
  "webhook_url": "https://example.com/hooks/collection"
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/collections" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "csv": "title,author,photo.src,_post\nWhat we learned running Postgres at 40 TB,Dana Reyes,https://example.com/a.jpg,101\n\"Queues, retries and idempotency\",Sam Okafor,https://example.com/b.jpg,102\n",
  "scale": 2,
  "webhook_url": "https://example.com/hooks/collection"
}'
RESPONSE
200With response=binary: the file itself, with X-Image-Id and X-Image-Url headers
202Accepted: rendering in the background; the record has status pending and the webhook gets the finished one
{
  "id": "col_5kq2wz8xmtnb4hdc7vre",
  "object": "collection",
  "status": "pending",
  "total": 2,
  "completed": 0,
  "failed": 0,
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "format": "png",
  "scale": 1,
  "units": 2,
  "source": "csv",
  "csv": {
    "rows": 2,
    "delimiter": "comma",
    "variables": [
      "title",
      "author"
    ],
    "modifications": [
      "photo.src"
    ],
    "metadata": [
      "_post"
    ]
  },
  "warnings": [],
  "images": [
    {
      "index": 0,
      "id": "img_7hk2mq9ztbw4e6nrcxpd",
      "status": "pending",
      "url": "https://img.imageapis.com/i/img_7hk2mq9ztbw4e6nrcxpd.png",
      "metadata": {
        "post": "101"
      }
    },
    {
      "index": 1,
      "id": "img_9xw4nq2kdtbz7hmc3vpe",
      "status": "pending",
      "url": "https://img.imageapis.com/i/img_9xw4nq2kdtbz7hmc3vpe.png",
      "metadata": {
        "post": "102"
      }
    }
  ],
  "created": "2026-10-10T19:02:11Z",
  "expires": "2026-11-09T19:02:11Z"
}
401Missing or invalid API key (from the gateway)
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

GET/v1/collections/{id}

A collection's progress and its images

PARAMETERS
idpath · stringREQUIRED
The collection id
e.g. col_5kq2wz8xmtnb4hdc7vre
statusquery · enum
Only list the images with this status, e.g. failed to retry them
one of: pending, completed, failed
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/collections/col_5kq2wz8xmtnb4hdc7vre" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "col_5kq2wz8xmtnb4hdc7vre",
  "object": "collection",
  "status": "completed",
  "total": 2,
  "completed": 2,
  "failed": 0,
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "format": "png",
  "scale": 1,
  "units": 2,
  "source": "csv",
  "csv": {
    "rows": 2,
    "delimiter": "comma",
    "variables": [
      "title",
      "author"
    ],
    "modifications": [
      "photo.src"
    ],
    "metadata": [
      "_post"
    ]
  },
  "warnings": [],
  "images": [
    {
      "index": 0,
      "id": "img_7hk2mq9ztbw4e6nrcxpd",
      "status": "completed",
      "url": "https://img.imageapis.com/i/img_7hk2mq9ztbw4e6nrcxpd.png",
      "bytes": 48213,
      "metadata": {
        "post": "101"
      }
    },
    {
      "index": 1,
      "id": "img_9xw4nq2kdtbz7hmc3vpe",
      "status": "completed",
      "url": "https://img.imageapis.com/i/img_9xw4nq2kdtbz7hmc3vpe.png",
      "bytes": 51022,
      "metadata": {
        "post": "102"
      }
    }
  ],
  "created": "2026-10-10T19:02:11Z",
  "completed_at": "2026-10-10T19:02:19Z",
  "expires": "2026-11-09T19:02:11Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Templates

GET/v1/templates

List this account's templates

Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/templates" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "templates": [
    {
      "id": "tpl_4nq8vzk2hdyw7bxme3rc",
      "object": "template",
      "name": "Blog post card",
      "engine": "layers",
      "width": 1200,
      "height": 630,
      "layers": 3,
      "created": "2026-10-10T17:40:02Z",
      "updated": "2026-10-10T17:40:02Z"
    }
  ]
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/v1/templates

Save a template: positioned layers, or your own HTML

Layers are rendered bottom to top inside a canvas of width × height. Text layers shrink to fit their box by default. Put {{placeholders}} in text, src, html or css and fill them with variables at render time, or override any layer property by name with modifications. Set engine to html to bring your own HTML and CSS instead of layers.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "name": "Blog post card",
  "width": 1200,
  "height": 630,
  "background": "#0b1220",
  "layers": [
    {
      "name": "title",
      "type": "text",
      "x": 72,
      "y": 160,
      "width": 1056,
      "height": 280,
      "text": "{{title}}",
      "font": "Inter",
      "weight": 800,
      "size": 72,
      "color": "#ffffff",
      "fit": "shrink",
      "max_lines": 3
    },
    {
      "name": "site",
      "type": "text",
      "x": 72,
      "y": 72,
      "width": 600,
      "height": 40,
      "text": "apidirectory.com",
      "font": "Inter",
      "weight": 600,
      "size": 28,
      "color": "#a3b1c6"
    },
    {
      "name": "accent",
      "type": "rect",
      "x": 0,
      "y": 616,
      "width": 1200,
      "height": 14,
      "fill": "#6366f1"
    }
  ]
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/templates" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Blog post card",
  "width": 1200,
  "height": 630,
  "background": "#0b1220",
  "layers": [
    {
      "name": "title",
      "type": "text",
      "x": 72,
      "y": 160,
      "width": 1056,
      "height": 280,
      "text": "{{title}}",
      "font": "Inter",
      "weight": 800,
      "size": 72,
      "color": "#ffffff",
      "fit": "shrink",
      "max_lines": 3
    },
    {
      "name": "site",
      "type": "text",
      "x": 72,
      "y": 72,
      "width": 600,
      "height": 40,
      "text": "apidirectory.com",
      "font": "Inter",
      "weight": 600,
      "size": 28,
      "color": "#a3b1c6"
    },
    {
      "name": "accent",
      "type": "rect",
      "x": 0,
      "y": 616,
      "width": 1200,
      "height": 14,
      "fill": "#6366f1"
    }
  ]
}'
RESPONSE
201Created
{
  "id": "tpl_4nq8vzk2hdyw7bxme3rc",
  "object": "template",
  "name": "Blog post card",
  "engine": "layers",
  "width": 1200,
  "height": 630,
  "background": "#0b1220",
  "layers": [
    {
      "name": "title",
      "type": "text",
      "x": 72,
      "y": 160,
      "width": 1056,
      "height": 280,
      "text": "{{title}}",
      "font": "Inter",
      "weight": 800,
      "size": 72,
      "color": "#ffffff",
      "fit": "shrink",
      "max_lines": 3
    },
    {
      "name": "site",
      "type": "text",
      "x": 72,
      "y": 72,
      "width": 600,
      "height": 40,
      "text": "apidirectory.com",
      "font": "Inter",
      "weight": 600,
      "size": 28,
      "color": "#a3b1c6"
    },
    {
      "name": "accent",
      "type": "rect",
      "x": 0,
      "y": 616,
      "width": 1200,
      "height": 14,
      "fill": "#6366f1"
    }
  ],
  "created": "2026-10-10T17:40:02Z",
  "updated": "2026-10-10T17:40:02Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

GET/v1/templates/{id}

One template with all its layers

PARAMETERS
idpath · stringREQUIRED
The template id
e.g. tpl_4nq8vzk2hdyw7bxme3rc
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/templates/tpl_4nq8vzk2hdyw7bxme3rc" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "tpl_4nq8vzk2hdyw7bxme3rc",
  "object": "template",
  "name": "Blog post card",
  "engine": "layers",
  "width": 1200,
  "height": 630,
  "background": "#0b1220",
  "layers": [
    {
      "name": "title",
      "type": "text",
      "x": 72,
      "y": 160,
      "width": 1056,
      "height": 280,
      "text": "{{title}}",
      "font": "Inter",
      "weight": 800,
      "size": 72,
      "color": "#ffffff",
      "fit": "shrink",
      "max_lines": 3
    },
    {
      "name": "site",
      "type": "text",
      "x": 72,
      "y": 72,
      "width": 600,
      "height": 40,
      "text": "apidirectory.com",
      "font": "Inter",
      "weight": 600,
      "size": 28,
      "color": "#a3b1c6"
    },
    {
      "name": "accent",
      "type": "rect",
      "x": 0,
      "y": 616,
      "width": 1200,
      "height": 14,
      "fill": "#6366f1"
    }
  ],
  "created": "2026-10-10T17:40:02Z",
  "updated": "2026-10-10T17:40:02Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

PUT/v1/templates/{id}

Replace a template's definition

Send the whole template; what you send is what is kept. Renders already made from it are unaffected; signed URLs pick up the new version.

PARAMETERS
idpath · stringREQUIRED
The template id
e.g. tpl_4nq8vzk2hdyw7bxme3rc
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "name": "Blog post card",
  "width": 1200,
  "height": 630,
  "background": "#0b1220",
  "layers": [
    {
      "name": "title",
      "type": "text",
      "x": 72,
      "y": 160,
      "width": 1056,
      "height": 280,
      "text": "{{title}}",
      "font": "Inter",
      "weight": 800,
      "size": 72,
      "color": "#ffffff",
      "fit": "shrink",
      "max_lines": 3
    },
    {
      "name": "site",
      "type": "text",
      "x": 72,
      "y": 72,
      "width": 600,
      "height": 40,
      "text": "apidirectory.com",
      "font": "Inter",
      "weight": 600,
      "size": 28,
      "color": "#a3b1c6"
    },
    {
      "name": "accent",
      "type": "rect",
      "x": 0,
      "y": 616,
      "width": 1200,
      "height": 14,
      "fill": "#6366f1"
    }
  ]
}
Open on its own page
REQUEST
curl -X PUT "https://api.imageapis.com/v1/templates/tpl_4nq8vzk2hdyw7bxme3rc" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Blog post card",
  "width": 1200,
  "height": 630,
  "background": "#0b1220",
  "layers": [
    {
      "name": "title",
      "type": "text",
      "x": 72,
      "y": 160,
      "width": 1056,
      "height": 280,
      "text": "{{title}}",
      "font": "Inter",
      "weight": 800,
      "size": 72,
      "color": "#ffffff",
      "fit": "shrink",
      "max_lines": 3
    },
    {
      "name": "site",
      "type": "text",
      "x": 72,
      "y": 72,
      "width": 600,
      "height": 40,
      "text": "apidirectory.com",
      "font": "Inter",
      "weight": 600,
      "size": 28,
      "color": "#a3b1c6"
    },
    {
      "name": "accent",
      "type": "rect",
      "x": 0,
      "y": 616,
      "width": 1200,
      "height": 14,
      "fill": "#6366f1"
    }
  ]
}'
RESPONSE
200OK
{
  "id": "tpl_4nq8vzk2hdyw7bxme3rc",
  "object": "template",
  "name": "Blog post card",
  "engine": "layers",
  "width": 1200,
  "height": 630,
  "background": "#0b1220",
  "layers": [
    {
      "name": "title",
      "type": "text",
      "x": 72,
      "y": 160,
      "width": 1056,
      "height": 280,
      "text": "{{title}}",
      "font": "Inter",
      "weight": 800,
      "size": 72,
      "color": "#ffffff",
      "fit": "shrink",
      "max_lines": 3
    },
    {
      "name": "site",
      "type": "text",
      "x": 72,
      "y": 72,
      "width": 600,
      "height": 40,
      "text": "apidirectory.com",
      "font": "Inter",
      "weight": 600,
      "size": 28,
      "color": "#a3b1c6"
    },
    {
      "name": "accent",
      "type": "rect",
      "x": 0,
      "y": 616,
      "width": 1200,
      "height": 14,
      "fill": "#6366f1"
    }
  ],
  "created": "2026-10-10T17:40:02Z",
  "updated": "2026-10-10T17:40:02Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

DELETE/v1/templates/{id}

Delete a template

PARAMETERS
idpath · stringREQUIRED
The template id
e.g. tpl_4nq8vzk2hdyw7bxme3rc
Open on its own page
REQUEST
curl -X DELETE "https://api.imageapis.com/v1/templates/tpl_4nq8vzk2hdyw7bxme3rc" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "tpl_4nq8vzk2hdyw7bxme3rc",
  "object": "template",
  "deleted": true
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/v1/templates/check

Check a template with real values before rendering: text that does not fit, low contrast, failed images, layers off the canvas

Lays the template out in the browser that renders it, with your variables and modifications, and reports what would go wrong: text that overflows at its smallest size, was cut to max_lines or shrank a lot; low-contrast text; images, icons or fonts that did not load, or images drawn much bigger than they are; layers off the canvas or on top of each other; placeholders with no value. Each issue has a level (error, warning, info), the layer, a message and a fix; layers has each layer's measured facts; ok is true when nothing is an error. Free; render: true also renders the image for one unit. Check with the longest and the shortest real values before saving a design.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "variables": {
    "title": "A much longer headline than the one this card was designed around, to see what happens"
  }
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/templates/check" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "variables": {
    "title": "A much longer headline than the one this card was designed around, to see what happens"
  }
}'
RESPONSE
200OK
{
  "ok": false,
  "errors": 1,
  "warnings": 2,
  "issues": [
    {
      "level": "error",
      "code": "text_overflow",
      "layer": "title",
      "message": "title does not fit its box even at 8 px; the end is cut off",
      "fix": "shorten the text, make the box bigger, or lower min_size"
    },
    {
      "level": "warning",
      "code": "low_contrast",
      "layer": "site",
      "message": "site has a contrast of 2.1:1 against what is behind it; 4.5:1 is the usual minimum for body text",
      "fix": "darken or lighten the text or its background"
    },
    {
      "level": "warning",
      "code": "missing_variable",
      "message": "{{author}} has no value, so it renders empty",
      "fix": "send variables.author"
    }
  ],
  "layers": [
    {
      "name": "title",
      "type": "text",
      "x": 72,
      "y": 160,
      "width": 1056,
      "height": 280,
      "font_size": 8,
      "start_size": 72,
      "lines": 41,
      "fits": false,
      "contrast": 17.4
    },
    {
      "name": "site",
      "type": "text",
      "x": 72,
      "y": 72,
      "width": 600,
      "height": 40,
      "font_size": 28,
      "start_size": 28,
      "lines": 1,
      "fits": true,
      "contrast": 2.1
    }
  ],
  "template": {
    "id": "tpl_4nq8vzk2hdyw7bxme3rc",
    "width": 1200,
    "height": 630
  }
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

GET/v1/templates/{id}/fields

The fields a template asks for: its placeholders and each layer's main property

A form for the template, for no-code tools and your own UI. variable fields are the template's {{placeholders}} (send them in variables); modification fields are each layer's main property that no placeholder fills: a text layer's text, an image's src, a QR code's data, a chart's values, a bar or rating's value, a rectangle's fill (send them in modifications). type says what a value is (text, image_url, color, number, numbers) and default is what the template has now.

PARAMETERS
idpath · stringREQUIRED
The template id
e.g. tpl_4nq8vzk2hdyw7bxme3rc
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/templates/tpl_4nq8vzk2hdyw7bxme3rc/fields" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "template": {
    "id": "tpl_4nq8vzk2hdyw7bxme3rc",
    "name": "Blog post card",
    "engine": "layers",
    "width": 1200,
    "height": 630,
    "animated": false
  },
  "fields": [
    {
      "key": "title",
      "kind": "variable",
      "label": "Title",
      "type": "text"
    },
    {
      "key": "site.text",
      "kind": "modification",
      "label": "Site (text)",
      "type": "text",
      "layer": "site",
      "property": "text",
      "default": "apidirectory.com"
    },
    {
      "key": "accent.fill",
      "kind": "modification",
      "label": "Accent (colour)",
      "type": "color",
      "layer": "accent",
      "property": "fill",
      "default": "#6366f1",
      "help": "A CSS colour: #ff5733, rgb(…) or a name."
    }
  ],
  "example": {
    "template": "tpl_4nq8vzk2hdyw7bxme3rc",
    "variables": {
      "title": "Title"
    }
  }
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Starters

GET/v1/starters

Starter templates to copy: social cards, a ticket with a QR code, a certificate, a video thumbnail, a weekly report with charts

Each starter is a complete template with {{placeholders}} and sample variables. Render one inline by passing its template to POST /v1/images, or save your own copy with POST /v1/templates and change it from there.

Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/starters" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "starters": [
    {
      "slug": "og-card",
      "name": "Open Graph card",
      "description": "Site name, tag, a title that shrinks to fit, a description and an accent bar. The design behind POST /v1/og, as a template you can change.",
      "tags": [
        "social",
        "og"
      ],
      "width": 1200,
      "height": 630,
      "layers": 5,
      "variables": [
        "title",
        "description",
        "site",
        "tag"
      ]
    },
    {
      "slug": "event-ticket",
      "name": "Event ticket with QR",
      "description": "A wide ticket: event, date and venue on the left, the holder's name and seat, a perforation, and a QR code of the ticket URL on the right.",
      "tags": [
        "ticket",
        "qr",
        "pdf"
      ],
      "width": 1000,
      "height": 400,
      "layers": 10,
      "variables": [
        "event",
        "date",
        "venue",
        "name",
        "seat",
        "ticket_url"
      ]
    }
  ]
}
401Missing or invalid API key (from the gateway)
429Plan ceiling or rate limit reached; see X-Gw-Reset (from the gateway)
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

GET/v1/starters/{slug}

One starter template with its layers and sample variables

PARAMETERS
slugpath · stringREQUIRED
The starter's slug
e.g. event-ticket
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/starters/event-ticket" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "slug": "og-card",
  "name": "Open Graph card",
  "description": "Site name, tag, a title that shrinks to fit, a description and an accent bar. The design behind POST /v1/og, as a template you can change.",
  "tags": [
    "social",
    "og"
  ],
  "width": 1200,
  "height": 630,
  "layers": 5,
  "variables": {
    "title": "Ship social cards without a designer",
    "description": "One request, one hosted image.",
    "site": "example.com",
    "tag": "Blog"
  },
  "template": {
    "name": "Open Graph card",
    "width": 1200,
    "height": 630,
    "background": "#0b1220",
    "layers": [
      {
        "name": "site",
        "type": "text",
        "x": 72,
        "y": 72,
        "width": 800,
        "height": 40,
        "text": "{{site}}",
        "font": "Inter",
        "weight": 600,
        "size": 28,
        "color": "#a3b1c6",
        "valign": "middle"
      },
      {
        "name": "tag",
        "type": "text",
        "x": 72,
        "y": 150,
        "width": 800,
        "height": 32,
        "text": "{{tag}}",
        "font": "Inter",
        "weight": 700,
        "size": 22,
        "color": "#6366f1",
        "transform": "uppercase",
        "letter_spacing": 2
      },
      {
        "name": "title",
        "type": "text",
        "x": 72,
        "y": 196,
        "width": 1056,
        "height": 230,
        "text": "{{title}}",
        "font": "Inter",
        "weight": 800,
        "size": 72,
        "color": "#ffffff",
        "valign": "bottom",
        "line_height": 1.08,
        "fit": "shrink",
        "max_lines": 3,
        "letter_spacing": -1
      },
      {
        "name": "description",
        "type": "text",
        "x": 72,
        "y": 442,
        "width": 1056,
        "height": 100,
        "text": "{{description}}",
        "font": "Inter",
        "weight": 400,
        "size": 30,
        "color": "#a3b1c6",
        "fit": "shrink",
        "max_lines": 2,
        "line_height": 1.35
      },
      {
        "name": "accent",
        "type": "rect",
        "x": 0,
        "y": 616,
        "width": 1200,
        "height": 14,
        "fill": "#6366f1"
      }
    ]
  }
}
401Missing or invalid API key (from the gateway)
429Plan ceiling or rate limit reached; see X-Gw-Reset (from the gateway)
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Videos

POST/v1/videos

Render an MP4, WebM or GIF from a template whose layers animate, or from HTML with CSS animations

Give layers an animate (an entrance such as slide-up, fade, pop, wipe-right or type, a loop such as float or pulse, an exit) and the template becomes a video; or send html whose CSS animations should play. Every frame is the real page at that moment, so fonts, text that fits itself, charts and QR codes look exactly as they do in images. Up to 30 s and 1080p; GIFs up to 1200 px. The answer is 202 with the final url assigned (it answers 404 until the file is ready); poll GET /v1/videos/{id}, pass webhook_url, or set wait to true to get the finished video in the response. Costs one image per second of video, reserved before rendering.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "template": {
    "width": 1200,
    "height": 630,
    "background": "#0b1220",
    "layers": [
      {
        "name": "title",
        "type": "text",
        "x": 72,
        "y": 200,
        "width": 1056,
        "height": 200,
        "text": "{{title}}",
        "font": "Inter",
        "weight": 800,
        "size": 72,
        "color": "#ffffff",
        "animate": {
          "in": "slide-up",
          "in_at": 0.2
        }
      },
      {
        "name": "accent",
        "type": "rect",
        "x": 0,
        "y": 612,
        "width": 1200,
        "height": 18,
        "fill": "#ffd60a",
        "animate": {
          "in": "wipe-right",
          "in_at": 0.6,
          "in_duration": 0.8
        }
      }
    ]
  },
  "variables": {
    "title": "Launch week starts Monday"
  },
  "format": "mp4",
  "wait": true
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/videos" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "template": {
    "width": 1200,
    "height": 630,
    "background": "#0b1220",
    "layers": [
      {
        "name": "title",
        "type": "text",
        "x": 72,
        "y": 200,
        "width": 1056,
        "height": 200,
        "text": "{{title}}",
        "font": "Inter",
        "weight": 800,
        "size": 72,
        "color": "#ffffff",
        "animate": {
          "in": "slide-up",
          "in_at": 0.2
        }
      },
      {
        "name": "accent",
        "type": "rect",
        "x": 0,
        "y": 612,
        "width": 1200,
        "height": 18,
        "fill": "#ffd60a",
        "animate": {
          "in": "wipe-right",
          "in_at": 0.6,
          "in_duration": 0.8
        }
      }
    ]
  },
  "variables": {
    "title": "Launch week starts Monday"
  },
  "format": "mp4",
  "wait": true
}'
RESPONSE
200With response=binary: the file itself, with X-Image-Id and X-Image-Url headers
202Accepted: rendering in the background; the record has status pending and the webhook gets the finished one
{
  "id": "vid_6hq2wz8xmtnb4kdc7vre",
  "object": "video",
  "status": "pending",
  "url": "https://img.imageapis.com/i/vid_6hq2wz8xmtnb4kdc7vre.mp4",
  "format": "mp4",
  "width": 1200,
  "height": 630,
  "fps": 30,
  "duration": 4,
  "frames": 120,
  "units": 4,
  "progress": 0,
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "created": "2026-10-11T20:02:11Z",
  "expires": "2026-11-10T20:02:11Z"
}
401Missing or invalid API key (from the gateway)
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

GET/v1/videos/{id}

A video's status, progress and url

PARAMETERS
idpath · stringREQUIRED
The video id
e.g. vid_6hq2wz8xmtnb4kdc7vre
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/videos/vid_6hq2wz8xmtnb4kdc7vre" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "vid_6hq2wz8xmtnb4kdc7vre",
  "object": "video",
  "status": "completed",
  "url": "https://img.imageapis.com/i/vid_6hq2wz8xmtnb4kdc7vre.mp4",
  "format": "mp4",
  "width": 1200,
  "height": 630,
  "fps": 30,
  "duration": 4,
  "frames": 120,
  "units": 4,
  "progress": 1,
  "template": "tpl_4nq8vzk2hdyw7bxme3rc",
  "bytes": 412831,
  "created": "2026-10-11T20:02:11Z",
  "completed": "2026-10-11T20:02:24Z",
  "expires": "2026-11-10T20:02:11Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Conversions

POST/v1/conversions

Convert an image (SVG, PNG, JPEG, WebP, GIF or AVIF) to PNG, JPEG or WebP, resized if you like

An image you already have, in the format and size you need, at a hosted URL. Send JSON with one of url, upload, svg or data; or POST the file itself (its image Content-Type, or multipart with a file field) with the options in the query string (?format=webp&width=800).

SVG renders in a real browser with the Google Fonts it names, so text comes out as designed: the way to get a PNG of a diagram, logo or chart for email and social cards. An animated GIF or WebP gives its first frame. Without width or height the output keeps the image's own size, up to 4096 px on the longer side. Up to 10 MB and 50 megapixels in. Fetch the record again with get_image.

REQUEST BODY · APPLICATION/JSON
{
  "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\"><circle cx=\"32\" cy=\"32\" r=\"28\" fill=\"#ffd60a\"/><text x=\"32\" y=\"40\" font-family=\"Inter\" font-weight=\"700\" font-size=\"20\" text-anchor=\"middle\">API</text></svg>",
  "format": "png",
  "width": 1024
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/conversions" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\"><circle cx=\"32\" cy=\"32\" r=\"28\" fill=\"#ffd60a\"/><text x=\"32\" y=\"40\" font-family=\"Inter\" font-weight=\"700\" font-size=\"20\" text-anchor=\"middle\">API</text></svg>",
  "format": "png",
  "width": 1024
}'
RESPONSE
200With response=binary: the file itself, with X-Image-Id and X-Image-Url headers
201Created
{
  "id": "img_5tq8mx2kzc4wnb7hd3vr",
  "object": "image",
  "status": "completed",
  "url": "https://img.imageapis.com/i/img_5tq8mx2kzc4wnb7hd3vr.png",
  "format": "png",
  "width": 1024,
  "height": 1024,
  "template": "convert",
  "bytes": 38102,
  "units": 1,
  "created": "2026-10-10T18:04:11Z",
  "completed": "2026-10-10T18:04:12Z",
  "expires": "2026-11-09T18:04:11Z",
  "source": {
    "format": "svg",
    "width": 64,
    "height": 64,
    "bytes": 2381
  }
}
202Accepted: rendering in the background; the record has status pending and the webhook gets the finished one
{
  "id": "img_5tq8mx2kzc4wnb7hd3vr",
  "object": "image",
  "status": "completed",
  "url": "https://img.imageapis.com/i/img_5tq8mx2kzc4wnb7hd3vr.png",
  "format": "png",
  "width": 1024,
  "height": 1024,
  "template": "convert",
  "bytes": 38102,
  "units": 1,
  "created": "2026-10-10T18:04:11Z",
  "completed": "2026-10-10T18:04:12Z",
  "expires": "2026-11-09T18:04:11Z",
  "source": {
    "format": "svg",
    "width": 64,
    "height": 64,
    "bytes": 2381
  }
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Uploads

GET/v1/uploads

List this account's uploads, newest first

Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/uploads" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "uploads": [
    {
      "id": "upl_8kq2wzm4tnb7hdc3vrex",
      "object": "upload",
      "url": "https://img.imageapis.com/u/upl_8kq2wzm4tnb7hdc3vrex.png",
      "name": "logo-dark.png",
      "format": "png",
      "content_type": "image/png",
      "width": 512,
      "height": 512,
      "bytes": 18233,
      "created": "2026-10-11T15:02:11Z"
    }
  ]
}
401Missing or invalid API key (from the gateway)
429Plan ceiling or rate limit reached; see X-Gw-Reset (from the gateway)
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/v1/uploads

Upload an image (logo, photo, background) and get a URL to use in image layers

Keep your own image at a stable URL on img.imageapis.com, then use that URL as an image layer's src, in a CSV column like logo.src, or anywhere else. Send the file as the request body with its image Content-Type (--data-binary @logo.png -H 'Content-Type: image/png'), as multipart/form-data with a file field (-F file=@logo.png), or as JSON with url (copied from a public URL) or data (base64). PNG, JPEG, WebP, GIF, AVIF and SVG, up to 10 MB and 50 megapixels; the type comes from the bytes. Free, kept until you delete it, up to 500 per account. SVGs with scripts or event handlers are refused.

REQUEST BODY · APPLICATION/JSON
{
  "url": "https://example.com/brand/logo-dark.png",
  "name": "logo-dark.png"
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/uploads" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com/brand/logo-dark.png",
  "name": "logo-dark.png"
}'
RESPONSE
201Created
{
  "id": "upl_8kq2wzm4tnb7hdc3vrex",
  "object": "upload",
  "url": "https://img.imageapis.com/u/upl_8kq2wzm4tnb7hdc3vrex.png",
  "name": "logo-dark.png",
  "format": "png",
  "content_type": "image/png",
  "width": 512,
  "height": 512,
  "bytes": 18233,
  "created": "2026-10-11T15:02:11Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

GET/v1/uploads/{id}

One upload: its URL, type, size and pixel dimensions

PARAMETERS
idpath · stringREQUIRED
The upload id
e.g. upl_8kq2wzm4tnb7hdc3vrex
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/uploads/upl_8kq2wzm4tnb7hdc3vrex" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "upl_8kq2wzm4tnb7hdc3vrex",
  "object": "upload",
  "url": "https://img.imageapis.com/u/upl_8kq2wzm4tnb7hdc3vrex.png",
  "name": "logo-dark.png",
  "format": "png",
  "content_type": "image/png",
  "width": 512,
  "height": 512,
  "bytes": 18233,
  "created": "2026-10-11T15:02:11Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

DELETE/v1/uploads/{id}

Delete an upload; templates that use its URL show an empty image from then on

PARAMETERS
idpath · stringREQUIRED
The upload id
e.g. upl_8kq2wzm4tnb7hdc3vrex
Open on its own page
REQUEST
curl -X DELETE "https://api.imageapis.com/v1/uploads/upl_8kq2wzm4tnb7hdc3vrex" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "upl_8kq2wzm4tnb7hdc3vrex",
  "object": "upload",
  "deleted": true
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Brands

GET/v1/brands

List this account's brands, each with the variables it fills

Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/brands" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "brands": [
    {
      "id": "brand_6tq2mz8wkxhd4vbn7rce",
      "object": "brand",
      "name": "Acme",
      "default": true,
      "logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
      "colors": {
        "primary": "#4f46e5",
        "background": "#0f172a",
        "text": "#ffffff"
      },
      "fonts": {
        "heading": "Playfair Display",
        "body": "Inter"
      },
      "images": {},
      "values": {
        "website": "acme.com",
        "tagline": "Rockets, mostly"
      },
      "variables": {
        "brand.name": "Acme",
        "brand.logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
        "brand.color.primary": "#4f46e5",
        "brand.color.background": "#0f172a",
        "brand.color.text": "#ffffff",
        "brand.font.heading": "Playfair Display",
        "brand.font.body": "Inter",
        "brand.website": "acme.com",
        "brand.tagline": "Rockets, mostly"
      },
      "created": "2026-10-12T18:00:00Z",
      "updated": "2026-10-12T18:00:00Z"
    }
  ],
  "default": "brand_6tq2mz8wkxhd4vbn7rce"
}
401Missing or invalid API key (from the gateway)
429Plan ceiling or rate limit reached; see X-Gw-Reset (from the gateway)
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/v1/brands

Save a brand kit: colours, fonts, logo and values that fill {{brand.…}} placeholders

Put {{brand.color.primary}} in a layer's fill, {{brand.font.heading}} in its font, {{brand.logo}} in an image's src, {{brand.website}} in a text, and one template renders in any brand: pass brand with a render, or make one brand the default. A SaaS keeps a brand per customer; an agency, per client. The response's variables lists every placeholder the brand fills.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "name": "Acme",
  "default": true,
  "logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
  "colors": {
    "primary": "#4f46e5",
    "background": "#0f172a",
    "text": "#ffffff"
  },
  "fonts": {
    "heading": "Playfair Display",
    "body": "Inter"
  },
  "values": {
    "website": "acme.com",
    "tagline": "Rockets, mostly"
  }
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/brands" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme",
  "default": true,
  "logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
  "colors": {
    "primary": "#4f46e5",
    "background": "#0f172a",
    "text": "#ffffff"
  },
  "fonts": {
    "heading": "Playfair Display",
    "body": "Inter"
  },
  "values": {
    "website": "acme.com",
    "tagline": "Rockets, mostly"
  }
}'
RESPONSE
201Created
{
  "id": "brand_6tq2mz8wkxhd4vbn7rce",
  "object": "brand",
  "name": "Acme",
  "default": true,
  "logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
  "colors": {
    "primary": "#4f46e5",
    "background": "#0f172a",
    "text": "#ffffff"
  },
  "fonts": {
    "heading": "Playfair Display",
    "body": "Inter"
  },
  "images": {},
  "values": {
    "website": "acme.com",
    "tagline": "Rockets, mostly"
  },
  "variables": {
    "brand.name": "Acme",
    "brand.logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
    "brand.color.primary": "#4f46e5",
    "brand.color.background": "#0f172a",
    "brand.color.text": "#ffffff",
    "brand.font.heading": "Playfair Display",
    "brand.font.body": "Inter",
    "brand.website": "acme.com",
    "brand.tagline": "Rockets, mostly"
  },
  "created": "2026-10-12T18:00:00Z",
  "updated": "2026-10-12T18:00:00Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

GET/v1/brands/{id}

One brand and the variables it fills

PARAMETERS
idpath · stringREQUIRED
The brand id
e.g. brand_6tq2mz8wkxhd4vbn7rce
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/brands/brand_6tq2mz8wkxhd4vbn7rce" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "brand_6tq2mz8wkxhd4vbn7rce",
  "object": "brand",
  "name": "Acme",
  "default": true,
  "logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
  "colors": {
    "primary": "#4f46e5",
    "background": "#0f172a",
    "text": "#ffffff"
  },
  "fonts": {
    "heading": "Playfair Display",
    "body": "Inter"
  },
  "images": {},
  "values": {
    "website": "acme.com",
    "tagline": "Rockets, mostly"
  },
  "variables": {
    "brand.name": "Acme",
    "brand.logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
    "brand.color.primary": "#4f46e5",
    "brand.color.background": "#0f172a",
    "brand.color.text": "#ffffff",
    "brand.font.heading": "Playfair Display",
    "brand.font.body": "Inter",
    "brand.website": "acme.com",
    "brand.tagline": "Rockets, mostly"
  },
  "created": "2026-10-12T18:00:00Z",
  "updated": "2026-10-12T18:00:00Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

PUT/v1/brands/{id}

Replace a brand; renders from then on use the new values

Send the whole brand; what you send is what is kept. Signed URLs that name it pick up the change on their next new render.

PARAMETERS
idpath · stringREQUIRED
The brand id
e.g. brand_6tq2mz8wkxhd4vbn7rce
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "name": "Acme",
  "default": true,
  "logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
  "colors": {
    "primary": "#4f46e5",
    "background": "#0f172a",
    "text": "#ffffff"
  },
  "fonts": {
    "heading": "Playfair Display",
    "body": "Inter"
  },
  "values": {
    "website": "acme.com",
    "tagline": "Rockets, mostly"
  }
}
Open on its own page
REQUEST
curl -X PUT "https://api.imageapis.com/v1/brands/brand_6tq2mz8wkxhd4vbn7rce" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme",
  "default": true,
  "logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
  "colors": {
    "primary": "#4f46e5",
    "background": "#0f172a",
    "text": "#ffffff"
  },
  "fonts": {
    "heading": "Playfair Display",
    "body": "Inter"
  },
  "values": {
    "website": "acme.com",
    "tagline": "Rockets, mostly"
  }
}'
RESPONSE
200OK
{
  "id": "brand_6tq2mz8wkxhd4vbn7rce",
  "object": "brand",
  "name": "Acme",
  "default": true,
  "logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
  "colors": {
    "primary": "#4f46e5",
    "background": "#0f172a",
    "text": "#ffffff"
  },
  "fonts": {
    "heading": "Playfair Display",
    "body": "Inter"
  },
  "images": {},
  "values": {
    "website": "acme.com",
    "tagline": "Rockets, mostly"
  },
  "variables": {
    "brand.name": "Acme",
    "brand.logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
    "brand.color.primary": "#4f46e5",
    "brand.color.background": "#0f172a",
    "brand.color.text": "#ffffff",
    "brand.font.heading": "Playfair Display",
    "brand.font.body": "Inter",
    "brand.website": "acme.com",
    "brand.tagline": "Rockets, mostly"
  },
  "created": "2026-10-12T18:00:00Z",
  "updated": "2026-10-12T18:00:00Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

DELETE/v1/brands/{id}

Delete a brand

PARAMETERS
idpath · stringREQUIRED
The brand id
e.g. brand_6tq2mz8wkxhd4vbn7rce
Open on its own page
REQUEST
curl -X DELETE "https://api.imageapis.com/v1/brands/brand_6tq2mz8wkxhd4vbn7rce" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "brand_6tq2mz8wkxhd4vbn7rce",
  "object": "brand",
  "deleted": true
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Og

POST/v1/og

An Open Graph card from a title and a few options, no template needed

A 1200×630 social card in the built-in design: site name and logo, an optional tag, the title (shrinks to fit), a description and an accent bar. For a card that renders on demand from a URL, create a signed base and use the template name og.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "title": "Three data stories from OpenFEC, NHTSA and OpenAlex",
  "description": "What 2.3 million rows say about September",
  "site": "apidirectory.com",
  "tag": "Blog",
  "theme": "dark",
  "accent": "#6366f1"
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/og" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Three data stories from OpenFEC, NHTSA and OpenAlex",
  "description": "What 2.3 million rows say about September",
  "site": "apidirectory.com",
  "tag": "Blog",
  "theme": "dark",
  "accent": "#6366f1"
}'
RESPONSE
200With response=binary: the file itself, with X-Image-Id and X-Image-Url headers
201Created
{
  "id": "img_7hk2mq9ztbw4e6nrcxpd",
  "object": "image",
  "status": "completed",
  "url": "https://img.imageapis.com/i/img_7hk2mq9ztbw4e6nrcxpd.png",
  "format": "png",
  "width": 1200,
  "height": 630,
  "scale": 1,
  "template": "og",
  "bytes": 48213,
  "units": 1,
  "created": "2026-10-10T18:04:11Z",
  "completed": "2026-10-10T18:04:12Z",
  "expires": "2026-11-09T18:04:11Z"
}
202Accepted: rendering in the background; the record has status pending and the webhook gets the finished one
{
  "id": "img_7hk2mq9ztbw4e6nrcxpd",
  "object": "image",
  "status": "completed",
  "url": "https://img.imageapis.com/i/img_7hk2mq9ztbw4e6nrcxpd.png",
  "format": "png",
  "width": 1200,
  "height": 630,
  "scale": 1,
  "template": "og",
  "bytes": 48213,
  "units": 1,
  "created": "2026-10-10T18:04:11Z",
  "completed": "2026-10-10T18:04:12Z",
  "expires": "2026-11-09T18:04:11Z"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Charts

POST/v1/charts

A bar, line, area, pie or donut chart from a list of numbers, as SVG or PNG; no template needed

Numbers in, a chart at a hosted URL out. format svg (the default) is drawn in the worker with no browser: a few KB, sharp at any size, ready for a web page, a README or a slide. Use png, jpeg or webp for email and social cards, which do not show SVG. values and labels take an array or a comma-separated string. The same chart fits inside a template as a chart layer with these properties. The record is an image: fetch it again with get_image.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "kind": "bar",
  "values": [
    120,
    180,
    150,
    210,
    260,
    190,
    174
  ],
  "labels": "Mon,Tue,Wed,Thu,Fri,Sat,Sun",
  "show_values": true,
  "padding": 24
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/charts" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "kind": "bar",
  "values": [
    120,
    180,
    150,
    210,
    260,
    190,
    174
  ],
  "labels": "Mon,Tue,Wed,Thu,Fri,Sat,Sun",
  "show_values": true,
  "padding": 24
}'
RESPONSE
200With response=binary: the file itself, with X-Image-Id and X-Image-Url headers
201Created
{
  "id": "img_3vq8kd2mzr7xw4hbnc6t",
  "object": "image",
  "status": "completed",
  "url": "https://img.imageapis.com/i/img_3vq8kd2mzr7xw4hbnc6t.svg",
  "format": "svg",
  "width": 800,
  "height": 400,
  "template": "chart",
  "bytes": 2259,
  "units": 1,
  "created": "2026-10-10T18:04:11Z",
  "completed": "2026-10-10T18:04:12Z",
  "expires": "2026-11-09T18:04:11Z"
}
202Accepted: rendering in the background; the record has status pending and the webhook gets the finished one
{
  "id": "img_3vq8kd2mzr7xw4hbnc6t",
  "object": "image",
  "status": "completed",
  "url": "https://img.imageapis.com/i/img_3vq8kd2mzr7xw4hbnc6t.svg",
  "format": "svg",
  "width": 800,
  "height": 400,
  "template": "chart",
  "bytes": 2259,
  "units": 1,
  "created": "2026-10-10T18:04:11Z",
  "completed": "2026-10-10T18:04:12Z",
  "expires": "2026-11-09T18:04:11Z"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Qr codes

POST/v1/qr-codes

A QR code for any text or URL, as SVG or PNG; no template needed

Encoded in the worker, up to 2,000 characters. format svg (the default) needs no browser and stays sharp at any print size; use png, jpeg or webp for email and anywhere else SVG does not show. ec trades density for damage tolerance. A QR code also fits inside a template as a qr layer. The record is an image: fetch it again with get_image.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "data": "https://imageapis.com",
  "size": 512,
  "ec": "M",
  "color": "#0b1220"
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/qr-codes" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "data": "https://imageapis.com",
  "size": 512,
  "ec": "M",
  "color": "#0b1220"
}'
RESPONSE
200With response=binary: the file itself, with X-Image-Id and X-Image-Url headers
201Created
{
  "id": "img_9pk4wz7tq2mxbc8hdn3e",
  "object": "image",
  "status": "completed",
  "url": "https://img.imageapis.com/i/img_9pk4wz7tq2mxbc8hdn3e.svg",
  "format": "svg",
  "width": 512,
  "height": 512,
  "template": "qr",
  "bytes": 2496,
  "units": 1,
  "created": "2026-10-10T18:04:11Z",
  "completed": "2026-10-10T18:04:12Z",
  "expires": "2026-11-09T18:04:11Z"
}
202Accepted: rendering in the background; the record has status pending and the webhook gets the finished one
{
  "id": "img_9pk4wz7tq2mxbc8hdn3e",
  "object": "image",
  "status": "completed",
  "url": "https://img.imageapis.com/i/img_9pk4wz7tq2mxbc8hdn3e.svg",
  "format": "svg",
  "width": 512,
  "height": 512,
  "template": "qr",
  "bytes": 2496,
  "units": 1,
  "created": "2026-10-10T18:04:11Z",
  "completed": "2026-10-10T18:04:12Z",
  "expires": "2026-11-09T18:04:11Z"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Pdfs

POST/v1/pdfs

Make a PDF from a template, HTML or a public URL

Costs one unit per page. A template without format prints at its own pixel size (96 px to the inch), one page; HTML and URLs paginate at the paper size you pick. For a print shop, give a template bleed (3mm is usual) and crop_marks: the canvas is the trim, edge-to-edge artwork carries on into the bleed, and hairline marks show where to cut.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "html": "<h1>Invoice #1042</h1><p>Total due: $420.00</p>",
  "format": "A4",
  "margin": "20mm"
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/pdfs" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "html": "<h1>Invoice #1042</h1><p>Total due: $420.00</p>",
  "format": "A4",
  "margin": "20mm"
}'
RESPONSE
200With response=binary: the file itself, with X-Image-Id and X-Image-Url headers
201Created
{
  "id": "pdf_2wq9tkz7hvbx4nmc8rde",
  "object": "pdf",
  "status": "completed",
  "url": "https://img.imageapis.com/i/pdf_2wq9tkz7hvbx4nmc8rde.pdf",
  "format": "pdf",
  "pages": 2,
  "bytes": 90412,
  "units": 2,
  "created": "2026-10-10T18:10:40Z",
  "completed": "2026-10-10T18:10:42Z",
  "expires": "2026-11-09T18:10:40Z"
}
202Accepted: rendering in the background; the record has status pending and the webhook gets the finished one
{
  "id": "pdf_2wq9tkz7hvbx4nmc8rde",
  "object": "pdf",
  "status": "completed",
  "url": "https://img.imageapis.com/i/pdf_2wq9tkz7hvbx4nmc8rde.pdf",
  "format": "pdf",
  "pages": 2,
  "bytes": 90412,
  "units": 2,
  "created": "2026-10-10T18:10:40Z",
  "completed": "2026-10-10T18:10:42Z",
  "expires": "2026-11-09T18:10:40Z"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

GET/v1/pdfs/{id}

Fetch a PDF's record

PARAMETERS
idpath · stringREQUIRED
The PDF id
e.g. pdf_2wq9tkz7hvbx4nmc8rde
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/pdfs/pdf_2wq9tkz7hvbx4nmc8rde" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "pdf_2wq9tkz7hvbx4nmc8rde",
  "object": "pdf",
  "status": "completed",
  "url": "https://img.imageapis.com/i/pdf_2wq9tkz7hvbx4nmc8rde.pdf",
  "format": "pdf",
  "pages": 2,
  "bytes": 90412,
  "units": 2,
  "created": "2026-10-10T18:10:40Z",
  "completed": "2026-10-10T18:10:42Z",
  "expires": "2026-11-09T18:10:40Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Screenshots

POST/v1/screenshots

Screenshot a public web page

Loads the page in a real browser and captures the viewport, the full page, or one element. Private and local addresses are refused.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "url": "https://apidirectory.com/",
  "width": 1280,
  "height": 800,
  "full_page": false,
  "hide": [
    ".cookie-banner"
  ]
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/screenshots" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://apidirectory.com/",
  "width": 1280,
  "height": 800,
  "full_page": false,
  "hide": [
    ".cookie-banner"
  ]
}'
RESPONSE
200With response=binary: the file itself, with X-Image-Id and X-Image-Url headers
201Created
{
  "id": "shot_9pxk3mz7dqwb2hnt4vce",
  "object": "screenshot",
  "status": "completed",
  "url": "https://img.imageapis.com/i/shot_9pxk3mz7dqwb2hnt4vce.png",
  "source_url": "https://apidirectory.com/",
  "final_url": "https://apidirectory.com/",
  "title": "APIDirectory",
  "http_status": 200,
  "format": "png",
  "width": 1280,
  "height": 800,
  "scale": 1,
  "bytes": 212044,
  "units": 1,
  "created": "2026-10-10T18:12:00Z",
  "completed": "2026-10-10T18:12:03Z",
  "expires": "2026-11-09T18:12:00Z"
}
202Accepted: rendering in the background; the record has status pending and the webhook gets the finished one
{
  "id": "shot_9pxk3mz7dqwb2hnt4vce",
  "object": "screenshot",
  "status": "completed",
  "url": "https://img.imageapis.com/i/shot_9pxk3mz7dqwb2hnt4vce.png",
  "source_url": "https://apidirectory.com/",
  "final_url": "https://apidirectory.com/",
  "title": "APIDirectory",
  "http_status": 200,
  "format": "png",
  "width": 1280,
  "height": 800,
  "scale": 1,
  "bytes": 212044,
  "units": 1,
  "created": "2026-10-10T18:12:00Z",
  "completed": "2026-10-10T18:12:03Z",
  "expires": "2026-11-09T18:12:00Z"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

GET/v1/screenshots/{id}

Fetch a screenshot's record

PARAMETERS
idpath · stringREQUIRED
The screenshot id
e.g. shot_9pxk3mz7dqwb2hnt4vce
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/screenshots/shot_9pxk3mz7dqwb2hnt4vce" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "shot_9pxk3mz7dqwb2hnt4vce",
  "object": "screenshot",
  "status": "completed",
  "url": "https://img.imageapis.com/i/shot_9pxk3mz7dqwb2hnt4vce.png",
  "source_url": "https://apidirectory.com/",
  "final_url": "https://apidirectory.com/",
  "title": "APIDirectory",
  "http_status": 200,
  "format": "png",
  "width": 1280,
  "height": 800,
  "scale": 1,
  "bytes": 212044,
  "units": 1,
  "created": "2026-10-10T18:12:00Z",
  "completed": "2026-10-10T18:12:03Z",
  "expires": "2026-11-09T18:12:00Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Signed bases

GET/v1/signed-bases

List this account's signed-URL bases

Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/signed-bases" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "signed_bases": [
    {
      "id": "sb_8mz2kq7xvtnw4hbc3dpe",
      "object": "signed_base",
      "name": "Blog cards",
      "template": null,
      "secret": "sbs_1f2e3d4c5b6a79880011223344556677889900aabbccddeeff00112233445566",
      "url": "https://img.imageapis.com/s/sb_8mz2kq7xvtnw4hbc3dpe/{template}.png?{query}&sig={signature}",
      "how_to_sign": "signature = hex(HMAC-SHA256(secret, '/s/sb_8mz2kq7xvtnw4hbc3dpe/tpl_4nq8vzk2hdyw7bxme3rc.png?title=Hello&exp=1760000000')); append &sig=… to the same URL",
      "created": "2026-10-10T18:20:00Z"
    }
  ]
}
401Missing or invalid API key (from the gateway)
429Plan ceiling or rate limit reached; see X-Gw-Reset (from the gateway)
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/v1/signed-bases

Create a signed-URL base: images that render on demand from a URL

Build image URLs in your own code, with no API call: https://img.imageapis.com/s/<base>/<template>.png?title=…&sig=<hmac>. Whoever fetches the URL triggers the render. <template> is a template id (the query fills its {{placeholders}}), og (the query is the card's fields), or chart or qr (the query is the POST /v1/charts or /v1/qr-codes body; colors comma-separated). The extension is the format: png, jpg or webp, and svg for chart and qr. Sign the path and query exactly as sent: hex HMAC-SHA256 with the base's secret. Add exp (unix seconds) to make a URL expire. Identical URLs come from cache for free; each new render costs one image on the key that created the base.

REQUEST BODY · APPLICATION/JSON
{
  "name": "Blog cards"
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/signed-bases" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Blog cards"
}'
RESPONSE
201Created
{
  "id": "sb_8mz2kq7xvtnw4hbc3dpe",
  "object": "signed_base",
  "name": "Blog cards",
  "template": null,
  "secret": "sbs_1f2e3d4c5b6a79880011223344556677889900aabbccddeeff00112233445566",
  "url": "https://img.imageapis.com/s/sb_8mz2kq7xvtnw4hbc3dpe/{template}.png?{query}&sig={signature}",
  "how_to_sign": "signature = hex(HMAC-SHA256(secret, '/s/sb_8mz2kq7xvtnw4hbc3dpe/tpl_4nq8vzk2hdyw7bxme3rc.png?title=Hello&exp=1760000000')); append &sig=… to the same URL",
  "created": "2026-10-10T18:20:00Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

DELETE/v1/signed-bases/{id}

Delete a signed-URL base; its URLs stop rendering

PARAMETERS
idpath · stringREQUIRED
The base id
e.g. sb_8mz2kq7xvtnw4hbc3dpe
Open on its own page
REQUEST
curl -X DELETE "https://api.imageapis.com/v1/signed-bases/sb_8mz2kq7xvtnw4hbc3dpe" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "sb_8mz2kq7xvtnw4hbc3dpe",
  "object": "signed_base",
  "deleted": true
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Fonts

GET/v1/fonts

Fonts available to text layers

Any Google Fonts family works by name; this list is the curated set with their weights. System fonts need no loading.

Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/fonts" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "fonts": [
    {
      "name": "Inter",
      "category": "sans-serif",
      "weights": "100..900"
    },
    {
      "name": "Playfair Display",
      "category": "serif",
      "weights": "400..900"
    }
  ],
  "system": [
    "Arial",
    "Georgia",
    "system-ui"
  ],
  "note": "Other Google Fonts families load at weight 400 when named"
}
401Missing or invalid API key (from the gateway)
429Plan ceiling or rate limit reached; see X-Gw-Reset (from the gateway)
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Icons

GET/v1/icons

Search the icons an icon layer can draw: Lucide, Tabler and Simple Icons brand logos

Every result's icon goes straight into an icon layer ({"type": "icon", "icon": "lucide:rocket", "color": "#fff"}). Names match on words: q=arrow right finds arrow-right, arrow-big-right and the rest; brand logos are in simple-icons (github, youtube, x, instagram). Without q the answer lists the sets and how many icons each has. url is the SVG the renderer uses.

PARAMETERS
qquery · string
Words in the icon's name
e.g. rocket
setquery · enum
Only this set
one of: lucide, tabler, tabler-filled, simple-icons
limitquery · integer
How many to return. Default 60
e.g. 60
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/icons" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "total": 3,
  "icons": [
    {
      "icon": "lucide:rocket",
      "set": "lucide",
      "name": "rocket",
      "url": "https://cdn.jsdelivr.net/npm/lucide-static@1.55.0/icons/rocket.svg"
    },
    {
      "icon": "tabler:rocket",
      "set": "tabler",
      "name": "rocket",
      "url": "https://cdn.jsdelivr.net/npm/@tabler/icons@3.49.0/icons/outline/rocket.svg"
    },
    {
      "icon": "tabler-filled:rocket",
      "set": "tabler-filled",
      "name": "rocket",
      "url": "https://cdn.jsdelivr.net/npm/@tabler/icons@3.49.0/icons/filled/rocket.svg"
    }
  ],
  "sets": [
    {
      "set": "lucide",
      "title": "Lucide",
      "style": "outline, 24 px grid, 2 px stroke",
      "license": "ISC",
      "version": "lucide-static@1.55.0",
      "count": 2141
    }
  ]
}
401Missing or invalid API key (from the gateway)
429Plan ceiling or rate limit reached; see X-Gw-Reset (from the gateway)
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Webhooks

GET/v1/webhooks

List this account's webhooks, with each one's last delivery

Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/webhooks" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "webhooks": [
    {
      "id": "hook_8m3kq2xv7zpw4rcn6bdt",
      "object": "webhook",
      "url": "https://example.com/hooks/imageapis",
      "events": [
        "render.completed",
        "video.completed"
      ],
      "description": "Post new images to the team channel",
      "created": "2026-10-11T18:20:00Z",
      "last_delivery": {
        "webhook": "hook_8m3kq2xv7zpw4rcn6bdt",
        "attempt": 1,
        "status": 200,
        "ms": 182,
        "at": "2026-10-11T18:24:09Z"
      }
    }
  ]
}
401Missing or invalid API key (from the gateway)
429Plan ceiling or rate limit reached; see X-Gw-Reset (from the gateway)
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/v1/webhooks

Subscribe a URL to this account's render, video and collection events

Every event in events (default: all) is POSTed to url as JSON: { id, event, created, image | screenshot | pdf | video | collection: the record }, signed in X-ImageAPIs-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with the secret>; the secret is in this response and in GET /v1/webhooks/{id}. Answer 2xx; 408, 429, 5xx and 10 s timeouts are retried after 1, 10 and 60 minutes; 410 Gone unsubscribes. render.* covers API images, screenshots, PDFs, OG cards, charts, QR codes and conversions (render.failed only with webhook_url); collection.completed fires even if some items failed. Collection items and signed-URL renders send no events. Up to 20 per account.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "url": "https://example.com/hooks/imageapis",
  "events": [
    "render.completed",
    "video.completed"
  ],
  "description": "Post new images to the team channel"
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/webhooks" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com/hooks/imageapis",
  "events": [
    "render.completed",
    "video.completed"
  ],
  "description": "Post new images to the team channel"
}'
RESPONSE
201Created
{
  "id": "hook_8m3kq2xv7zpw4rcn6bdt",
  "object": "webhook",
  "url": "https://example.com/hooks/imageapis",
  "events": [
    "render.completed",
    "video.completed"
  ],
  "description": "Post new images to the team channel",
  "secret": "whsec_5f0c1d9a7e2b4c6d8e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d",
  "created": "2026-10-11T18:20:00Z",
  "last_delivery": {
    "webhook": "hook_8m3kq2xv7zpw4rcn6bdt",
    "attempt": 1,
    "status": 200,
    "ms": 182,
    "at": "2026-10-11T18:24:09Z"
  }
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

GET/v1/webhooks/{id}

One webhook, with its signing secret

PARAMETERS
idpath · stringREQUIRED
The webhook id
e.g. hook_8m3kq2xv7zpw4rcn6bdt
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/webhooks/hook_8m3kq2xv7zpw4rcn6bdt" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "hook_8m3kq2xv7zpw4rcn6bdt",
  "object": "webhook",
  "url": "https://example.com/hooks/imageapis",
  "events": [
    "render.completed",
    "video.completed"
  ],
  "description": "Post new images to the team channel",
  "secret": "whsec_5f0c1d9a7e2b4c6d8e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d",
  "created": "2026-10-11T18:20:00Z",
  "last_delivery": {
    "webhook": "hook_8m3kq2xv7zpw4rcn6bdt",
    "attempt": 1,
    "status": 200,
    "ms": 182,
    "at": "2026-10-11T18:24:09Z"
  }
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

DELETE/v1/webhooks/{id}

Unsubscribe a webhook

PARAMETERS
idpath · stringREQUIRED
The webhook id
e.g. hook_8m3kq2xv7zpw4rcn6bdt
Open on its own page
REQUEST
curl -X DELETE "https://api.imageapis.com/v1/webhooks/hook_8m3kq2xv7zpw4rcn6bdt" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "hook_8m3kq2xv7zpw4rcn6bdt",
  "object": "webhook",
  "deleted": true
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

POST/v1/webhooks/{id}/test

Send a sample event to a webhook now and see what it answered

The sample record has test: true and costs nothing; event picks which kind (default render.completed). The response says whether the URL answered 2xx, its status (0 when it never answered) and how long it took.

PARAMETERS
idpath · stringREQUIRED
The webhook id
e.g. hook_8m3kq2xv7zpw4rcn6bdt
REQUEST BODY · APPLICATION/JSON
{
  "event": "video.completed"
}
Open on its own page
REQUEST
curl -X POST "https://api.imageapis.com/v1/webhooks/hook_8m3kq2xv7zpw4rcn6bdt/test" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "event": "video.completed"
}'
RESPONSE
200OK
{
  "webhook": "hook_8m3kq2xv7zpw4rcn6bdt",
  "url": "https://example.com/hooks/imageapis",
  "delivered": true,
  "status": 200,
  "ms": 164
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.

Events

GET/v1/events

This account's recent events, newest first, with how each delivery went

The last 50 events of the past 30 days, kept whether or not a webhook is subscribed: the same bodies a webhook receives, plus deliveries (each attempt's webhook, status and time). Filter with type.

PARAMETERS
typequery · enum
Only this event
one of: render.completed, render.failed, video.completed, video.failed, collection.completed, collection.failed
limitquery · integer
How many (default 10)
e.g. 10
Open on its own page
REQUEST
curl "https://api.imageapis.com/v1/events" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "events": [
    {
      "id": "evt_2c9hx4mbq7tw8zk3nvrd",
      "event": "render.completed",
      "created": "2026-10-11T18:24:09Z",
      "image": {
        "id": "img_7hk2mq9ztbw4e6nrcxpd",
        "object": "image",
        "status": "completed",
        "url": "https://img.imageapis.com/i/img_7hk2mq9ztbw4e6nrcxpd.png",
        "format": "png",
        "width": 1200,
        "height": 630,
        "template": "tpl_4nq8vzk2hdyw7bxme3rc",
        "bytes": 48213,
        "units": 1,
        "created": "2026-10-11T18:24:08Z",
        "completed": "2026-10-11T18:24:09Z",
        "expires": "2026-11-10T18:24:08Z"
      },
      "deliveries": [
        {
          "webhook": "hook_8m3kq2xv7zpw4rcn6bdt",
          "attempt": 1,
          "status": 200,
          "ms": 182,
          "at": "2026-10-11T18:24:09Z"
        }
      ]
    }
  ]
}
401Missing or invalid API key (from the gateway)
429Plan ceiling or rate limit reached; see X-Gw-Reset (from the gateway)
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.