Explainer video through AiSpace
Venice generates the pieces. This gateway has no stitch/concat route — assemble the MP4 on the user’s machine (ffmpeg or similar). Every paid call is x402 on https://x402.aispace.bot.
| Piece | Path | Pay? |
|---|---|---|
| Script / scene plan | POST /api/v1/chat/completions | Paid sync |
| Optional scene stills | POST /api/v1/image/generate | Paid sync |
| Price each clip | POST /api/v1/video/quote | Free |
| Queue each clip | POST /api/v1/video/queue | Paid |
| Poll / download clip | POST /api/v1/video/retrieve | Free (binary mp4 or download_url) |
| Cleanup clip | POST /api/v1/video/complete | Free |
| Narration | POST /api/v1/audio/speech | Paid sync |
| Price music bed | POST /api/v1/audio/quote | Free |
| Queue music | POST /api/v1/audio/queue | Paid |
| Poll / download music | POST /api/v1/audio/retrieve | Free |
Follow Create a video and Create audio for field rules. Do not re-queue a job that is still PROCESSING.
1. Script, then fit durations
Draft narration with /chat/completions (model + messages; optional max_tokens, reasoning_effort). Split into scenes. Video models only accept duration strings from model_spec.constraints.durations on GET /api/v1/models?type=video — merge or split scenes rather than inventing a length.
Use the same video model and aspect ratio for every scene so a local concat does not stretch frames.
2. Quote the whole project (free), then confirm
Sum:
/video/quoteper scene (model+duration, plus resolution/aspect when they change price).{ quote }is the agent charge./audio/quotefor the music bed (model+duration_seconds; noprompt).- One
/audio/speech402 (or?priceOnly=1) for the full script — TTS is billed per request, often on the min floor.
Show the total. This is the expensive workflow. A quote 200 does not validate the queue body.
3. Generate pieces
- Narration first (sync, paid):
/audio/speechwithmodel,input,voicefrom?type=tts. Check duration locally before paying for video. - One clip first:
/video/queuethen/video/retrieve. Confirm the look before queuing the rest. - Remaining clips: queue each (each 402 is a new charge), poll independently ~10–15s. Save
queue_id+model. If retrieve is JSON withdownload_url, GET that URL (~24h). - Music:
/audio/queuewithmodel+prompt(instrumental description), then retrieve. 60s-floor ids such asace-step-15need?floor=allon the music catalog.
Optional consistency: generate a still per scene (/image/generate, same style line) and animate with an I2V model + image_url.
4. Assemble locally
This marketplace does not mux audio or concat clips. After you have scene MP4s, narration files, and a music bed, join them with local tools. Drop model-generated clip audio if you are using TTS (-an in ffmpeg).
Cleanup
/video/complete and /audio/complete are free and best-effort. After a successful binary retrieve the gateway may return { success: true, alreadyCompleted: true }. download_url results have nothing to complete.
Cost
Each scene queue is a full video charge. Retakes are billed again. Quote first; regenerate only the scenes that failed.