Public API
Build image and video generation into your product.
The public API exposes customer-safe jobs, usage, and results while keeping provider accounts, cookies, tokens, and rotation details private.
https://admin.seedance2unlimited.space- Transport
- HTTPS + JSON
- Authentication
- Bearer API key
- Workflow
- Asynchronous jobs
Authentication
Customer API keys
Send the customer key in every `/v1` request. Keys use either live or test mode and are shown only once when created.
Authorization: Bearer ak_live_your_keyReliability
Idempotent generation
Every generate request requires a unique `Idempotency-Key`. Retrying the same payload returns the original job; reusing the key with a different payload returns HTTP 409.
/v1/images/generateGenerate an image
Creates a customer-owned GPT Image 2 job. Customer credits are reserved before provider work starts.
{
"prompt": "cinematic product photo",
"quality": "LOW",
"size": "16:9_SMALL"
}{
"ok": true,
"jobId": "job_...",
"status": "processing",
"type": "image",
"chargedCredits": 20
}promptstringRequired generation instruction.qualityenum`LOW` or `MEDIUM`.sizeenum`16:9_SMALL`, `1:1_SMALL`, `2:3_SMALL`, or `9:16_SMALL`./v1/videos/generateGenerate a video
Creates a Seedance 2.0 Fast job with optional audio and image guidance.
{
"prompt": "drone shot over rice fields",
"size": "16:9_SMALL",
"duration": 15,
"motionHasAudio": true
}{
"ok": true,
"jobId": "job_...",
"status": "processing",
"type": "video",
"chargedCredits": 9000
}Image guidance
Reference images
Image and video requests accept one public HTTPS URL, data URL, or base64 source. The gateway selects a provider account with sufficient balance before uploading the reference.
"referenceImage": {
"imageUrl": "https://example.com/reference.png",
"strength": "MID"
}/v1/jobs/:jobIdSynchronize and return job status.
/v1/jobs/:jobId/resultReturn the completed image or video URL.
Poll job status and result
/v1/usageRead customer usage
Returns the total customer balance, active reservations, and immediately available credits.
{
"creditsBalance": 12000,
"creditsReserved": 9000,
"creditsAvailable": 3000
}Error contract
Consistent JSON errors
400Invalid requestValidation or missing idempotency key.401Invalid API keyBearer key missing, revoked, or inactive.402Balance lowCustomer has insufficient available credits.409ConflictIdempotency key reused with another payload.429LimitedRate, queue, or concurrency limit reached.503UnavailableProvider capacity or job status temporarily unavailable.Operator API
Admin and automation access
The browser console uses email, password, TOTP, secure cookies, and CSRF protection. Server-to-server scripts may continue using `MY_PRIVATE_API_KEY`.
/api/public/customers/api/public/customersCustomer management
Create customer identities, assign plans, change status, and inspect available credits.
/api/public/customers/:customerId/api-keysAPI key management
Create live or test keys. Full key material is returned once; storage keeps only its SHA-256 hash and prefix.
/api/public/customers/:customerId/creditsCredits and ledger
Top up or adjust customer balance without reducing it below active reservations. Audit events remain append-only.
/api/accountsProvider account pool
Import provider sessions, inspect subscription tokens, rotate accounts, and run operator generation tests from `/admin`.