Run a Marketing Agent style
run_marketing_styleStarts a Marketing Agent style on the user's product photo and reserves its credits (refunded in full if it fails). Files must be the user's own uploads (create_upload or import_image). An avatar is a real person: ask whether they agreed and pass consent true; UGC with an avatar also needs consent_id: give the script in wish and call request_consent for lip_sync first (a refusal says how). Pass max_credits (the price you showed, per run) and a new idempotency_key per intended run. count 1–4 starts separate jobs for styles with batch. UGC is one video job: the person (avatar photo or a Tevyon character) holds the product and says the script in wish, word for word, in a Tevyon voice; its length and price follow the script. Without wish Tevyon writes a short script (hook, benefit, call to action, about 10 s) from the product photo and returns it as script.
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": {
"style_id": "<style_id>",
"idempotency_key": "<idempotency_key>"
},
"name": "run_marketing_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| look | No | Own styles (own: true): the scene, light and mood in the user's words; ad_reference can add a picture to follow. | |
| wish | No | Scene wish, the lettering for text styles (required where textRequired: the user's exact words, never invented), a description for posters without photo, or the spoken script for UGC (up to 220 characters, about 15 s; leave it out and Tevyon writes one). | |
| count | No | ||
| voice | No | UGC: a Tevyon voice id that says the script (women v-11 … v-20, men v-01 … v-10). Left out: a voice that fits the person (a character's own, or read from the avatar photo), returned as voice. | |
| aspect | No | One of the style's aspects. | |
| avatar | No | Path of a photo of the person (styles with avatar). | |
| consent | No | true only if the person in avatar agreed. | |
| product | No | Path of the product photo (/api/media/uploads/…). | |
| duration | No | Seconds, for video styles within the style's duration. | |
| style_id | Yes | From list_marketing_styles. | |
| character | No | UGC: a Tevyon character id (fig-01 … fig-48) instead of an avatar photo; needs no consent. | |
| subtitles | No | UGC: the script as captions in the video, timed to the speech (free; recommended, most feeds play muted; off when left out). | |
| consent_id | No | UGC with an avatar: the consent_id from request_consent for lip_sync (references [avatar], the script of wish), after the user confirmed in Tevyon. | |
| max_credits | No | The credits of one run you showed. Nothing starts if it now costs more. | |
| ad_reference | No | Path of an ad whose layout and look to follow (styles with adReference). | |
| wait_seconds | No | Seconds to wait for the job to finish (0 to 50). | |
| idempotency_key | Yes |