autoshort_generate_video
Generate a video from a topic; AutoShort writes the script (to render a script you already agreed with the user, use autoshort_draft_video). Optional image_urls (public https links, up to 6) put the user's own pictures in the first scenes. Costs 65 credits (40 render + 25 ElevenLabs voice); art style does not change the price. Images do not change the price. A short balance is refused with 402 INSUFFICIENT_CREDITS. Rendering is asynchronous: poll autoshort_get_video every 20-30 seconds until status is COMPLETED or FAILED. If get_video returns blockedReason, stop polling and act on it (e.g. top up credits). ROUTING: this makes a narrated video of still images from a topic. If the user pasted a cinematic / video-model prompt, use autoshort_generate_motion_clip instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| niche | No | Optional content niche; see autoshort_list_niches. | |
| topic | Yes | What the video is about: one named subject, one angle, one twist. Short topics still work. e.g. "Why airplane windows have a tiny hole in them". | |
| quality | No | Output resolution. Omit for the plan's resolution; asking for more than the plan renders returns 403 QUALITY_NOT_IN_PLAN. | |
| artStyle | No | Optional art style; default AUTOSHORTS. | |
| duration | No | Target length in seconds (default 30). 15/30/60/90 = multi-scene faceless video; 5 and 8 make a very short video on the same pipeline and price. | |
| language | No | Optional BCP-47 code (e.g. "en", "vi"). Defaults to "auto". | |
| image_urls | No | Optional. The user's OWN images to use as the first scenes: image 1 = scene 1, image 2 = scene 2, and so on; the remaining scenes are generated as usual. https URLs only, up to 6 per call, JPEG/PNG/WebP, each at most 10 MB and 25 megapixels; at most 30 images per hour per account. Animated WebP uses its first frame; GIF and SVG are rejected. AutoShort downloads each image once, strips EXIF/GPS, re-encodes it and serves it from its own domain (your URL is never linked into the video). Fast (FFMPEG) multi-scene videos only. The answer states how many images were used and for which scenes; more images than scenes is refused, never silently dropped. Only send images the user owns or may use; each is shown as a still with a slow zoom and is never animated or used to generate a person. | |
| idempotencyKey | No | Retry-safe: a repeat with the same key returns the first answer (replayed: true) and creates nothing. |