Skip to the main content

The Lab: every model, one balance

Every image, video and audio model in one API. A job holds its quote, is billed from the provider’s receipt, and the rest comes back.

Models and prices

GET /models lists all 158 models with their list price by tier: per second of video, per image, per 1,000 characters of speech, per minute of audio to transcribe, or per music track. Speech models also list their stock voices, and whether they clone a voice (voiceCloning) or voice a dialogue (multiSpeaker). It needs no key. One credit is $0.001, so1,000 credits are $1. POST /models/quote prices one job: usd is the price, providerUsd the list price andcredits the price in credits, rounded up. Where a provider charges for the pictures a job sends, price.imageInputUsd is the price of one, and a run’s quote adds it once for each reference, frame and picture to edit. For a model that bills pictures by token, it is the token price times a high token count per picture.

Request

curl "https://looptake.com/api/v1/models?kind=video&tag=dialogue"

Runs

POST /lab/runs runs one prompt on one to six models of one kind: image, video, edit, upscale, avatar, speech, voice or music,dub, lipsync, resync,caption, remix, faceswap, or an image tool. Each model is one item. Theclip tools run no model. Send the final prompt text: render the Director fields, the look and the camera moves into it first. One tier applies to every model that offers it; the others use their default. Edit and upscale take the source clip insourceVideoUrl and its length in seconds. The call returns202; poll GET /lab/runs/{id} until every item issucceeded or failed. Outputs are in Looptake’s own storage.

Request

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "video",
    "prompt": "Phone footage at night: a raccoon behind a café counter sighs at the camera.",
    "models": ["bytedance/seedance-2.5", "bytedance/seedance-2.0-fast"],
    "draft": true,
    "seconds": 4,
    "aspectRatio": "9:16"
  }'

Poll

curl "https://looptake.com/api/v1/lab/runs/5d8f2c1a-7b3e-4c9d-8e1f-2a3b4c5d6e7f" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY"

A team runs 3 items at once. Top-ups in the last 28 days raise that to 10 from $20, 25 from $100 and 50 from $500. Items past the limit wait as queuedand start in the order they were created as running items finish. Only a team with 100 items queued or running gets 429 with Retry-After.

Billing

Each item holds 1.5 times its quote before it runs: token billing and minimum billing on short clips can put the receipt above the list price. When the item finishes it is billed from the provider’s receipt, rounded up to a whole credit and at most the hold, and the rest is refunded at once. A failed item refunds everything. A balance short of the whole run is402, and nothing is charged. The webhook lab.item.finished fires for each item that succeeds.

Draft and Finish

draft: true runs each model at its cheapest tier. POST /lab/items/{id}/finish re-runs a succeeded item at the model’s highest tier, or attier, with the same prompt, seed and references. With upscale: true it sends the clip to the upscale model instead. A finish is a new run with one item.

A seed is 0 to 2147483647. A run with no seed gets a random one in that range. The run keeps it, and so does each item whose model takes a seed.

Request

curl -X POST "https://looptake.com/api/v1/lab/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/finish" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{}'

Only image and video takes can be finished. A speech, voice, music, dub, lipsync, re-sync, caption, remix or face swap item answers 409.

History, likes and downloads

GET /lab/runs lists a workspace’s runs, newest first. It filters bykind (several, separated by commas), model, from andto, failed, liked, downloaded andsearch on the prompt. pagination.total counts the runs that pass the filters. Send pagination.nextCursor back as cursor for the next page: runs that start while you page do not move it. It is null on the last page.

Request

curl "https://looptake.com/api/v1/lab/runs?kind=lipsync,avatar&liked=true&failed=false&search=raccoon&limit=24" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY"

PATCH /lab/items/{id} marks a succeeded item. liked sets or clears the mark, and the item’s copies in the asset library take it too. downloaded: truestamps downloadedAt. An item that has not succeeded answers 409.

Request

curl -X PATCH "https://looptake.com/api/v1/lab/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"liked": true}'

In the app, “Use in” opens another Lab tool with a take or a library file in it, through a link such as /app/lab?mode=caption&as=source&src=…. src must be an http or https URL. An as the tool does not take is ignored.

Share links and embeds

POST /lab/items/{id}/share makes a public link to a succeeded take, andPOST /assets/{id}/share one to an image, video or audio asset. An item has no link until somebody shares it. url opens a page with the file, its title and its model, and the prompt when showPrompt is true. embedUrl is a player for an iframe. The page carries Open Graph, Twitter card and oEmbed tags, so a post that holds the link shows a player, and /oembed?url= answers oEmbed JSON.

Request

