Make media
start_media_jobAsk Lazybird's workers for a piece of media, or for a reading of one: a still, a clip that brings it to life, one of the account's avatars speaking a piece of audio, a song with words, or what is spoken in a file. The job is made in the background: this answers with it the moment it is queued, and get_jobs says where it got to. A render takes minutes — tell the user it is on its way and come back to it, rather than asking again in a loop. kind, and the input it takes; what comes before the semicolon is needed, the rest is optional:
video: a clip from the words, or from the picture they bring to life — prompt; imageUrl (the frame it opens on; without one the words alone make it, on width+height's shape, 16:9 otherwise), seconds (1 to 60, its pinned audio's length or 5 otherwise; a clip with pinnedAudioUrl, speech, lastFrameUrl or pinnedFrames runs at most 10), lastFrameUrl, pinnedAudioUrl, speech (speech the account already made, as {projectId, blockIds} — the blocks' own takes, in the project's timeline order and with its silences between; instead of pinnedAudioUrl), pinnedFrames, sound, resolution (480p, 720p by default, or 1080p — the 720p render upscaled; the short side, on the clip's own shape), model (h3 by default, sharper detail and smoother motion; h3-lite quicker and cheaper), addons (each {name}: {name: motion} for people moving naturally through spins, turns and full-body action; {name: dance} for dancing; {name: realism} for a real photo's natural skin and candid look instead of the glossy one; any of them together). Video credits a second: 0.5 at 480p, 1 at 720p, 1 at 1080p on h3; 0.25 at 480p, 0.5 at 720p, 0.5 at 1080p on h3-lite.
avatar: one of the account's avatars speaking a piece of audio — avatarId, and what it says: text (voiced in voiceId, or the avatar's own voice; charged as speech), audioUrl, or speech as {projectId, blockIds} naming the account's own speech blocks (their takes, laid out as the project's timeline has them, made first if they still need making); firstFrame, the shot it opens on (one of the avatar's stills, at random, when left out) — {stillId} for one of the avatar's stills (it then takes turns with the others), {imageUrl} for a picture of the same person (it stays on it), or {jobId} for an earlier avatar or video job, carrying on from its last frame (output.lastFrameUrl); instructions, up to 50 acting directions {instruction, seconds or start+end, words?} — words being what is said as it happens; pinnedFrames, up to 16 stretches {start, end, stillId or imageUrl?, instruction?, words?}, none overlapping or over 10 seconds, cut there and brought back to that frame (the opening shot otherwise) at both ends; resolution (480p, 720p by default, or 1080p — the short side, on the opening shot's own shape); addons ([{name: realism}]). Video credits a second: 0.5 at 480p, 1 at 720p, 2 at 1080p; it runs as long as what it says.
image: a still — prompt; imageUrls (up to 4, in the order the prompt calls them 'image 1', 'picture 2'), width+height (768x1024 otherwise), addons ([{name: realism}]). 3 video credits.
music: a song from a style and words — style, lyrics (up to about 7 minutes sung; the sections set its length — written for the user, a verse and a chorus, about 30 seconds, unless they ask for more); instrumental (no vocals: lyrics optional, [verse]/[chorus] tags alone set the form); voiceId (a voice the account can use, sung in that voice; not with instrumental). The credits speech uses, up to 300 seconds.
transcript: what is spoken in a file, with every word's time — audioUrl; language, timestamps (the words are timed unless this is false). Free.
timings: word timings for text you already have — audioUrl, text; language. Free.
faces: the faces in a picture — imageUrl. Free.
safety: whether a picture is safe to show — imageUrl. Free.
language: the languages heard in a file, best first — audioUrl. Free. Videos, avatar clips and images are screened before they are queued, with the pictures they are handed: one asked for against our content policy is refused with a 400 whose details carry code content_policy. Every ...Url is a public link the workers fetch. An avatar job names an avatar made with create_avatar; it opens on one of that avatar's stills at random, and its firstFrame may open it on a chosen still, another picture of the same person, or an earlier clip's last frame ({jobId}), and its instructions and pinnedFrames direct the acting. A finished job's output has the file it made (and a clip's lastFrameUrl, for the next one to carry on from), or what its reading found.
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": {
"kind": "<kind>",
"input": "<input>"
},
"name": "start_media_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | The work to do | |
| input | Yes | What that kind is asked for with |