Skip to main content

Quickstart

Create images and videos with the same async OpenAPI contract.

Step 1: Get an API key

  1. Register
  2. Open API keys
  3. Create a key and store it securely (shown once)

Step 2: Top up

  1. Open Recharge
  2. Complete payment before calling the API

Step 3: Note the base URL

The console shows a base URL like (origin only, no path):
API paths start with /v1. Auth: Authorization: Bearer <API Key>.

Image example (GPT Image 2)

Video example (Seedance 2.0 MD)

Success responses look like { "code": 20000, "msg": "...", "data": { "task_id": "...", "status": "queued", ... } }.

Step 4: Poll the task

For video, use /v1/videos/{task_id}. When status is completed, read data.result.image_url or data.result.video_url.

Next steps

API reference

Models, parameters, billing, and status codes