API Documentation

Integrate AI generation into your app in minutes.

Authentication

Include your API key in every request:

X-API-Key: cp_yourkey123...

Get your API key from the dashboard.

Generate Video / Image

POST/api/generate
{
  "kind": "video",                    // "video" or "image"
  "model": "seedance-2.0-fast",       // model name
  "prompt": "a cat dancing in rain",  // required
  "aspect": "9:16",                   // "9:16", "16:9", "1:1", "4:3"
  "duration": 5,                      // 5 or 10 (video only)
  "init_image_url": "https://..."     // optional (image-to-video)
}

Response:

{
  "ok": true,
  "jobs": [{
    "ok": true,
    "urls": ["https://cdn.leonardo.ai/.../video.mp4"],
    "cost": 1209
  }]
}

Available Models

Video Models:

seedance-2.0seedance-2.0-fastkling-3.0kling-3.0-turbohailuo-2_3hailuo-2_3-fastveo-3.1-fast-generate-001veo-3.1-litesora-2-prosora-2ltxv-2.0-ultra

Image Models:

flux-2.1-prophoenix-1.0stable-diffusion-xl

Pricing

TypePKRUSD
Text to VideoPKR 10$0.035
Image to VideoPKR 15$0.053
Text to ImagePKR 5$0.018

Quick Example (cURL)

curl -X POST https://createpulse.online/api/generate \
  -H "X-API-Key: cp_yourkey123" \
  -H "Content-Type: application/json" \
  -d '{
    "kind": "video",
    "model": "seedance-2.0-fast",
    "prompt": "astronaut floating in space, cinematic",
    "aspect": "9:16",
    "duration": 5
  }'

Error Codes

CodeMeaning
401Invalid or missing API key
402Insufficient balance
400Bad request (missing prompt, invalid model)
500Server error (try again)