Skip to main content

Get started in three steps

Generate your first video and integrate our API into your application.

Step 1: Get your API key

  1. Visit Elytron Dashboard and create your account
  2. Navigate to the API Keys section in your dashboard
  3. Generate a new API key and copy it securely
Keep your API key secure and never expose it in client-side code.
Test your API key with a simple request:
curl -X GET "https://api.elytron.com/v1/account" \
  -H "Authorization: Bearer YOUR_API_KEY"
You should receive a 200 response with your account information.

Step 2: Generate your first video

Use our video generation endpoint to create your first video:
curl -X POST "https://api.elytron.com/v1/videos/generate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A cat playing with a ball of yarn",
    "duration": 5,
    "quality": "hd"
  }'
This will return a video ID that you can use to track progress and fetch the final video.
Monitor your video generation progress:
curl -X GET "https://api.elytron.com/v1/videos/{video_id}/status" \
  -H "Authorization: Bearer YOUR_API_KEY"
Video generation typically takes 30-60 seconds depending on duration and quality.

Step 3: Fetch your video

Once generation is complete, fetch your video:
curl -X GET "https://api.elytron.com/v1/videos/{video_id}/download" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -o "my_video.mp4"

Next steps

Now that you’ve generated your first video, explore these advanced features:

Video Generation

Learn about advanced video generation options and parameters.

Video Management

Manage your video library with our comprehensive endpoints.

Status Monitoring

Track generation progress and monitor API usage.

Webhooks

Set up real-time notifications for video completion.

Code Examples

// Generate a video
const generateVideo = async (prompt, duration = 10) => {
  const response = await fetch('https://api.elytron.com/v1/videos/generate', {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${process.env.ELYTRON_API_KEY}`,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ prompt, duration, quality: 'hd' })
  });
  
  return await response.json();
};

// Check status
const checkStatus = async (videoId) => {
  const response = await fetch(`https://api.elytron.com/v1/videos/${videoId}/status`, {
    headers: { 'Authorization': `Bearer ${process.env.ELYTRON_API_KEY}` }
  });
  
  return await response.json();
};
Need help? Check out our API reference or contact support@elytron.com.