GENERATE

Image Generation

Render templates as PNG, JPG, WebP, or AVIF.

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"}}}'
FieldNotes
formatpng | jpg | webp | avif
scaleDefault 1
transparentDefault false; only with png, webp, or avif
layersLayer name → overrides (text, colors, image URLs)
webhookUrlOptional 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.