Quickstart

Generate your first AI video in 5 minutes

1

Create an Account

Sign up for a free Prism account to get started. You'll receive 10 free video credits.

2

Get Your API Key

Navigate to your dashboard and create an API key:

  1. Go to Dashboard → API Keys
  2. Click "Create API Key"
  3. Name it (e.g., "Development")
  4. Copy and save your key securely

⚠️ Important: Your API key will only be shown once. Store it in a secure location like environment variables.

3

Make Your First Request

Send a POST request to generate your first video:

cURL
curl -X POST https://api.prism.video/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A serene mountain lake at sunset, cinematic",
    "provider": "mock",
    "duration": 5
  }'

Replace YOUR_API_KEY with your actual API key.

4

Get the Response

You'll receive a response with the generation ID and status:

{
  "id": "gen_abc123",
  "status": "processing",
  "prompt": "A serene mountain lake at sunset, cinematic",
  "provider": "mock",
  "duration": 5,
  "created_at": "2026-01-13T14:30:00Z",
  "video_url": null
}
5

Check Status

Poll the generation endpoint to check status:

curl https://api.prism.video/v1/generations/gen_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"

When complete, you'll get the video URL:

{
  "id": "gen_abc123",
  "status": "completed",
  "video_url": "https://storage.prism.video/videos/gen_abc123.mp4",
  ...
}

Alternative: Use Webhooks

Instead of polling, set up a webhook to receive automatic notifications:

curl -X POST https://api.prism.video/v1/webhooks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-server.com/webhooks/prism",
    "events": ["video.completed", "video.failed"]
  }'

Learn more in the Webhooks documentation.

🎉 You're all set!

Now that you've generated your first video, explore more features: