Make a trend video or photo
run_templateMake a MakeViral trend video or photo from the user's photos. It spends the version's credits from the user's MakeViral account (a failed run gives them all back). A photo is usually ready in this call and the result has the link. A video takes a few minutes: then call get_run with wait true until it is ready, and give the user the link. Before calling: 1) pick the template and version with get_template, 2) tell the user the price in credits, 3) ask for exactly the photos that version needs, in its order, 4) ask the user to confirm the people in the photos are them or people who agreed, and that no one in them is a child. Photos: pass the files the user attached in this chat as photos, OR public image links as photoUrls, OR an uploadId from create_upload_link when the user cannot attach files here. Never use photos of a public figure or of someone who did not agree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Optional 'make it yours' values by field id (get_template lists them) | |
| object | No | Knight sword swap only: the object one knight hands the other | |
| photos | No | The user's photos attached in the chat, in the version's photo order | |
| quality | No | Quality option id from get_template. Default: the template's default option (listed first). | |
| version | No | Version id from get_template. Default 'main'. | |
| template | Yes | Template slug, e.g. 'knight-cat-ai-video' | |
| uploadId | No | The id from create_upload_link, after the user added the photos there | |
| photoUrls | No | Public https links to the photos (JPEG, PNG or WebP), in the version's photo order | |
| requestId | No | Optional id (8-64 letters, digits, - or _). The same id never charges twice. Without it, the same request within 10 minutes returns the first run; pass a new id to make it again with the same photos. | |
| photosConsent | Yes | true only after the user confirmed that everyone in the photos is the user or agreed to it, and that no one is a child |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes |