markitup_regen
Regenerate a single marketing image variation from a previous generation, preserving the source image and text content. Select which slot to recreate using variation index.
Instructions
Regenerate a single variation from a previous markitup_generate call with the same source image and template. Costs 1 credit if charge_credit=true. Pass back the source image (as URL or base64) AND the text analysis object returned in the previous generate's structuredContent.text — the regen uses the same headline/copy so visuals stay consistent. Use variation_index to choose which slot (0–2) to regenerate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_image_url | No | Public HTTPS URL of the same source image used in the original markitup_generate. | |
| source_image_base64 | No | Base64-encoded source image (no data: prefix). Mutually exclusive with source_image_url. | |
| source_image_mime_type | No | MIME type when supplying source_image_base64. Defaults to image/png. | image/png |
| template_id | Yes | Same template_id used in the original generate. | |
| text_analysis | Yes | The 'text' object from the previous generate's structuredContent — includes headline, subHeadline, marketingCopy. | |
| variation_index | No | Which slot (0, 1, or 2) to regenerate. Default 0. | |
| aspect_ratio | No | ||
| image_size | No | ||
| charge_credit | No | If true, deduct 1 credit. Defaults to true. |