curl -X POST "https://looptake.com/api/v1/lab/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/share" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "title": "Fox in the snow", "showPrompt": true }'

Sharing again keeps the link and changes its title or prompt setting. GET on the same path reads the link, or null. DELETE revokes it: the page and the player answer 404 at once, and the address never works again. Pages are not indexed, and a browser keeps one for at most 60 seconds. A key needs generations:write to share a take and assets:write to share an asset, so a reviewer can read a link but not make one.

Speech, voice change and music

kind: "speech" speaks prompt with one to six speech models.voice picks a stock voice that a model lists, and voices picks one per model. instructions sets tone, pace and emotion on models whoseparams has instructions. voiceUrl clones a voice from 10 to 30 seconds of one speaker, in place of a stock voice, on models withvoiceCloning. turnsvoices a dialogue of 2 to 40 turns, on models with multiSpeaker. On a model that lists no stock voices, every turn needs a voice, as its provider names them.

Request

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "speech",
    "prompt": "Fresh beans every morning, two blocks from the station.",
    "models": ["elevenlabs/eleven-v4", "fish-audio/s2.1-pro"],
    "voices": {"elevenlabs/eleven-v4": "sarah"},
    "instructions": "Warm and unhurried."
  }'

kind: "voice" speaks a recording or a clip again in another voice. Send the source in sourceAudioUrl or sourceVideoUrl, with its length inseconds, up to 300. openai/whisper-large-v3-turbo transcribes it, then each speech model speaks each segment again, fitted to its time slot.

kind: "music" makes a track from prompt on one or two music models.style, bpm (40 to 240), key and seed steer it. seconds must be a length the model lists, when it lists any.

Speech and music give one MP3 per item. A voice change of a recording gives one MP3; of a clip, it gives the clip with its voice track replaced, plus the new track as an MP3.

Speech is quoted per character of the text and the instructions. A voice change is quoted as the transcription plus 15 characters of speech per second of source, and music from the list price per track. Each item is held at 1.5 times its quote. Voice change and music quotes are estimates: the item is billed from the sum of its receipts, up to the hold, and the rest is refunded.

Language swap

Language swap, kind: "dub", speaks a clip or a recording in other languages. It takes one speech model and makes one item per tag in languages, 1 to 6. Send the source insourceVideoUrl or sourceAudioUrl, with its length inseconds, up to 300. sourceLanguage is detected when you do not set it.

Each item runs openai/whisper-large-v3-turbo. Then the chat model translates each segment to fit its time slot, and the speech model speaks it. Each line is fitted with tempo between 0.85x and 1.25x and mixed over the original track, which plays at about -18 dB.cloneVoice speaks in the original speaker’s voice, cloned from a clean slice of the source. It is on by default when the model has voiceCloning and novoice is set. subtitles: true burns subtitles in the target language into a clip.

Request

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "dub",
    "models": ["elevenlabs/eleven-v4"],
    "sourceVideoUrl": "https://example.com/launch.mp4",
    "seconds": 60,
    "languages": ["es-ES", "de", "ja"],
    "subtitles": true
  }'

A clip comes back with its voice track replaced, plus the new track as an MP3. A recording comes back as one MP3. The quote is the transcription, $0.005 per started minute of translation, and 15 characters of speech per second of source. A60-second dub on Eleven v4 quotes $0.093(94 credits) per language and holds140 credits. The item is billed from the sum of its receipts (transcription, chat model and every speech call), up to the hold.

resyncLips: true also moves the speaker’s lips to each language. One frame of the clip, picked as for a lip re-sync, is re-animated to the dubbed voice with Avatar IV, then the dubbed track and any subtitles go on. The head, face and hands move; the clothes and background come from that frame. It needs a clip of one person talking, up to 120 seconds: with two people talking, the one face in the frame speaks every line. The quote adds Avatar IV per second of the clip to each language.

Lipsync

Lipsync, kind: "lipsync", makes a portrait speak a recording. Send the portrait infirstFrame (one face, looking at the camera), the recording inaudioUrl, and its length in seconds, 1 to 120. It runs on models taggedlipsync: Avatar IV. prompt directs the motion, such as “Talk to the camera, small natural nods.” Without one, a short default is used.aspectRatio and tier work as on a video run.

Request

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "lipsync",
    "models": ["heygen/avatar-iv"],
    "firstFrame": "https://example.com/portrait.jpg",
    "audioUrl": "https://example.com/voice.mp3",
    "seconds": 12,
    "aspectRatio": "9:16"
  }'

Each item gives one video, as long as the recording. It is quoted per second at the tier, as an avatar, held at 1.5 times the quote, and billed from the receipt.

