API Documentation

Integrate VideoCraft AI's powerful video generation capabilities into your applications.

Videos

The Videos API allows you to generate, retrieve, and manage videos created with VideoCraft AI.

Create a new video

Generate a new video by providing a text prompt or using a template.

POST
/api/v1/videos

Request Body

{
  "prompt": "A futuristic city with flying cars and neon lights",
  "duration": 15,
  "resolution": "1080p",
  "style": "realistic",
  "template_id": "optional-template-id"
}

Response

{
  "id": "vid_12345abcde",
  "status": "processing",
  "created_at": "2023-04-10T15:30:00Z",
  "estimated_completion_time": "2023-04-10T15:32:00Z",
  "prompt": "A futuristic city with flying cars and neon lights",
  "duration": 15,
  "resolution": "1080p",
  "style": "realistic"
}

Code Example

curl -X POST https://api.videocraft.ai/v1/videos \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A futuristic city with flying cars and neon lights",
    "duration": 15,
    "resolution": "1080p",
    "style": "realistic"
  }'

Need more help?

Contact Support
API Reference

Explore the complete API reference documentation.

Code Examples

Find code examples in various programming languages.

API Status

Check the current status of the VideoCraft API.