POST
/v1/tools/take_stillpricedTake a still
One frame of a video as a picture (a still, a screenshot, a frame grab), taken at a time or where words are said, at the video's own pixels, never enlarged. Cropped to the whole frame, the screen shared in a webinar or a call without its browser bars, call buttons or cameras, or the part of that screen that matters.
Takes src (file), transcript (file). Give exactly one of: at; or said and transcript. Returns still (the frame as a PNG at the video's own pixels, cropped as asked and never enlarged; the result says its size).
$0.01 a still.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
src | string | Required | A file_id from create_upload, accepting video/*, up to 4 GB. Get one with create_upload. Or the job_id of a finished job that made a file of this kind: that file is used. Pass the job_id rather than retyping its result. |
transcript | string | None | A file_id from create_upload, accepting application/vnd.scrub.transcript+json, application/json, up to 16 MB. Get one with create_upload. Or the job_id of a finished job that made a file of this kind: that file is used. Pass the job_id rather than retyping its result. Without one, transcribe (Transcribe a video) from the file given as src makes one: run it first and pass its job_id here. |
at | number | None | The moment, in seconds from the video's start. |
said | string | None | The moment by words said in it, as the transcription has them; the still is the frame in the middle of where they are first said, and the part that matters is what they are about. |
crop | one of | whole_frame | What the still shows. Whole frame is the frame as it is. Shared screen is the screen shared in a webinar or a call, without the browser's bars, the call's buttons or the cameras; where no screen is shared at that moment it is refused and not charged. Part that matters is the part of that screen its words are about, or, at a time, the main picture it shows, such as the product or the chart, never smaller than a quarter of the screen each way.whole_frameshared_screenpart_that_matters |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/take_still \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"src":"w/…/file_id"}'Answer
{
"ok": true,
"result": {
"job_id": "job_…",
"status": "running",
"price_usd": "$…"
}
}It starts at once and answers running. Ask job_status with the job_id for its result. quote gives its price first, free.
Every call can also answer an error: what comes back. Try it with your key from Account.