Make a template with the user's product
recreate_templateMake one of PopNow's marketing templates with the user's own product: the same look, model and quality as the sample, with their product (and avatar or line where the template takes one). Pick the template with list_studio_templates studio marketing. Always call it first without max_credits: it returns the exact total and a confirmation id. Tell the user the total and wait for a clear yes, then call it again with the same arguments plus max_credits (that total) and confirmation (that id). Nothing is charged without both; if anything changes in between, ask again with the new quote. Failed pieces are refunded. Then call get_template_run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"template_id": "<template_id>",
"product_image_urls": "<product_image_urls>"
},
"name": "recreate_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Only for templates that take a line (headline, callouts or what the person says), kept word for word, up to the template's limit. | |
| count | No | Only for image templates that list count as changeable: 1 to 4 images. | |
| consent | No | Needed with an avatar photo the user brought. Set true only after the user confirms the person in it is them or agreed to it, is 18 or over, and it won't be used to mislead anyone, including about who someone is, or for anything unlawful. | |
| project_id | No | Optional: one of the user's own marketing projects on popnow.ai (b_mkt_…) to keep the finished pieces in. Other people's projects are refused. | |
| resolution | No | Only if the template lists resolution as changeable: 480p, 720p or 1080p for video. | |
| max_credits | No | Required to start: the quoted total the user agreed to. Leave it out to get the quote; nothing is charged without it. | |
| template_id | Yes | The template id from list_studio_templates with studio marketing (only the ones marked recreate_template). | |
| aspect_ratio | No | Only if the template lists aspect as changeable. | |
| confirmation | No | Required to start, together with max_credits: the confirmation id from the quote, passed back exactly. It only covers this template, these photos and text and that total. | |
| product_name | No | What the product is called, up to 80 characters. | |
| avatar_image_url | No | Only for templates with an avatar: a photo of the person who appears (popnow:// link), or one of PopNow's own avatars. | |
| product_image_urls | Yes | 1 to 4 photos of the one product, front first: popnow:// links from get_upload, import_product or list_products. Other links are not accepted; use request_upload for files from the user. |