In place of a recording, send script, up to 1,800 characters.speechModel says it first, elevenlabs/eleven-v4 by default, invoice, a stock voice that model lists (default: its first). The length is then the time the script takes to say, one second per 15 characters, soseconds may be left out. The item also gives the spoken script as an MP3, and its quote adds the speech per character.

Lip re-sync

Lip re-sync, kind: "resync", gives a clip new speech. Looptake takes one frame of the clip, and a lip-sync model re-animates that frame to the speech. The head and face move with the speech, and the hands can move too. The clothes and the background come from that frame. The clip’s own motion is not kept, and a product in the hand can move and lose detail. It suits a clip of one person facing the camera.

Send the clip in sourceVideoUrl and its length in seconds, 1 to 120. Send the speech as audioUrl with its length in audioSeconds, 1 to 120, or as script with speechModel and voice, as for a lipsync. frameSeconds picks the frame by its time in the clip. Without it, Looptake samples two frames a second with ffmpeg and takes the sharpest of those with the most face-coloured area near the centre. No model looks for the face, so check the frame.models takes one model tagged lipsync and defaults toheygen/avatar-iv; prompt directs the motion.

Request

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "resync",
    "sourceVideoUrl": "https://example.com/review.mp4",
    "seconds": 8,
    "script": "Three drops at night. By morning my skin feels calm.",
    "voice": "sarah"
  }'

The item gives one video, as long as the speech, at the model’s ratio closest to the clip’s, and the spoken script as an MP3 when there is one. Its params gainframeSeconds and frameUrl: the frame that was animated. The quote is the model per second of speech plus the script’s speech; picking the frame costs nothing. 8 seconds on Avatar IV quote$0.48 (480 credits) before the speech.

Captions

kind: "caption" burns subtitles into a clip. Send the clip insourceVideoUrl and its length in seconds, up to 300. The one transcriber in models, such as openai/whisper-large-v3-turbo, must be tagged timestamps: it hears each word’s time. The words are cut into short lines and burned in the captions look.

  • style: highlight (the spoken word in the accent),pop (words appear one at a time), bounce (the line rises in, the spoken word grows), typewriter (letters appear as they are said),outline, box, glass, gradient,neon or minimal.
  • position: bottom, middle or top.
  • size: s, m or l.
  • color and accent: #rrggbb. Each style has its own defaults.

Request

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "caption",
    "models": ["openai/whisper-large-v3-turbo"],
    "sourceVideoUrl": "https://example.com/talk.mp4",
    "seconds": 40,
    "captions": {"style": "pop", "position": "bottom", "size": "m", "color": "#ffffff", "accent": "#ff4fa3"}
  }'

The item gives the captioned clip and keeps what it heard as transcript:{language, lines: [{start, end, text, words}]}, times in seconds. Edit the lines and send them back as lines to burn them again. A run withlines calls no model and costs nothing. Lines are in order, do not overlap, and hold at most 200 characters.

Burn edited lines

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "caption",
    "models": ["openai/whisper-large-v3-turbo"],
    "sourceVideoUrl": "https://example.com/talk.mp4",
    "seconds": 40,
    "captions": {"style": "box"},
    "lines": [
      {"start": 0.2, "end": 1.2, "text": "Hello there."},
      {"start": 1.5, "end": 3.8, "text": "This is a test."}
    ]
  }'

A transcription is quoted per minute of the clip from the transcriber’s rate, held at1.5 times the quote, and billed from the receipt.

Remix

kind: "remix" remakes a clip on models tagged remix:Wan 3.0, Seedance 2.0 Mini, FLUX Video Edit. Send the clip in sourceVideoUrl and its length inseconds, up to 30 and no longer than every model makes. The models fetch the clip and the picture, so both must be public URLs.

  • mode: "motion": the character in references (one picture) performs the clip’s moves. Video models only. prompt adds direction.
  • mode: "swap": prompt says what to put in the clip, such as “Replace the cup with a lemon.” With a picture in references the new thing looks like it, on video models only. Without one, an edit model such as FLUX Video Edit works too.

Request

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "remix",
    "mode": "motion",
    "models": ["alibaba/wan-3.0", "bytedance/seedance-2.0-mini"],
    "sourceVideoUrl": "https://example.com/dance.mp4",
    "references": ["https://example.com/capybara.jpg"],
    "seconds": 6,
    "tier": "480p"
  }'

A video model makes a clip as long as the source at the ratio closest to it, and the source’s sound goes back on. A remix is quoted from the tier’s rate for the seconds made plus the seconds read: a 6-second motion remix on Wan 3.0 at 480p quotes$0.72 (720 credits) and holds1080. An edit model is quoted for the seconds read. Each item is billed from the receipt.

