Agent Video: POST /agent/video
Turn a written shot into a short video with native audio. Budget $4.99 USDC on Base per render, then retrieve the result without another payment. The default target is eight seconds at 720p; inspect the actual clip before using it in an edit.
What it is for
Short-form video, b-roll, product shots, music-video visuals, social clips and ads. The audio is generated from the scene, so write the sound into the prompt: instruments, voices, weather, movement. A silent scene renders near-silent by design.
At a glance
| Endpoint | POST https://app.suedeai.ai/agent/video |
|---|---|
| Price | $4.99, amount 4990000 USDC base units |
| Payment | x402 exact on eip155:8453 to 0x10FF767043A1723E0BB5B9207bC37D3442cC9E4F, or a Skyfire token |
| Output | A short clip with native audio; default target: 8 seconds at 720p |
| Paid response | 202 Accepted with jobId and pollUrl |
| Poll | GET https://app.suedeai.ai/agent/video/{jobId}, free |
| Identifiers | OpenAPI operationId, A2A skill and MCP tool: agent_video |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Narrative or visual prompt that drives the video concept. |
durationSeconds | integer | No | Requested length in seconds. Default 8, minimum 3, maximum 15. The service maps it to a supported render length. |
aspectRatio | string | No | 16:9 (landscape, default), 9:16 (portrait) or 1:1 (square). |
asyncMode | boolean | No | Default false. Switches asynchronous mode on, never off. Paid calls are already asynchronous. |
Choose the frame before writing the prompt
Start with the editor’s cut, not adjectives. Write one sentence for each of four things: what the viewer sees first, what changes, where the camera ends, and what the viewer hears when the action happens. If the sentence needs “meanwhile” or “cut to,” split it into shots. Each separately generated shot is another paid render.
A landscape banner can use horizontal movement and empty space for a headline. Portrait clips have less room beside the subject, so use depth or vertical movement instead. For square placements, center the decisive action and test a square preview. An aspect-ratio request describes the intended frame, not a guarantee that every subject or overlay will fit.
Landscape: show how a pour-over starts
{
"prompt": "Single locked wide shot across a cafe counter. A glass brewer sits on the right; leave the left third empty for a title. A hand tilts a kettle above the brewer, a thin stream touches the grounds, then the first drop lands in the glass. Quiet room tone, soft pouring, one clear drip. No speech or music.",
"aspectRatio": "16:9",
"durationSeconds": 8
}
Acceptance check: pause on the first drop. Are both the pour and its destination visible? Can an editor add a headline on the left without covering either? If a headline must be spelled exactly, add it in the editor rather than asking the model to paint the words into the scene.
Example: a vertical social clip
Get the 402 challenge first (amount 4990000, priceUsd $4.99), sign it as shown in the quickstart, then send:
curl -i -X POST https://app.suedeai.ai/agent/video \
-H 'Content-Type: application/json' \
-H "PAYMENT-SIGNATURE: $PAYMENT" \
-H 'X-Idempotency-Key: vinyl-clip-0001' \
-d '{
"prompt": "Slow push-in on a spinning vinyl record, rain against the window, soft piano and the crackle of the needle",
"aspectRatio": "9:16"
}'
The prompt names its sounds (rain, piano, needle crackle) because the audio track is generated from what the scene describes.
Response to a paid call: 202 Accepted
The discovery document gives this example body:
{
"jobId": "video-job-example",
"status": "queued",
"provider": "suede",
"pollUrl": "https://app.suedeai.ai/agent/video/video-job-example"
}
With ?async=false the call blocks and answers 200 with the same body shape as the poll below, so one parser covers both paths. Renders take minutes and payment clients time out in about 30 seconds, so most callers should keep the default and poll.
Polling: GET /agent/video/{jobId}
Poll until status is completed, with videoUrl set, or failed. Both are final; queued and processing mean poll again.
| Field | Description |
|---|---|
jobId | The render's job identifier. |
status | queued, processing, completed or failed. |
provider | The provider handling the render. |
videoUrl | The generated video once complete; null until then. |
videoId | The Suede video record identifier, when available. |
pageUrl | The Suede share page, when available. |
pollUrl | Set on the 202 accept; null on a poll response. |
An unknown or expired jobId answers 200 with status failed, not 404. On 2026-10-11 that response also carried "error": "Generation failed. Please try again." and an etaSeconds field set to null.
Plan and review a single-shot product clip
A shot list for a full commercial is a poor brief for one short render. For a record shop teaser, choose one visible action and one sound cue: “Vertical close-up of a turntable in a quiet shop. A hand lowers the needle. Hold on the spinning label as a soft vinyl crackle begins.” That gives the editor something concrete to accept or reject.
- Before the call: choose the intended placement and aspect ratio. Decide whether the clip must loop, carry a caption or leave room for a price overlay. For a loop, brief continuous motion instead of a one-time action like the needle drop.
- While it renders: save the job ID and poll URL from the accepted response. A queued job is not a finished clip. Use its status URL to check progress rather than submitting the scene again.
- At review: watch once muted to judge framing and motion. Then listen without captions. Does the crackle begin with the needle, and is there room for the planned voiceover? Scrub the first and last frames if the placement requires a loop.
If the shot works but the caption covers the label, reposition the caption in the edit. If the needle never enters frame, rewrite that action as the subject of the shot before authorizing another render. Save the chosen clip and note which check failed on any rejected take.
Collect the result without resubmitting the shot
Here is a Python 3 collector for a previously accepted job. Pass the saved absolute pollUrl as its only argument. It makes only free GET requests, waits between checks, honors numeric retry delays, and stops after at most 20 requests. A local stop is not a cancellation. Save the job and resume later instead of paying again.
import json, sys, time
from urllib.error import HTTPError, URLError
from urllib.parse import urlsplit
from urllib.request import urlopen
url = sys.argv[1]
u = urlsplit(url)
if (u.scheme, u.netloc) != ("https", "app.suedeai.ai") or not u.path.startswith("/agent/video/"):
sys.exit("Expected the Suede video poll URL from the 202 response.")
for attempt in range(20):
delay = min(5 * (attempt + 1), 30)
try:
with urlopen(url, timeout=15) as r:
job = json.load(r)
except HTTPError as e:
if e.code != 429 and not 500 <= e.code <= 599:
sys.exit(f"Poll HTTP {e.code}; inspect saved job. No new render.")
hint = e.headers.get("Retry-After")
if hint and (not hint.isdecimal() or int(hint) > 60):
sys.exit(f"Resume after Retry-After: {hint}")
delay = max(delay, int(hint or 0))
except (URLError, TimeoutError):
pass # Retry only this GET.
else:
state = job.get("status")
if state == "completed" and job.get("videoUrl"):
print(job["videoUrl"])
break
if state not in ("queued", "processing"):
sys.exit(f"Inspect job: {state!r}; no usable asset or job failed.")
if attempt < 19:
time.sleep(delay)
else:
sys.exit("Polling paused. Keep the job ID and resume later.")
A 200 response only means the status lookup succeeded. A failed job, an unexpected state, malformed JSON or a completed job without media all require inspection, not another paid POST. Keep the last response and the job ID for troubleshooting. For a validation error on creation, check the exact field named in the response before making a corrected request.
Download the MP4, not the share page
Use videoUrl for the media itself. pageUrl, when present, is for a human to open in a browser. Saving that page as .mp4 gives an editor HTML rather than footage. Do not reconstruct either link from jobId or videoId.
Set VIDEO_URL to the completed job’s media URL. This example follows HTTPS redirects, records the final content type and saves a candidate download. Verify it before assigning an MP4 extension.
curl --fail --show-error --silent --location --proto '=https' --proto-redir '=https' \
--max-time 120 --output take.download --write-out '%{content_type}\n' "$VIDEO_URL"
ffprobe -v error -show_entries format=format_name,duration:stream=codec_type,width,height \
-of json take.download
Expect MP4 media (normally video/mp4), a decodable video stream and a plausible duration. If the server reports application/octet-stream, inspect the container rather than assuming it is broken. If it returns HTML, an error or a zero-byte file, stop. Compare frame dimensions with the placement and check for an audio stream if sound is part of the brief. Rename the verified file and store it with the prompt, job ID and review decision.
Review the deliverable, not just the render status
- First and last frames: compare the opening with your thumbnail and the ending with the next shot. If a usable opening or hold exists, trim the clip instead of commissioning another one.
- Movement and continuity: watch at normal speed, then scrub through hands, reflections, object edges and contact points. A pleasing still does not establish that the motion works.
- Sound and captions: play the final edit muted. Is the point still clear? Caption speech and meaningful sound cues such as “[needle crackles]”; review timing and wording manually. If a visual action is essential but not explained aloud, supply a descriptive transcript or audio description appropriate to the placement.
- Placement: preview in the actual player at phone size. Check that captions, controls and platform overlays do not cover the subject. Check for distracting flashes and sudden audio jumps. Do not publish automatically just because the job completed.
Keep a short review record: “Pass: first drip visible and audible. Edit: add captions. Hold: mobile title overlaps kettle.” A failed technical download calls for another retrieval of the existing media; a new creative take calls for a changed brief and a new spending decision.
Sources
- app.suedeai.ai/.well-known/x402: description, price, payment requirement, input schema and example output (resource entry last updated 2026-08-30).
- app.suedeai.ai/openapi.json: operations
agent_videoandagent_video_status. - Live requests on 2026-10-11: the unpaid 402 challenge and a poll for an unknown
jobId.