CelebraClip API

Video API

Create product ads, birthday videos and trend clips from your own app. Videos are paid with the same credits you buy in the app; the price depends on model, quality and length, and you can check it first. Failed videos are refunded automatically.

1. Get a key

Log in, open your account, and create a key under Developer API. Send it on every request:

Authorization: Bearer ak_live_...

Keep keys secret: anyone with your key can spend your credits. Call the API from your server, not from a public web page.

2. Check the price (free)

GET  /v1/models   → models, qualities, lengths, shapes and the credit price of every combination
POST /v1/quote    { "model": "gemini-flash", "resolution": "360p", "duration": 5 }  → { "credits": 25, ... }

3. Create a video

POST https://app.example.com/v1/videos
Content-Type: application/json

{
  "prompt": "Slow orbit around my shea butter jar on a gold stand, soft studio light",
  "model": "gemini-flash",
  "resolution": "360p",
  "duration": 5,
  "ratio": "9:16",
  "sound": "ai",
  "image": "data:image/jpeg;base64,/9j/4AAQ...",
  "caption": "Shea butter ₦15,000",
  "useBrand": true,
  "consent": true
}

Returns 202 with the video's id, status and the credits charged.

FieldNotes
prompt*What should happen in the video (8–1,500 characters).
modelgemini-flash (Super cheap) or wan-3 (Pro quality). See /v1/models.
resolutionSuper cheap: 360p or 720p. Pro: 480p or 720p.
duration5, 10 or 15 seconds.
ratio9:16, 16:9, or 1:1 (Pro only).
soundai (model's sound), off, or mine (send audio). With Pro, add "audioMode": "follow" to let your audio guide the video.
imageOptional data URL (JPEG/PNG/WebP), max 8 MB.
audioOptional data URL (MP3/M4A), max 10 MB. Only audio you have the rights to.
caption, captionLangText on the video, and its language: en, pcm (Pidgin), yo, ig, ha, fr.
useBrandAdds the logo, name and phone from your brand kit.
consent*Must be true: you have the rights to the photo, audio and text, and people shown agreed.

4. Check status and download

GET /v1/videos/{id}
→ { "id": "...", "status": "generating" | "finishing" | "done" | "failed", "video_url": "..." }

GET /v1/videos/{id}/content     (MP4, send your key)

Poll every 5–10 seconds. Most videos are ready in 1–5 minutes.

5. AI tools on a finished video

POST /v1/videos/{id}/tools
{ "tool": "upscale" }                                   → Make HD (720p)
{ "tool": "voiceover", "script": "Fresh jollof, ₦2,500!", "lang": "pcm", "voice": "coral", "mix": "mix" }
{ "tool": "lipsync", "script": "Happy birthday Mama!", "voice": "alloy" }
{ "tool": "lipsync", "voiceSource": "mine", "audio": "data:audio/mpeg;base64,..." }
{ "tool": "captions", "lang": "same" }                  → timed subtitles (or a language code to translate)

Each call creates a new video (same status and download endpoints as above) and is billed in credits. Prices are in GET /v1/models under tools. Failed tools are refunded.

Other endpoints

GET /v1/me           → { "email": "...", "credits": 1150 }
GET /v1/videos       → your last 100 videos

Errors

CodeMeaning
400Missing or invalid field (message says which)
401Missing or invalid API key
402Not enough credits for this video: top up in the app
429Too many requests (60 videos per hour per key)

Example (Node.js)

const res = await fetch('https://app.example.com/v1/videos', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.VIDEO_API_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({ prompt: 'Friends dancing at a Lagos rooftop party at night', model: 'wan-3', resolution: '480p', duration: 5, consent: true }),
});
const video = await res.json();