Skip to content
jsontoimg
Start free

Generate

Image Generation

POST /api/v1/render with format set to png (default), jpg, webp, or avif. jpeg is accepted as an alias of jpg.

curl -X POST "$JSONTOIMG_BASE_URL/api/v1/render?wait=60" \
  -H "Authorization: Bearer $JSONTOIMG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"template":"<design-id>","format":"png","layers":{"headline":{"text":"Hello"}}}'
Field Notes
format png | jpg | webp | avif
scale Default 1
transparent Default false; only with png, webp, or avif
layers Layer name → overrides (text, colors, image URLs)
webhookUrl Optional webhook when the job finishes

Use ?wait=60 or Wait and SSE. Queue many jobs with batch.

For <img> and Open Graph tags that cannot send an API key, use URL rendering.

Try the request in the API reference.