adshot

v0.2.1
io.github.TopoRush/adshot Checked 4 days ago Published 12 days ago

Turn a product photo into a short ad video, shot by shot: quote the cost first, redo one shot.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

init_project

Create a new adshot project folder with a starter storyboard and settings. project_dir: absolute path of a folder that does not hold an adshot project yet. Costs nothing and needs no key.

ParameterTypeDescription
project_dir *string

get_storyboard

Return the storyboard rows of a project, in cut order.

ParameterTypeDescription
project_dir *string

set_storyboard

Replace the storyboard, then price it. Nothing is rendered or charged. shots: one object per shot, in cut order. Keys: shot_id required, stable name such as "S01". Keep IDs when revising. prompt required. One visible action, the framing, and one camera move. seconds required, whole seconds. Seedance accepts 4 to 15 per shot. image optional first frame: a file name inside the project, or an HTTPS URL. model, resolution, ratio optional overrides of the project settings. notes optional editorial notes. Changing notes costs nothing. Send eve…

ParameterTypeDescription
project_dir *string
shots *array

estimate

Price the storyboard without spending anything. only: optional comma-separated shot IDs, for example "S03,S04". Returns one line per shot (state, action, new tokens, new USD, model) and "Total new spend". Shots already rendered and unchanged show action "skip" and $0. Show the total to the user and get their approval before calling render.

ParameterTypeDescription
project_dir *string
onlystring

render

Start rendering in the background. This spends money at the video provider. approved_usd: the amount the user approved after seeing estimate. The run is refused if the current estimate is higher, so pass the "Total new spend" figure the user agreed to, not a larger round number. It cannot exceed budget_usd in the project's adshot.toml; only the user raises that cap, by editing the file. only: optional comma-separated shot IDs. Use the same IDs you estimated. accept_unverified_prices: set true only if the user accepted a rate marked "[unverified price]" in t…

ParameterTypeDescription
approved_usd *number
project_dir *string
accept_unverified_pricesboolean
onlystring

status

Show each shot's state, the spend so far, and the progress of the last render. States: pending (never rendered), running, done, changed (edited since its last render), failed, needs_reconcile (submission outcome unknown; use the adshot command line to resolve it, so the shot is not charged twice). Finished videos are in the project's shots/ folder as <shot_id>.mp4.

ParameterTypeDescription
project_dir *string

stitch

Join the finished shots, in storyboard order, into one MP4. Costs nothing. out: output file name inside the project. Every shot must be done. Needs FFmpeg on PATH with H.264 and AAC encoders.

ParameterTypeDescription
project_dir *string
outstring