Render animation to MP4
render_animationRender a frame range to an H.264 MP4. engine=cycles_cpu (default) is photoreal; lit_preview (EEVEE) keeps materials and lights at ~10x less cost and is the right choice for reviewing motion and timing; preview_fast is shape-only. Animate first: keyframe cameras/objects via scene_apply animation.* operations, then render from that revision. One job renders up to 600 frames; for longer sequences fire parallel jobs over contiguous frame ranges and concatenate the MP4 segments (identical encoder settings make them concat-safe). The MP4 becomes an immutable artifact (download via artifact_get). Optional audioTracks mix owned audio_wav artifacts into an AAC soundtrack with startSeconds relative to this output segment, sourceOffsetSeconds, gainDb and looping. Inputs must belong to this project/deployment; PCM16 44.1 kHz mono/stereo only. Clipping is rejected; lower gainDb. Actual output streams/timing are verified. Returns a durable job handle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| width | No | ||
| engine | No | cycles_cpu | |
| height | No | ||
| samples | No | ||
| cameraId | No | ||
| frameEnd | Yes | ||
| projectId | Yes | Stable project ID returned by project_create or projects_list. | |
| frameStart | Yes | ||
| revisionId | No | "HEAD" (default) uses the project's current head | HEAD |
| audioTracks | No | ||
| idempotencyKey | Yes | Stable caller-chosen key for safe retries of this same request. |