Seedance refuses a picture or clip that may show a real person; use a stylized or non-human character, or Wan 3.0. Models also refuse known characters and brands. A refused item fails with the reason and is refunded in full.

Face swap

kind: "faceswap" puts the face in references (one picture) on the person in the clip, on models tagged faceswap: Wan 3.0. It needs consent: true, your word that “I have the right to use this face. I will not use it to impersonate or mislead anyone.” The run keeps it in params.consent with the time you gave it.

Request

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "faceswap",
    "models": ["alibaba/wan-3.0"],
    "sourceVideoUrl": "https://example.com/review.mp4",
    "references": ["https://example.com/face.jpg"],
    "seconds": 8,
    "tier": "480p",
    "consent": true
  }'

The clip keeps its own sound. It is quoted, held and billed like a remix.

Clip tools

Six kinds edit a clip with ffmpeg on Looptake’s workers and call no model. Each run is one item, quoted and charged 0 credits, and it runs on an empty balance too. Leave outmodels. Send the clip in sourceVideoUrl and its length inseconds, up to 300. Each gives one clip as H.264 and AAC in an MP4.

  • trim: keeps start to end, in seconds. A cut is at least 0.5 seconds.
  • reframe: aspectRatio 9:16 (1080x1920), 1:1(1080x1080), 4:5 (1080x1350) or 16:9 (1920x1080).fit: "crop" (the default) cuts the frame out of the clip atposition, from 0 (the left edge) to 1 (the right). fit: "pad" shows the whole clip over a blurred copy of itself.
  • sound: mode: "extract" gives the sound as an MP3;mode: "remove" gives the clip with no sound.
  • speed: speed from 0.5 to 2. The sound keeps its pitch.
  • grade: preset warm, cool,mono, noir, faded, contrast,vivid or vhs.
  • join: 2 to 10 URLs in clips, played in order, withseconds as their length together. Every clip is fitted to the first one’s shape, at most 1920 by 1080, at 30 fps. audioUrl mixes a music or voice track under the clips’ sound at half volume, or at full volume when no clip has sound, and stops with the last clip.

Trim

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "trim",
    "sourceVideoUrl": "https://example.com/review.mp4",
    "seconds": 42,
    "start": 3.5,
    "end": 18
  }'

Join

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "join",
    "clips": ["https://example.com/hook.mp4", "https://example.com/demo.mp4", "https://example.com/cta.mp4"],
    "seconds": 27,
    "audioUrl": "https://example.com/track.mp3"
  }'

A team may start 20 clip tool runs in 5 minutes. The 21st gets 429 withRetry-After. A clip longer than seconds fails the item.

Image tools

Three kinds send the picture in sourceImageUrl to image models that take a reference, with a fixed instruction. models takes one to six; left out, each kind runs on its default. The model fetches the picture, so it must be a public URL. Each item gives one picture, quoted as one image at the model’s tier plus the one picture it sends, and billed from the receipt.

  • cutout removes the background and gives a PNG with transparency. The default isNano Banana 2.1: it puts the subject on flat green, which is keyed out, and keeps the subject as it is. GPT Image 2.5 Flare, GPT Image 2.5 Sunburst, GPT-5 Image, GPT-5 Image Mini, GPT-5.4 Image 2, GPT Image 1, GPT Image 1 Mini, GPT Image 2, Riverflow V2.5 Fast, Riverflow V2.5 Pro, Riverflow V2.6 Pro make a transparent background themselves, but redraw the subject. A cutout with no clear pixels fails and is refunded.
  • relight changes the light and keeps the rest. Send preset(golden-hour, softbox, neon, overcast orcandle), the light in your words in prompt, or both. The default isNano Banana 2.1.
  • expand extends the picture to the frame in aspectRatio, which every model must offer. prompt says what fills the new area. The default isNano Banana 2.1.

Cutout

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "cutout",
    "sourceImageUrl": "https://example.com/bottle.jpg"
  }'

Relight

curl -X POST "https://looptake.com/api/v1/lab/runs" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "kind": "relight",
    "sourceImageUrl": "https://example.com/portrait.jpg",
    "preset": "golden-hour",
    "prompt": "Keep the face bright."
  }'

A cutout and a relight ask for the ratio the model makes that is closest to the picture’s. Models redraw the picture, so small details can change.

Model Advisor

