Apply an effect
apply_effectRun an effect from list_effects on pictures or a video, with Tesseract (charged to the signed-in account). Returns a job_id; call check_job until it is done.
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": {
"effect_id": "<effect_id>"
},
"name": "apply_effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | One of the effect's looks (its `styles`). | |
| video | No | A public https:// URL of the source video, for an effect that needs one. | |
| images | No | The pictures it needs, in order (for a duo: [you, the other person]). | |
| prompt | No | Extra direction, for effects that take words. | |
| max_usd | No | The most this may cost, in US dollars: a dearer job is not started. | |
| seconds | No | A transition only: its length. | |
| effect_id | Yes | The effect id from list_effects (e.g. "ai-hug"). | |
| rights_ok | No | With a source video of someone else's: true only when the person says the video and its sound belong to their makers, and the result is for their own use unless they hold the rights. | |
| aspect_ratio | No | A transition only: its shape. | |
| likeness_consent | No | Only when the person asked for it themselves, about who is shown: "self" (them), "consented" (an adult who agreed to it) or "made-up" (a made-up person) — and only when nobody shown is under 18 or a public figure, and there is no nudity or sexual content. Needed by the effects that put a person in, talking or lip-synced people, headshots and try-ons. |