Skip to main content
The TypeScript SDK wraps every endpoint with full types, smart defaults, and a waitFor helper that polls async jobs to completion.

Install

Initialize

Generations

Image (synchronous)

Video (asynchronous + waitFor)

Cancel

Comparisons

Models

Uploads (for image-to-image / image-to-video)

Webhooks

See Webhooks for signature verification snippets.

Error handling

Edge runtime

The SDK uses fetch natively and works on Vercel Edge, Cloudflare Workers, Deno, Bun.