🎬 Idea2Viral API

REST API to turn any topic into a viral short-form video — script, voice, visuals, captions, render, publish — programmatically.

Sign up — free trial Try without signup
⚡ Built with Anthropic Claude

Overview

Base URL: https://cp.idea2viral.com/api/v1

All endpoints accept Content-Type: application/json and return JSON. Free demo endpoints under /v1/public/* work without auth (rate-limited per IP, watermarked output). Paid endpoints require a Bearer token from /api-keys.

Authentication

Authorization: Bearer iv_live_YOUR_API_KEY

Tokens are generated in your dashboard after signup (Pro+ tier required).

🆓 Free demo endpoints

No auth · 3 calls/day per IP · watermarked or truncated output · upgrade for full results.

POST /v1/public/title-suggest FREE

Generate 3 viral YouTube title variants from a topic. Paid plan returns 10 + scoring + chat refinement.

Request

curl -X POST https://cp.idea2viral.com/api/v1/public/title-suggest \
  -H "Content-Type: application/json" \
  -d '{"topic": "5 feng shui mistakes that drain your wealth"}'

Response

{
  "ok": true,
  "titles": [
    "5 Feng Shui Mistakes Silently Costing You Money",
    "These Tiny Feng Shui Errors Are Draining Your Wealth",
    "Why Your Feng Shui Isn't Working (And How to Fix It)"
  ],
  "watermark": "Powered by idea2viral.com — upgrade for 10 titles + scoring",
  "calls_remaining_today": 2
}
POST /v1/public/script-preview FREE

First 30% of an AI-generated short script. Paid plan returns full script + voice + render.

curl -X POST https://cp.idea2viral.com/api/v1/public/script-preview \
  -H "Content-Type: application/json" \
  -d '{"topic": "How to start a side hustle", "language": "en", "tone": "viral"}'
POST /v1/public/clip-suggest FREE

Submit a YouTube URL → get 1 viral-moment timestamp suggestion. Paid plan returns 3-15 moments + auto-render.

curl -X POST https://cp.idea2viral.com/api/v1/public/clip-suggest \
  -H "Content-Type: application/json" \
  -d '{"youtube_url": "https://www.youtube.com/watch?v=..."}'

📊 Rate limits & quotas

PlanCalls / monthConcurrencyWatermark
Free trial (no auth)3 / day per IP1yes
Starter — $19502no
Creator — $492004no
Pro — $996008no
Empire — $249200020no

429 responses include X-RateLimit-Reset with seconds until reset.

🛠 Error format

{
  "ok": false,
  "error": "rate_limit_exceeded",
  "detail": "3 calls/day from this IP. Reset at 00:00 UTC.",
  "kind": "rate_limit",
  "upgrade_url": "https://cart.melyx.id/pay/idea2viral-starter"
}

Common error kinds: auth, credits, rate_limit, tier_locked, bad_input, llm_failed, render_failed, internal.

📦 SDKs & examples