Perseworks PERSEWORKS
Docs

Quickstart

Generate AI video and chat through an OpenAI-compatible API. If you already use the OpenAI SDK, change one line — the base_url.

↓ Download API reference (PDF)
  1. 1. Create an sk- key in the console API Keys
  2. 2. Point base_url at https://api.perseworks.hk/v1
  3. 3. Submit a video job, then poll for the result

Generate a video

Video is async — submit returns a task id; poll it until it succeeds.

curl https://api.perseworks.hk/v1/video/generations \
  -H "Authorization: Bearer sk-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2.0",
    "prompt": "a cat surfing a wave, cinematic",
    "resolution": "1080p",
    "durationSec": 5
  }'

resolution: 720p · 1080p · 4K (1080p and 4K on Seedance 2.0 only; Fast/Mini are 720p). aspectRatio: 16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 21:9 · adaptive. durationSec: up to 15. image: optional reference-image URL for image-to-video.

Poll for the result

curl https://api.perseworks.hk/v1/video/generations/vid_... \
  -H "Authorization: Bearer sk-..."
# → { "status": "running" }        (keep polling)
# → { "status": "succeeded", "video_url": "https://...", "duration": 5 }

Chat (streaming)

curl https://api.perseworks.hk/v1/chat/completions \
  -H "Authorization: Bearer sk-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seed-2.0-mini",
    "messages": [{"role": "user", "content": "Hello!"}],
    "stream": true
  }'

Models

Pass the model id in your request. The live list is always GET /v1/models.

seedance-2.0 video 720p / 1080p / 4K · text + image to video · audio
seedance-2.0-fast video 720p · faster generation
seedance-2.0-mini video 720p · lowest cost
doubao-seed-2-0-pro chat 256K context · OpenAI-compatible
seed-2.1-pro chat strongest chat model
seed-2.0-mini chat fast + low cost

Seedream (image), embeddings, and audio are on the roadmap.

Endpoints

POST /v1/video/generations Submit a Seedance video job
GET /v1/video/generations/:id Poll a video job for its result
GET /v1/models List available models
POST /v1/chat/completions Chat completion (supports stream: true)
POST /v1/images/generations Seedream images · coming soon

Image (Seedream), embeddings, and audio endpoints are on the roadmap.