POST /lab/advise excludes every model that cannot meet the length, tier, reference count or sound, and says why. It ranks the rest with a fit score from 0 to 100, a reason and the price, plus the cheapest pick inside budgetUsd. If the ranking model does not answer, the ranking uses tags and price, and rankedBy is tags. It is free.

Request

curl -X POST "https://looptake.com/api/v1/lab/advise" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "A raccoon at a café counter, talking to camera", "seconds": 8, "references": 1, "audio": true, "budgetUsd": 1}'

Director

POST /lab/compose writes the Director fields for a one-line idea, renders them into the prompt with the look and camera moves, and scores the idea on the Twist meter. It is free.

  • 0 Expected: The subject is where it belongs.
  • 1 Out of place: The subject is somewhere it should not be.
  • 2 Out of place, with attitude: Add styling or a gesture that gives it personality.
  • 3 Out of place, with feeling: Add an emotion the viewer did not expect to feel.

Brief

POST /lab/brief turns a plain brief into planned work. Send the conversation asmessages, oldest first, ending with the customer’s turn; the last 30 are read. A planner reads the catalog, prices, recipes, Looks, the workspace’s references, the balance and recent runs, with at most 6 tool calls per answer. It answers with a short replyand actions, each with estimateUsd:

  • run: a prompt, models and settings. Send it to POST /lab/runs.
  • recipe: a recipe id and its filled slots, for the Lab to load.
  • finish: a succeeded item and a tier, or upscale. Send it toPOST /lab/items/{id}/finish.
  • plan: chained steps, at most 8, that can end in a post. Send it toPOST /lab/chains, below.

The planner never spends. It prefers drafts, keeps to the budget it reads in the brief, and writes each concept to a Twist level of 2 or more. A model that is not in the catalog, or cannot take a card’s settings, is dropped, and the reply says so. Each answer is billed from the language model’s receipt.

The JSON answer comes within about 50 seconds. Send Accept: application/x-ndjsonto stream it instead: one JSON object per line, a step as each tool call starts, aping at least every 8 seconds, and a last done line with the answer or an error line.

Request

curl -X POST "https://looptake.com/api/v1/lab/brief" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"messages": [{"role": "user", "content": "3 TikTok ads for my orange water bottle, realistic, under $5 total"}]}'

Plans

A plan card chains at most 8 steps. Each step names the earlier steps it takes its inputs from in from, so a video can go to captions, then to a 9:16 reframe, then to a post. Each step has its own estimateUsd, and the plan’s estimateUsdis their total. Clip tools and the post step cost 0. sources lists the trends and the team’s posts the planner based the plan on.

To run a plan, send its title, its sources by kind and id, and each step’s tool, from and settings, unchanged, toPOST /lab/chains. It answers 202 with the chain. The server runs the steps one after another, also when the tab is closed. Each step holds 1.5 times its price when it starts and is billed from the provider’s receipt; the rest of the hold comes back. A 400 names the step it cannot run. A 402 means the balance is below the plan’s holds.

Plan, then run it

curl -X POST "https://looptake.com/api/v1/lab/brief" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"messages": [{"role": "user", "content": "A 5 s video of my bottle, captioned, reframed to 9:16, posted to TikTok tomorrow at 6 pm"}]}' \
  | jq '.data.actions[] | select(.type == "plan")
        | {title, sources: [.sources[] | {kind, id}], steps: [.steps[] | {tool, from, settings}]}' > plan.json

curl -X POST "https://looptake.com/api/v1/lab/chains" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d @plan.json

GET /lab/chains/{id} gives the chain’s status(running, succeeded or failed) and each step’s status, run, item and result URL. The first failed step stops the chain: its hold comes back, and the later steps are skipped and hold nothing. failedStep anderror say which step failed and why.

Status

curl "https://looptake.com/api/v1/lab/chains/1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f" \
  -H "Authorization: Bearer $LOOPTAKE_API_KEY"

A post step takes one earlier video and creates a scheduled post on the accounts, at the time and with the caption the card shows. When the workspace asks for approval, the post waits for a reviewer. Nothing posts until Run is pressed on a plan that shows the post step. A video that is ready after the post time posts when it is ready.

Ask the Brief how a post did. The planner reads the post’s analytics, says what worked, and proposes the next variant as a new plan.

Looks and references

A look is prompt text added to every prompt it is used with. Save one withPOST /looks, or let a vision model write one from an image withPOST /looks/from-image. References are the workspace’s cast, sets, props and voices: POST /references saves one, and POST /references/sheetrenders a character, set or prop sheet as a run on an image model. Attach references to a run by URL in references.

Describe it. Looptake writes, renders, scores and posts it to TikTok, Reels and Shorts.

Credits never expire. Top up from $5.