# HiggsPayback video API HiggsPayback makes AI videos with the Seedance 2.5 and Seedance 2.0 models through a simple REST API. The API also offers the lower-priced seedance-2.5-flash, seedance-2.0-fast and seedance-2.0-mini models. Base URL: https://higgspayback.com Auth: send `Authorization: Bearer ` on every /v1 request. Keys start with `hpb_`. All bodies are JSON (`Content-Type: application/json`). Money is in US dollars. ## Prices (per second of generated video, 16:9) - seedance-2.5, 480p (text, first frame or reference images): $0.2057 per second - seedance-2.5, 720p (text, first frame or reference images): $0.4622 per second - seedance-2.5, 1080p (text, first frame or reference images): $1.1373 per second - seedance-2.0, 480p (text, first frame or reference images): $0.1407 per second - seedance-2.0, 720p (text, first frame or reference images): $0.3024 per second - seedance-2.0, 1080p (text, first frame or reference images): $0.6804 per second - seedance-2.5-flash, 480p (text, first frame or reference images): $0.0841 per second - seedance-2.5-flash, 720p (text, first frame or reference images): $0.1890 per second - seedance-2.0-fast, 480p (text, first frame or reference images): $0.0703 per second - seedance-2.0-fast, 720p (text, first frame or reference images): $0.1512 per second - seedance-2.0-mini, 480p (text, first frame or reference images): $0.0439 per second - seedance-2.0-mini, 720p (text, first frame or reference images): $0.0945 per second - m2, 1080p (text, first frame or reference images): $0.1600 per second Payback: when a video finishes, 25% of the paid or payback credit it used comes back as credit (subscription credit excluded). Each finished video shows it as payback_usd. API-only models (seedance-2.5-flash, seedance-2.0-fast, seedance-2.0-mini): already priced low, so no payback, and they are paid with top-up credit only (subscription and sign-up bonus credit cannot be used; error topup_only). You pay only for videos that finish. Failed or refused videos cost $0 and the held credit comes back. Billing is exact: cost_usd = generated tokens x unit price (tokens = width x height x (24 x seconds + 1) / 1024). ## 1. Create a video POST /v1/videos { "model": "seedance-2.5", // optional: seedance-2.5 (default) | seedance-2.0 (cheaper per second, up to 15 s) | API only: seedance-2.5-flash (480p/720p, up to 30 s), seedance-2.0-fast and seedance-2.0-mini (480p/720p, up to 15 s). GET /v1/models lists what is available now "prompt": "A golden retriever puppy runs through sunflowers at sunset", "duration": 4, // whole seconds, 4..30 (seedance-2.0, seedance-2.0-fast, seedance-2.0-mini: 4..15) "resolution": "480p", // 480p | 720p | 1080p "ratio": "16:9", // 16:9 | 9:16 | 1:1 | 4:3 | 3:4 | 21:9 "generate_audio": true, // sound made together with the video "image_urls": [], // optional reference images (https URLs or data:image/...;base64), max 9 "first_frame_url": null, // optional first frame image (aspect ratio follows the image) "video_urls": [], // optional motion references (seedance-2.5 only): up to 3 public https links to dance or action videos (mp4 or mov, 2..30 s each). The subject copies the movement. With several videos the first seconds of each are used so that their total stays within 15 s. Up to 720p and 15 s output, not together with first_frame_url. Billed tokens include the input video length, at 0.6x the unit price. A single link may also be sent as "video_url" "seed": null, // optional integer "style": "auto", // optional: which quality boost text to add. auto (default, picked from your prompt) | drama | ad | food | animal | action | anime | 3d | dance "enhance": true // default true: HiggsPayback adds its quality boost text after your prompt. false = send your prompt exactly } Response 202: { "ok": true, "id": "vid_...", "status": "queued", "estimated_cost_usd": 0.8314, "balance_usd": 0.1686 } The estimated cost is held from your balance until the video finishes. ## 2. Wait for it GET /v1/videos/{id} Poll every 10 seconds. Usually done in 2 to 5 minutes. status: queued -> running -> succeeded | failed When succeeded: { "ok": true, "id": "vid_...", "status": "succeeded", "cost_usd": 0.5446, "video_url": "https://higgspayback.com/files/vid_....mp4?exp=...&sig=...", "balance_usd": 0.4554 } video_url is a signed link (valid 7 days, files kept 30 days). Download it with a plain GET, no auth header needed. When failed: "cost_usd": 0, "error": "", "error_message": "". Codes: face_refused (photos of real people are not allowed as references), video_refused (the reference video itself is not allowed, use another video), image_refused (the reference photo itself is not allowed), input_refused (the prompt is not allowed), output_refused (the result was not allowed), submit_failed (could not be accepted, try again), video_refused_before (422 when creating: this reference video was refused before, use another one), balance (not enough credit), free_limit, busy (too many running videos), video_fetch / video_too_short / video_too_big / video_bad (the motion reference video could not be used). When the reason is known the failed video also has "fail": { "code", "why", "fix", "credit" } (Korean text: why it failed, how to fix it, what happened to the credit). A reference image that is too small gives "fail": { "code": "image_small", "side": "width", "px": 296, "min": 300, ... }. ## 3. Other calls GET /v1/balance -> { "balance_usd", "free_usd", "paid_usd", "plan_usd", "payback_usd", "payback_wallet_krw" } POST /v1/payback/convert {"amount_krw": 5000} or {"all": true} -> turns saved payback (KRW) into credit. Payback is 25% of what paid credit spent on a finished video. GET /v1/videos?limit=20 -> your recent videos GET /v1/models -> models and per-second prices ## curl example curl -s -X POST https://higgspayback.com/v1/videos -H "Authorization: Bearer $F25_KEY" -H "Content-Type: application/json" \ -d '{"prompt":"A golden retriever puppy runs through sunflowers at sunset","duration":5,"resolution":"480p","ratio":"16:9","generate_audio":true}' curl -s https://higgspayback.com/v1/videos/vid_xxx -H "Authorization: Bearer $F25_KEY" ## Errors HTTP 401 invalid_api_key, 402 balance / free_limit / card_required, 403 invite_only (only invited accounts can create for now), 422 image_too_small (a reference image sent as data is smaller than the minimum side; no credit is held; the body has "side", "px", "min"), 429 busy / too_many, 451 region_blocked. Every error body: { "ok": false, "error": "", "message": "" } ## Notes for AI agents - Read cost_usd from the finished video, not the estimate. - Do not resend a create request after a timeout without first listing GET /v1/videos (it may already exist). - Generated videos carry metadata saying they were made with AI. Keep it.