● nureta
Docs
Video

Multi-shot video

Make a video longer than 15 seconds from your own shots: a script and a duration per shot, with smooth joins.

This page uses NURETA_URL, NURETA_KEY and the wait_task helper from Get started.

A video longer than 15 seconds is made of shots that the API renders and joins. Send your own shots in segments: each shot is 4–15 seconds, and the shots must total 16–300 seconds. This example is 16 seconds at 480p ($3.02).

TASK_ID=$(curl -s -X POST "$NURETA_URL/api/v3/contents/generations/tasks" \
  -H "Authorization: Bearer $NURETA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seahorse-480p",
    "ratio": "16:9",
    "auto_chain": true,
    "content": [{"type": "text", "text": "A rooftop at night, city lights"}],
    "segments": [
      {"script": "She steps onto the rooftop and looks at the city lights", "duration_seconds": 4, "explicit": false},
      {"script": "He joins her at the railing, they talk and kiss", "duration_seconds": 12, "explicit": false}
    ]
  }' | jq -r .id)
DONE=$(wait_task "$NURETA_URL/api/v3/contents/generations/tasks/$TASK_ID")
printf '%s' "$DONE" | jq '{status, video: .content.video_url, shots: [.scene.segments[]? | {id, durationSeconds, chained}]}'
  • explicit: true marks a shot that shows a sex act. Describe the act concretely in that shot's script (who does what, the position). A vague line renders soft. See The explicit flag.
  • auto_chain: true opens each shot on the last frame of the shot before it, for smoother joins. The price is the same, but the render takes longer because the shots render one after the other.
  • Without segments, send only duration (for example "duration": 60) and the API writes the shots for you.

The wait_task loop prints step while the video renders: {"code": "rendering", "done": 1, "total": 2} means 1 of 2 shots is done.