x402 Video — AI Video Generation (pay-per-call, no account)

v0.1.3
io.github.x402-video/seedance-video-generation Checked 4 days ago Published 5 months ago

Pay-per-call AI video generation (Seedance text-to-video) via x402.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_skus List video SKUs and prices

Live catalog of pay-per-call video generation endpoints with current USD prices (free call). Fixed-price SKUs (~$0.45-0.56 for 5s 720p) and custom endpoints (4-15s, up to 1080p, optional audio).

get_stats Gateway reliability stats

Live public stats: success rate, p50 generation seconds, total delivered (free call).

quote_price Quote exact price (no payment)

Get the exact USDC price for a generation request without paying. Free call — useful before generate_video.

ParameterTypeDescription
prompt *stringText prompt describing the video
camera_fixedbooleanLock the camera in place
durationintegerSeconds, 4-15 (custom pricing)
generate_audiobooleanGenerate audio track (+10% price)
modelstringseedance-fast: cheaper/faster. seedance: highest quality.
ratiostringAspect ratio (default 16:9; 9:16 for vertical/shorts)
resolutionstring480p/720p/1080p (custom pricing)
seedintegerDeterministic seed (-1 = random)

generate_video Generate a video (paid)

Generate an AI video, paying per call in USDC on Base via x402 (gasless EIP-3009 signature). Quotes the exact price first and refuses if it exceeds MAX_USD_PER_CALL (default $5). Returns a job_id — poll get_job until status is 'succeeded' (typically ~2 minutes). Prompts are screened before payment; rejected prompts are never charged.

ParameterTypeDescription
prompt *stringText prompt describing the video
camera_fixedbooleanLock the camera in place
durationintegerSeconds, 4-15 (custom pricing)
generate_audiobooleanGenerate audio track (+10% price)
modelstringseedance-fast: cheaper/faster. seedance: highest quality.
ratiostringAspect ratio (default 16:9; 9:16 for vertical/shorts)
resolutionstring480p/720p/1080p (custom pricing)
seedintegerDeterministic seed (-1 = random)

get_job Check job status / get video URL

Poll a generation job (free call). status: queued/running/succeeded/failed. On success returns video_url (download within 24h).

ParameterTypeDescription
job_id *stringJob id returned by generate_video