Generates an image based on a template and modifications
x-api-key header.
| Field | Type | Required | Description |
|---|---|---|---|
| template_id | string | Yes | The ID of the template to use for generation |
| modifications | array | Yes | Array of modifications to apply to template elements |
| modifications[].name | string | Yes | The name of the element to modify (must match an element in the template) |
| modifications[].text | string | null | No | New text content for text elements. Set to null to reset to default. |
| modifications[].color | string | null | No | New color value for text, SVG, and shape elements. Set to null to reset to default. |
| modifications[].background | string | null | No | New background color for elements that support it. Set to null to reset to default. |
| modifications[].image_url | string | null | No | New image URL for image and SVG elements. Set to null to reset to default. |
| modifications[].rating | number | No | New rating value for star rating elements (typically 1-5) |
| Element Type | Modifiable Properties |
|---|---|
| text | text, color |
| image | image_url |
| svg | image_url, color |
| starRating | rating |
| rectangle, circle, ellipse, star, triangle, diamond, pentagon, hexagon, heart, semicircle, cross, arrow, trapezoid, wedge, ring | color |
Template and modifications for image generation