واجهات برمجة الفيديو لوكلاء الذكاء الاصطناعي

قم بدمج قدرات إنشاء قوية بالذكاء الاصطناعي في تطبيقك.

يقدم AI Video Maker قدراته الأساسية على شكل Skills و APIs. يدعم حاليًا ميزتين رئيسيتين: «تحويل النص إلى فيديو» و«تحويل الصورة إلى فيديو». يمكنك إنشاء محتوى فيديو بسهولة من النصوص أو الصور ودمج هذه القدرات في منتجاتك أو سير العمل أو الوكلاء.

OpenclawOpenclaw
CodexCodex
Claude CodeClaude Code

نشر بنقرة واحدة لـ AI Video Maker

تثبيت وتكوين مفتاح API كمتغير بيئة

API Reference

Base URL: https://aivideomaker.ai

Authentication

All requests require an API key passed in the request header:

HeaderRequiredDescription
keyYesYour API key

Endpoints

1. Create generation task

POST /api/v1/generate/{model}

Create a video generation task. Returns a task ID and URLs for querying / cancelling.

Request headers

HeaderRequiredDescription
keyYesYour API key
webhookUrlNoCallback URL for task status notifications

Path parameter

ParameterRequiredAllowed values
modelYest2v / i2v / lv / t2v_v3 / i2v_v3

Model parameters

t2v — Text to Video

FieldTypeRequiredDescription
promptstringYesText prompt describing the video
aspectRatiostringYes16:9 / 9:16 / 1:1
durationstringYes5 or 8 (seconds)

Credits: duration × 1

Example request

POST /api/v1/generate/t2v

{
  "prompt": "A cinematic sunset over a futuristic city skyline",
  "aspectRatio": "16:9",
  "duration": "8"
}

i2v — Image to Video

FieldTypeRequiredDescription
imagestringYesPublic image URL or data:image/...;base64,...
promptstring or nullNoOptional text prompt
durationstringYes5 or 8 (seconds)

Credits: duration × 1


lv — Long Video

FieldTypeRequiredDescription
imagestringYesFirst-frame image URL or data:image/...;base64,...
promptstring[]YesArray of segment prompts, max 6 items

Credits: number of prompts × 5 × 15

Duration is calculated automatically: each prompt segment = 5 seconds.


t2v_v3 — Text to Video V3

FieldTypeRequiredDescription
promptstringYesText prompt
aspectRatiostringYes16:9 / 9:16 / 1:1
durationstringYes5 / 10 / 15 / 20 (seconds)

Credits: duration × 10


i2v_v3 — Image to Video V3

FieldTypeRequiredDescription
imagestringYesPublic image URL or data:image/...;base64,...
promptstring or nullNoOptional text prompt
durationstringYes5 / 10 / 15 / 20 (seconds)

Credits: duration × 10


Success response

{
  "status": "SUBMITTED",
  "taskId": "ckxxxxxxxx",
  "responseUrl": "https://aivideomaker.ai/api/v1/tasks/ckxxxxxxxx",
  "statusUrl": "https://aivideomaker.ai/api/v1/tasks/ckxxxxxxxx/status",
  "cancelUrl": "https://aivideomaker.ai/api/v1/tasks/ckxxxxxxxx/cancel"
}

Error response

{
  "status": "FAILED",
  "message": "Insufficient credits"
}

2. List tasks

GET /api/v1/tasks

Returns all tasks under the current API key, sorted by creation time (newest first).

Response example

{
  "tasks": [
    {
      "id": "ckxxxxxxxx",
      "createdAt": "2026-03-19T08:00:00.000Z",
      "model": "t2v",
      "input": { "prompt": "...", "aspectRatio": "16:9" },
      "output": null,
      "status": "PROGRESS",
      "completedAt": null
    }
  ]
}

3. Get task details

GET /api/v1/tasks/{taskId}

Returns full task information including input, output, status, and completion time.


4. Get task status

GET /api/v1/tasks/{taskId}/status

Returns the current task status only. Ideal for polling.

Response

{
  "status": "COMPLETED"
}

5. Cancel task

PUT /api/v1/tasks/{taskId}/cancel

Cancel a task. Only works when the task is still in SUBMITTED status.


Task status values

StatusDescription
SUBMITTEDTask submitted, waiting to be processed
PROGRESSTask is being processed
COMPLETEDTask finished successfully
FAILEDTask failed (credits are refunded automatically)
CANCELTask was cancelled

Rate limiting

Task query endpoints are rate-limited to 60 requests per minute per IP. When exceeded, the API returns HTTP 429 with a Retry-After header.

المهارات المتاحة

يقوم AI Video Maker بتغليف قدراته في إنشاء الفيديو ضمن Skills لتسهيل التكامل.

تحويل النص إلى فيديو

إنشاء فيديو كامل من وصف نصي. يفهم الذكاء الاصطناعي المشاهد والحركات ويولد محتوى متماسك.

نص إلى فيديوفهم المشاهدتوليد الحركاتإنشاء بأنماط متعددة

تحويل الصورة إلى فيديو

تحويل صورة ثابتة إلى فيديو ديناميكي مع حركات طبيعية.

صورة إلى فيديوتوليد الحركاتحركة الكاميراتوسيع الإطارات

عرض تأثيرات إنشاء الفيديو

يمكنك إنشاء فيديوهات بسهولة من النصوص أو الصور.

استخدام AIVideoMaker Skills في ClawHub

تتوفر قدرات الفيديو كـ Skills داخل ClawHub.

الإصدار الحالي: V1.0.2
الطريقة 1
1. تنزيل الحزمة
2. تفعيل الميزة
الطريقة 2
1. البحث عن AIVideoMaker Skills في ClawHub
2. اتباع تعليمات التثبيت
3. تفعيل المهارة