AI Video APIAI Video API

Getting Started

Get up and running with API Market in under 5 minutes.

1. Create an Account

Click the Sign in button in the top-right corner and continue with Google to create your account.

2. Get Your API Key

Navigate to Dashboard > API Keys and click "Create API Key". Copy the key immediately — it won't be shown again.

3. Top Up Credits

Go to Dashboard > Billing and purchase credits. 1 credit = $0.005 USD.

4. Make Your First Request

curl -X POST https://api.aivideoapi.ai/v1/videos/generations \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seedance-2.0",
    "callback_url": "https://your-server.com/webhook",
    "input": {
      "prompt": "A drone shot flying over mountains at sunset, cinematic lighting",
      "duration": 5,
      "aspect_ratio": "16:9",
      "resolution": "480p"
    }
  }'

You'll receive a response with a task ID:

{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "cbf6b69d-4f03-4817-8ed7-94c0292184a8"
  }
}

5. Get the Result

Polling: Query the task status until it's completed:

curl https://api.aivideoapi.ai/v1/tasks/cbf6b69d-4f03-4817-8ed7-94c0292184a8 \
  -H "Authorization: Bearer sk-your-api-key"

Callback: Or pass callback_url in the request body to receive automatic notifications when the task completes or fails. See Callback for details.

Quick Integration with AI

Click the Copy Markdown button in the top-right corner of any doc page, then paste it into your AI assistant (ChatGPT, Claude, Cursor, etc.) along with your requirements. The AI can generate ready-to-use integration code for you in seconds.

Next Steps