Skip to content
Docs33 language and platform guides

Image Generation API Docs

One POST, and the finished image comes back in the response as PNG, JPEG, WebP or PDF. No webhooks, no polling. Set your key and a design ID, then run any snippet.

Every snippet here is the code our test harness runs against the live render service.

import os

import requests

API_KEY = os.environ["IMEJIS_API_KEY"]
DESIGN_ID = os.environ["IMEJIS_DESIGN_ID"]
BASE = os.environ.get("IMEJIS_RENDER_URL", "https://render.imejis.io")
HEADERS = {"dma-api-key": API_KEY, "Content-Type": "application/json"}

# Render one image. The response body IS the image — no polling, no webhook.
response = requests.post(
    f"{BASE}/v1/{DESIGN_ID}",
    headers=HEADERS,
    json={
        "headline.text": "Hello from Python",
        "subtitle.text": "Rendered in one request",
    },
)
response.raise_for_status()
with open("output.jpg", "wb") as f:
    f.write(response.content)
print("single:", response.status_code, len(response.content), "bytes")

A guide for your stack.

Copy-paste guides for each language, framework and no-code tool.

Also useful

Components

Know what you can put in a design.

Text, images, charts, QR codes, tables and more, each with its properties and sample JSON.

Browse the component library
AI agents

Let an AI agent drive it.

Connect Claude, ChatGPT, Gemini, Cursor or Google Antigravity over MCP. Your agent designs the template and gets the finished image back in one call.

Explore the MCP server

Learn about image generation APIs.

API questions.

Stuck? Visit the help center or write to us.

What is an image generation API?

An image generation API renders finished images from a design template and your data over HTTP. You design a template once, then send your values — text, numbers, images — to a single endpoint and get the image back, with no design tool and no manual export.

How do I generate an image with the API?

Send a POST request to the render endpoint with your API key in the dma-api-key header and a JSON body mapping template fields to your data. imejis returns the finished PNG, JPEG, WebP or PDF directly in the response — not a URL to poll.

Which programming languages can I use?

Any language that can make an HTTP request. imejis has copy-paste guides for cURL, Node.js, Python, Go, Ruby, PHP, Java, C# and more.

What does the image generation API cost?

The free plan includes 100 renders a month with no credit card. Paid plans add more renders, premium templates (every paid plan) and the MCP server (every plan). See the pricing page for each plan's limits.

Can the API return a PDF?

Yes, as one of the output formats: add format=pdf and the render comes back as a PDF at the design's canvas size. It is a single page. A multi-page document is one render per page plus your own assembly step, so if a bound document is the product itself, a document engine is the better fit.

Can an AI agent use the API?

Yes. imejis also runs a remote MCP server, so Claude, ChatGPT, Gemini, Cursor or Google Antigravity can design a template and render an image directly over the Model Context Protocol.

Your first render is one request away.

100 renders a month free with imejis, no card needed