Videos
Generate a video
Changed onStarts a background job that generates a video. The mode follows from the inputs you send: nothing extra for text-to-video, start_frame_image_id for image-to-video (plus end_frame_image_id for first/last frame), reference_image_ids and/or reference_video_ids for references, or source_video_id to edit a video. The response contains a job_id to poll with GET /video/{job_id}, and the credits the job is expected to cost. Requires a valid X-API-KEY header.
Throws:
- 400 if the model, mode, resolution, duration or aspect ratio is not supported, a clip is too short or long, or the prompt references inputs the request does not carry
- 402 if the workspace does not have enough credits, or the model is not available on its plan
- 404 if an image or video does not exist or is not accessible
- 422 if the request body is invalid, e.g. it mixes inputs from different modes
post/video
Request
- Base URLhttps://api.wondercraft.ai/v1
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
- info
endpoint added
- info