Video

Video Generation

Generate videos from text prompts or images, and extend existing videos — all via the same task-based workflow used for image generation. Submit a request, get a task_id, poll for completion.

How it works

Always asynchronous

Video generation takes longer than images. Every video request returns a task_id immediately — poll /fetch or use a webhook to receive the result.

Two endpoints

/imagine-video generates a new video from a prompt or image. /extend-video lengthens an existing video you've already generated.

Same task lifecycle

Video tasks follow the same staged → pending → processing → finished flow as image tasks. Use the same /fetch endpoint to check status.

Quick start

# Generate a video from a text prompt
curl -X POST https://journeyapi.co/api/v1/imagine-video \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a red fox running through a snowy forest, cinematic",
    "webhook_url": "https://your-server.com/webhook"
  }'

# Response — poll this task_id with /fetch
# { "task_id": "550e8400-e29b-41d4-a716-446655440000" }

Endpoints