Genereer video's en afbeeldingen met je eigen tools
Maak een sleutel aan, roep de API aan met Bearer-authenticatie en poll de taakstatus totdat je resultaat klaar is. Werkt met Claude Code, Codex en elke HTTP-client.
Snel aan de slag
Stap 1
Sleutel aanmaken
Genereer een API-sleutel in je dashboard. Deze wordt slechts één keer getoond, dus bewaar hem op een veilige plek.
Stap 2
API aanroepen
Stuur een POST-verzoek met je Bearer key en een Idempotency-Key-header.
Stap 3
Resultaat opvragen
Bevraag het taakstatus-eindpunt totdat de status 'voltooid' of 'mislukt' is, en lees dan de uitvoer.
Authenticatie
Elk verzoek wordt geauthenticeerd met een Bearer API-sleutel in de Authorization-header.
Authorization: Bearer sk_live_your_api_key
Content-Type: application/json
Idempotency-Key: a-unique-id-per-requestSeedance Video
Tekst, afbeelding of media naar video.
/api/v1/video/seedanceParameters
| Parameter | Type | Verplicht | Standaard | Toegestane waarden |
|---|---|---|---|---|
modeGeneration mode. | string | Optioneel | text-to-video | text-to-videoimage-to-videomedia-to-video |
quality_tierQuality tier. | string | Optioneel | standard | standardpro |
channelRendering channel. | string | Optioneel | standard | standardrealwild |
promptText prompt. | string | Verplicht | — | 3–10000 chars |
aspect_ratioAspect ratio. | string | Optioneel | 16:9 | 1:121:94:33:416:99:16 |
durationClip duration. | string | Optioneel | 5 | 4–15 (seconds) |
resolutionOutput resolution. | string | Optioneel | 720p | 720p1080p |
image_urlStart frame — required for image-to-video. | string (URL) | Optioneel | — | public https URL |
end_image_urlOptional end frame. | string (URL) | Optioneel | — | public https URL |
media_urlsRequired for media-to-video. | string[] (URL) | Optioneel | — | ≤ 12 public https URLs |
generate_audioGenerate an audio track. | boolean | Optioneel | true | truefalse |
fixed_lensLock the camera lens. | boolean | Optioneel | false | truefalse |
seedNot supported on the real channel. | integer | Optioneel | — | -1 – 4294967295 |
Taak indienen
curl -X POST https://seedance2ai.io/api/v1/video/seedance \
-H "Authorization: Bearer $SEEDANCE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: demo-video-001" \
-d '{
"mode": "text-to-video",
"quality_tier": "standard",
"prompt": "A cinematic shot of a glass train crossing a snowy mountain bridge",
"aspect_ratio": "16:9",
"duration": "5",
"resolution": "720p"
}'GPT Image 2
Nauwkeurige beeldgeneratie.
/api/v1/image/gpt-image-2Parameters
| Parameter | Type | Verplicht | Standaard | Toegestane waarden |
|---|---|---|---|---|
typeGeneration type. | string | Verplicht | — | text-to-imageimage-to-image |
channelGeneration channel. economy is lower-cost with polling-based delivery. | string | Optioneel | standard | standardeconomy |
promptText prompt. | string | Verplicht | — | 3–20000 chars |
resolutionOutput resolution. auto only supports 1K; 1:1 cannot use 4K on the standard channel. | string | Verplicht | — | 1K2K4K |
aspectRatioAspect ratio. | string | Verplicht | — | auto1:15:49:1621:916:94:33:24:53:42:32:11:23:11:39:21 |
batchCountNumber of images. | integer | Optioneel | 1 | 1–4 |
imageUrlsRequired for image-to-image. | string[] (URL) | Optioneel | — | 1–10 public https URLs |
Taak indienen
curl -X POST https://seedance2ai.io/api/v1/image/gpt-image-2 \
-H "Authorization: Bearer $SEEDANCE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: demo-gpt-image-001" \
-d '{
"type": "text-to-image",
"prompt": "Editorial product photo of a transparent running shoe on chrome",
"resolution": "1K",
"aspectRatio": "1:1"
}'Nano Banana Pro
Gestileerde, premium beeldoutput.
/api/v1/image/nano-banana-proParameters
| Parameter | Type | Verplicht | Standaard | Toegestane waarden |
|---|---|---|---|---|
typeGeneration type. | string | Verplicht | — | text-to-imageimage-to-image |
promptText prompt. | string | Verplicht | — | 3–10000 chars |
image_sizeAspect ratio. | string | Optioneel | auto | 1:19:1616:93:44:33:22:35:44:521:9auto |
output_formatImage format. | string | Optioneel | png | pngjpeg |
resolutionOutput resolution. | string | Optioneel | 1K | 1K2K4K |
image_urlsRequired for image-to-image. | string[] (URL) | Optioneel | — | 1–8 public https URLs |
Taak indienen
curl -X POST https://seedance2ai.io/api/v1/image/nano-banana-pro \
-H "Authorization: Bearer $SEEDANCE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: demo-nbp-001" \
-d '{
"type": "text-to-image",
"prompt": "A premium packaging mockup for an AI video studio",
"image_size": "1:1",
"resolution": "1K",
"output_format": "png"
}'Taakstatus controleren
Poll tot de status voltooid of mislukt is.
curl https://seedance2ai.io/api/v1/tasks/sd2_xxxxx \
-H "Authorization: Bearer $SEEDANCE_API_KEY"{
"id": "sd2_xxxxx",
"status": "completed",
"model": "seedance",
"output": { "video_url": "https://..." },
"credits_used": 30
}Foutcodes
| Code | HTTP | Betekenis |
|---|---|---|
unauthorized | 401 | Missing, invalid, or revoked API key. |
invalid_request | 400 | Bad input or unsupported field. |
insufficient_credits | 402 | Not enough credits on the balance. |
rate_limited | 429 | Too many requests for this account. |
idempotency_conflict | 409 | Same Idempotency-Key reused with a different body, or still running. |
service_busy | 503 | Temporary upstream or credit-concurrency issue. Retry. |
not_found | 404 | Task does not exist or does not belong to this key owner. |
internal_error | 500 | Unexpected server-side failure. |
Skill
Installeer de Seedance-skill in Claude Code, Codex of een andere agent — hij schrijft filmische prompts en rendert ze voor je via de API.
# Clone into Claude Code's skills folder
git clone https://github.com/tkaptop/seedance-skill ~/.claude/skills/seedanceGebruik met Claude Code
Klik op Kopiëren zodat AI de volledige API als schone Markdown vastpakt, plak het in Claude Code of Codex en laat het de integratie opzetten. Of wijs de agent direct naar het raw text-eindpunt.
Veelgestelde vragen
Wie kan de API gebruiken?
Iedereen met credits. Er is geen planbeperking — elk account met credits kan een sleutel aanmaken en de API aanroepen.
Hoe krijg ik credits?
Waardeer op of abonneer je op de prijzenpagina. Credits worden direct aan je saldo toegevoegd.
Worden credits gedeeld tussen de website en de API?
Ja — je persoonlijke creditsaldo wordt gebruikt voor zowel webgeneratie als API-aanroepen. In een team gebruiken API-aanroepen het eigen persoonlijke tegoed van elk lid, niet de gedeelde teampool.
Hoe begin ik?
Maak een API-sleutel aan in je dashboard en roep de endpoints aan met een Bearer-token (zie Quickstart hierboven).
Wat als een call insufficient_credits retourneert?
Je saldo is leeg — laad op via de prijzenpagina en probeer het opnieuw.