Skip to main content
API v1 uses the https://api.neural4d.com/openapi/v1 base path. Send your API key with every request.

Upload a reference file

Upload one local image or video with POST /files. Store the returned file id for generation requests.
201 Created

Create a video

Submit a JSON request to POST /videos/generations. Put first-frame and last-frame images in frame_images; use input_references for other image, video, or audio references. Set output_with_audio for Seedance 2.0, Seedance 2.0 Fast, or Veo 3.1 to control native audio generation. Omit it for xai/grok-imagine; if you omit it for a supported model, that model’s configured default applies. This example animates the uploaded first-frame image by its file ID. The API returns 202 Accepted with a task ID.
202 Accepted

Retrieve the task

Pass exactly one of the batch task id or child video uuid to GET /tasks/task-info. Poll until status is succeeded or failed. Each item in output.videos includes its child UUID, aspect ratio, native audio flag, generation mode, status, and timestamps.
cURL
To query directly by a generated video UUID, use uuid instead of id: GET /openapi/v1/tasks/task-info?uuid=7d1fa4bb-41e6-4a5d-88d8-1851f5342e87.
200 OK
See Common headers for authentication and request tracing.