Generate a video
axcel_generate_videoGenerate a video from text or images, wait for processing, and download it. Returns a jobId to poll status if rendering is still in progress.
Instructions
Generate a video on Axcel (text-to-video or image-to-video), wait for it and download it. Returns a jobId; if it is still processing, poll axcel_job_status with that jobId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | text: text-to-video. start_frame: animate startImage. start_end: from startImage to endImage. reference: 1..N reference images (+ optional reference video/audio). Default: inferred from the inputs. | |
| audio | No | Generate sound (speech, effects) with the video. Default false. | |
| model | Yes | Exact model name from axcel_list_models, e.g. "Seedance 2.5", "Seedance 2.0", "Veo 3.1 Fast". | |
| ratio | No | "16:9", "9:16", "1:1", "3:4", "4:3", "21:9" as the model supports, or "auto" for image-to-video. | |
| prompt | Yes | What happens in the video. In reference mode, refer to the reference images as @Image1, @Image2 ... in the order given. | |
| confirm | Yes | Must be true: confirms the user asked for this (it uses the Axcel plan or deletes data). | |
| download | No | Download the result when done (default true). | |
| duration | No | Seconds; one of the model durations. | |
| endImage | No | Last frame (start_end). | |
| fileName | No | File name stem; the job id is appended. | |
| language | No | Language/accent of generated speech: en (English), ms (Malay), id (Indonesian). Default en. | |
| resolution | No | 480, 720 or 1080, as the model supports. | |
| startImage | No | First frame (start_frame / start_end): local image path, http(s) URL or assetId. | |
| extraInputs | No | Advanced: extra input slots for models that list them in axcel_list_models, e.g. {"style-ref": ["/path/style.png"]}. | |
| waitSeconds | No | Seconds to wait for the result before returning (default 40). If it is not done by then, poll axcel_job_status with the jobId. | |
| startFromJob | No | Seamless continuation: use the LAST frame of this earlier video job as the start frame (needs ffmpeg). | |
| outputDirectory | No | Folder for the result (default /root/Downloads/axcel). Use the user's project folder when working in one. | |
| referenceAudios | No | Reference mode, plans with reference media: up to 3 MP3/WAV files, 2-15 s each, 15 s in total. | |
| referenceImages | No | Reference mode: 1 to the plan maximum (see axcel_status) image paths/URLs/assetIds. | |
| referenceVideos | No | Reference mode, plans with reference media: up to 3 MP4/MOV files, 2-15 s each, 15 s in total. |