Prepare a new video
prepare_video, in Changes: A connection or key that may make changes. None spends credits; prepare_* and stage tools (research, brainstorm, write_script, review, generate_clip, voice, storyboard) prepare paid work for confirm_spend.
Create a video from a brief, with its attachments and settings, as a draft, and prepare its first run. Nothing is spent: the preview says its price (quote, when work is charged at fixed prices) and whether the organization's credits cover it, and confirming starts it. Show the person the preview. If the connection may spend, call confirm_spend with the confirmationId once they agree; otherwise send them the confirmUrl to confirm it in the studio. It expires in 15 minutes. Pass a new requestKey; repeating one returns the same draft and confirmation.
apiKeyAuthorizationBearer <token>An API key (prb_…) from Settings → Connections.
application/json- body
spaceId*stringuuidbrief*string10 <= length <= 20000name?string1 <= length <= 120objective?string"retention""reach""retention""follows""clicks""conversions"platform?|stringaspect?string"portrait""portrait""square""landscape"lengthSeconds*numberHow long the video runs, in seconds, which its scenes divide and its price counts
15304560motion?string"text-only""text-only""reference"format?stringThe format to make it in, by its ID from list_formats; without one, the Space's default
length <= 64mode?stringautonomous decides for the person and goes on, taking the recommended answer to any question; interactive asks first: it waits at its one question, its script, its storyboard, its listen and its pilot (get_video's waitingOnYou, answered with answer_question_choice, approve_script, approve_storyboard, approve_listen, approve_pilot and the like)
"autonomous""autonomous""interactive"voice?string"studio""studio""seedance"cutaways?stringB-roll laid over what's said, which its price counts: off leaves it out; without it, as the format has it
"on""off"captions?attachments?array<||>items <= 45requestKey*string^[\w.:-]+$8 <= length <= 64The tool's answer.
application/json- response
videoId*stringuuidconfirmationId*stringuuidexpiresAt*stringpreview*||||||confirmUrl*|nullcurl -X POST 'https://probably.co/api/v1/tools/prepare_video' \ -H "Authorization: Bearer $PROBABLY_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "spaceId": "a330a273-e64a-4183-aedb-f3152797a9a5", "brief": "stringstri", "lengthSeconds": 15, "requestKey": "stringst"}'{ "videoId": "3524e86f-1bba-489a-bf6b-386ea1abbac0", "confirmationId": "40b00753-949e-4f8e-a4cc-6b64ed5887e1", "expiresAt": "string", "preview": { "kind": "run", "fits": true, "availableCredits": 0, "freeDraft": true, "quote": null, "sandbox": false }, "confirmUrl": "http://example.com"}