API Integration · REST v1

Developer API Documentation

Integrate WAHM AI video generation directly into your apps, pipelines, and automated workflows using a single unified REST endpoint.

Authentication
Get your API key

Pass your API key in the Authorization header as a Bearer token. Create or revoke keys anytime below.

Base URL
https://api.wahmai.ai

Every output URL is proxied through WAHM AI for privacy and range-seeking support.

Job Lifecycle
queued → processing → succeeded

Failed jobs transition to failed and refund credits automatically.

API Keys & Authentication

Authenticate every REST request with a Bearer secret key

Authorization: Bearer WahmAI-sk-…
01.

Submit a generation

POST/api/v1/video

Charges your studio wallet and returns HTTP 202 immediately with a task identifier. Requests never block until rendering completes.

ParameterDescription
model
string
required
Canonical slug from the model list (or model_id/name).
modality
string
required
TEXT (text-to-video) or IMAGE (image-to-video).
prompt
string
required
Scene description sent to the model.
duration
number
required
Seconds — must be one of the model's allowed durations.
resolution
string
optional
Label or pixel token (e.g. 1080p).
tier
string
optional
Pricing tier; defaults to standard.
with_audio
boolean
optional
Enable native audio for supported models.
seed
number
optional
Deterministic seed for reproducible renders.
jsonRequest Body
{
  "model": "kling-3-0-omni-text-to-video",
  "modality": "TEXT",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 10,
  "resolution": "1080p",
  "with_audio": false
}
bashcURL
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-3-0-omni-text-to-video",
  "modality": "TEXT",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 10,
  "resolution": "1080p",
  "with_audio": false
}'
pythonPython
import requests

resp = requests.post(
    "https://api.wahmai.ai/api/v1/video",
    headers={"Authorization": "Bearer WahmAI-sk-YOUR_KEY"},
    json={
        "model": "kling-3-0-omni-text-to-video",
        "modality": "TEXT",
        "prompt": "A neon-lit city at night, cinematic drone shot",
        "duration": 10,
        "resolution": "1080p",
        "with_audio": False,
    },
)
resp.raise_for_status()
job = resp.json()
print(job["id"], job["status"], job["poll_url"])
httpResponse — 202 Accepted
HTTP/1.1 202 Accepted

{
  "id": "wahmai_vid_8k3m2p9q1s7t4v6x0z5b2n",
  "status": "queued",
  "model": "kling-3-0-omni-text-to-video",
  "modality": "TEXT",
  "created_at": "2026-10-24T18:04:11.482Z",
  "duration_sec": 10,
  "cost": { "points": 180, "usd": 0.18, "egp": 8.82 },
  "output_url": null,
  "error": null,
  "refunded": null,
  "balance": { "points": 4820 },
  "poll_url": "/api/v1/video/wahmai_vid_8k3m2p9q1s7t4v6x0z5b2n"
}
02.

Poll for status

GET/api/v1/video/{id}

Poll every ~10 seconds using poll_after_ms (10000 while active, 0 once terminal). Stop immediately when status reaches succeeded or failed.

StatusMeaning
queuedAccepted and waiting for a rendering worker.
processingThe model is actively rendering the clip.
succeededoutput_url holds the final downloadable MP4.
failedGeneration failed; credits are refunded automatically.
bashPolling Request
curl https://api.wahmai.ai/api/v1/video/wahmai_vid_8k3m2p9q1s7t4v6x0z5b2n \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY"
jsonWhile rendering (processing)
{
  "id": "wahmai_vid_8k3m2p9q1s7t4v6x0z5b2n",
  "status": "processing",
  "progress": 63,
  "model": "kling-3-0-omni-text-to-video",
  "modality": "TEXT",
  "created_at": "2026-10-24T18:04:11.482Z",
  "completed_at": null,
  "duration_sec": 10,
  "has_audio": false,
  "resolution": "1080p",
  "cost": { "points": 180, "usd": 0.18, "egp": 8.82 },
  "video_url": null,
  "output_url": null,
  "error": null,
  "refunded": null,
  "poll_after_ms": 10000
}
pythonPolling Loop (Python)
import time, requests

BASE, KEY = "https://api.wahmai.ai", "WahmAI-sk-YOUR_KEY"
HEADERS = {"Authorization": f"Bearer {KEY}"}

while True:
    time.sleep(10)  # = poll_after_ms / 1000
    state = requests.get(f"{BASE}{job['poll_url']}", headers=HEADERS).json()
    print(state["status"], state["progress"])

    if state["status"] == "succeeded":
        mp4 = requests.get(f"{BASE}{state['output_url']}", headers=HEADERS)
        mp4.raise_for_status()
        with open("result.mp4", "wb") as file:
            file.write(mp4.content)
        print("saved result.mp4")
        break

    if state["status"] == "failed":
        print(state["error"]["message"], "refunded:", state["refunded"])
        break
03.

Retrieve the MP4

GET/api/v1/video/{id}/download

When status becomes succeeded, fetch output_url through our streaming proxy with your Bearer key and redirects enabled (curl -L). Completed API renders also appear in your Gallery automatically.

Automatic failure refunds

error is safe to display to end users and refunded.points confirms the automatic wallet credit. Never retry a failed task ID — submit a new generation request.

jsonPoll Succeeded
{
  "id": "wahmai_vid_8k3m2p9q1s7t4v6x0z5b2n",
  "status": "succeeded",
  "progress": 100,
  "model": "kling-3-0-omni-text-to-video",
  "modality": "TEXT",
  "created_at": "2026-10-24T18:04:11.482Z",
  "completed_at": "2026-10-24T18:05:52.117Z",
  "duration_sec": 10,
  "has_audio": false,
  "resolution": "1080p",
  "cost": { "points": 180, "usd": 0.18, "egp": 8.82 },
  "video_url": "/api/v1/video/wahmai_vid_8k3m2p9q1s7t4v6x0z5b2n/download",
  "output_url": "/api/v1/video/wahmai_vid_8k3m2p9q1s7t4v6x0z5b2n/download",
  "error": null,
  "refunded": null,
  "poll_after_ms": 0
}
bashDownload File
# video_url / output_url point at our streaming proxy — always fetch it
curl -L "https://api.wahmai.ai/api/v1/video/wahmai_vid_8k3m2p9q1s7t4v6x0z5b2n/download" \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -o result.mp4
jsonPoll Failed
{
  "id": "wahmai_vid_8k3m2p9q1s7t4v6x0z5b2n",
  "status": "failed",
  "progress": 0,
  "model": "kling-3-0-omni-text-to-video",
  "modality": "TEXT",
  "created_at": "2026-10-24T18:04:11.482Z",
  "completed_at": "2026-10-24T18:06:03.204Z",
  "duration_sec": 10,
  "has_audio": false,
  "resolution": "1080p",
  "cost": { "points": 180, "usd": 0.18, "egp": 8.82 },
  "video_url": null,
  "output_url": null,
  "error": {
    "code": "GENERATION_FAILED",
    "message": "The video could not be generated. Your points were refunded."
  },
  "refunded": { "points": 180 },
  "poll_after_ms": 0
}

Model Catalogue

Exact model slugs

Pass any full slug from the model column below, or query GET /api/v1/models dynamically.

Model SlugDisplay NameDurations (s)Resolutions
kling-3-0-omni-text-to-videoKling 3.0 Omni Text To Video5, 10720P, 1080P, 4K
kling-v3-turbo-text-to-videoKling V3 Turbo Text To Video5, 10720P, 1080P
kling-2-6-text-to-videoKling 2.6 Text To Video5, 10Standard
pixverse-v6-text-to-videoPixverse V6 Text To Video5, 10, 15360P, 540P, 720P, 1080P
wan-2-2-a14b-text-to-video-turboWan 2.2 A14b Text To Video Turbo5, 10720P, 480P
hailuo-02-text-to-video-standardHailuo 02 Text To Video Standard6768P
minimax-h3-text-to-videoMinimax H3 Text To Video5, 6, 10768P, 2K
grok-imagine-text-to-videoGrok Imagine Text To Video5, 6, 10480P, 720P, 1080P
google-gemini-omni-flash-1-2Google Gemini Omni Flash 1.25, 8, 10360P, 720P, 1080P, 4K
kling-4-0-flash-keyframe-to-videoKling 4.0 Flash Keyframe To Video5, 10720P
kling-4-0-keyframe-to-videoKling 4.0 Keyframe To Video5, 10, 30720P, 1080P, 4K
pixverse-v6-max-image-to-videoPixverse V6 Max Image To Video5, 10360P, 540P, 720P, 1080P
pixverse-v6-image-to-videoPixverse V6 Image To Video5, 10360P, 540P, 720P, 1080P
pixverse-v6-transitionPixverse V6 Transition5, 10360P, 540P, 720P, 1080P
vidu-q4-image-to-videoVidu Q4 Image To Video5, 10540P, 720P, 1080P, 2K, 4K
hailuo-02-text-to-video-proHailuo 02 Text To Video Pro61080P
kling-3-0-omni-image-to-videoKling 3.0 Omni Image To Video5, 10720P, 1080P, 4K
kling-v3-turbo-image-to-videoKling V3 Turbo Image To Video5, 10720P, 1080P
minimax-h3-image-to-videoMinimax H3 Image To Video5, 6, 10768P, 2K
grok-imagine-video-1-5-previewGrok Imagine Video 1.5 Preview5, 8, 10480P, 720P, 1080P
google-gemini-omni-flash-1-2-extendGoogle Gemini Omni Flash 1.2 Extend5, 10360P, 720P
pixverse-v6-extendPixverse V6 Extend5, 10360P, 540P, 720P, 1080P
grok-imagine-extendGrok Imagine Extend6, 10480P, 720P
kling-3-0-omni-transformationKling 3.0 Omni Transformation5, 10720P, 1080P, 4K
kling-2-6-motion-controlKling 2.6 Motion Control5, 10720P, 1080P
wan-3-0-video-primeWan 3.0 Video Prime5, 10480P, 720P, 1080P
wan-3-0-videoWan 3.0 Video5, 10480P, 720P, 1080P
kling-4-0-flash-reference-to-videoKling 4.0 Flash Reference To Video5, 10720P
kling-4-0-reference-to-videoKling 4.0 Reference To Video5, 10720P, 1080P, 4K
vidu-q4-reference-to-videoVidu Q4 Reference To Video5, 10540P, 720P, 1080P, 2K, 4K
kling-3-0-omni-reference-to-videoKling 3.0 Omni Reference To Video5, 10720P, 1080P, 4K
google-gemini-omni-flash-1-1Google Gemini Omni Flash 1.14, 6, 8, 10360P, 720P, 1080P, 4K
pixverse-v6-reference-to-videoPixverse V6 Reference To Video5, 10360P, 540P, 720P, 1080P
bytedance-seedance-2-5Bytedance Seedance 2.55, 10, 15480P, 720P, 1080P, 4K
bytedance-seedance-2Bytedance Seedance 25, 10480P, 720P, 1080P, 4K
bytedance-seedance-2-fastBytedance Seedance 2 Fast5, 10480P, 720P
bytedance-seedance-2-miniBytedance Seedance 2 Mini5, 10480P, 720P
minimax-h3-reference-to-videoMinimax H3 Reference To Video5, 6, 10768P, 2K
wan-2-2-a14b-speech-to-video-turboWan 2.2 A14b Speech To Video Turbo5, 10480P, 580P, 720P
kling-3-0-videoKling 3.0 Video5, 10720P, 1080P, 4K

Model Cookbook

Supported Models Reference

All 40 models share one request contract — only the model slug and supported parameters vary.

01.

TEXT TO VIDEO

8 models

موديلات تعتمد بشكل أساسي على الوصف النصي فقط لإنشاء الفيديوهات.

Kling 3.0 Omni Text To Video

4K
kling-3-0-omni-text-to-video
text
Parameters
promptA wide shot of the fox entering the snowy forest.
customize_multi_shotstrue
multi_prompt[{"prompt":"A wide shot of the fox entering the snowy forest.","duration":2},{"prompt":"A cinematic close-up of the fox looking toward the sunrise.","duration":3}]
audiofalse
resolution720p
aspect_ratio16:9
duration5

الواجهة: يجب توفير خيارات (Resolution: 720p/1080p/4k)، (Aspect Ratio)، (Audio switch). الباك إند: يدعم اللقطات المتعددة (customize_multi_shots) بحد أقصى 6 لقطات.

bashkling-3-0-omni-text-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-3-0-omni-text-to-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "720P",
  "with_audio": false
}'

Kling V3 Turbo Text To Video

1080P
kling-v3-turbo-text-to-video
text
Parameters
promptOutdoor terrace of a European villa...
duration5
aspect_ratio16:9
resolution720p

موديل سريع واقتصادي. يجب توفيره كخيار Turbo للعميل.

bashkling-v3-turbo-text-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-v3-turbo-text-to-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "720P"
}'

Kling 2.6 Text To Video

Standard
kling-2-6-text-to-video
text
Parameters
promptScene: A fashion live-streaming sales setting...
soundfalse
aspect_ratio1:1
duration5

السعر هنا ثابت للفيديو بالكامل وليس بالثانية الواحدة (5 ثواني أو 10 ثواني) — يظهر تنبيه واضح في لوحة الإدارة.

bashkling-2-6-text-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-2-6-text-to-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "Standard",
  "with_audio": false
}'

Pixverse V6 Text To Video

1080P
pixverse-v6-text-to-video
text
Parameters
promptA cinematic aerial shot of a futuristic coastal city at sunrise, smooth camera movement
duration5
quality720p
aspect_ratio16:9
generate_audio_switchfalse
generate_multi_clip_switchfalse
seed123456

مدة الفيديو من 1 إلى 15 ثانية. واجهة العميل يجب أن تحتوي على مفتاح لتوليد الصوت (generate_audio_switch).

bashpixverse-v6-text-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "pixverse-v6-text-to-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "360P",
  "seed": 42,
  "with_audio": false
}'

Wan 2.2 A14b Text To Video Turbo

480P
wan-2-2-a14b-text-to-video-turbo
text
Parameters
promptDrone shot, fast traversal, starting inside a cracked, frosty circular pipe...
resolution720p
aspect_ratio16:9
enable_prompt_expansionfalse
accelerationnone
nsfw_checkerfalse

موديل عالي السرعة. الواجهة يجب أن توفر خيار (nsfw_checker) لتفعيل أو تعطيل فلتر الأمان.

bashwan-2-2-a14b-text-to-video-turbo
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan-2-2-a14b-text-to-video-turbo",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "720P"
}'

Hailuo 02 Text To Video Standard

768P
hailuo-02-text-to-video-standard
text
Parameters
promptA llama and a raccoon battle it out in an intense table tennis match...
duration6
prompt_optimizertrue

الواجهة: يجب توفير مفتاح (prompt_optimizer) لتحسين البرومبت تلقائياً للعميل.

bashhailuo-02-text-to-video-standard
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "hailuo-02-text-to-video-standard",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 6,
  "resolution": "768P"
}'

Minimax H3 Text To Video

2K
minimax-h3-text-to-video
text
Parameters
promptA cat walking slowly on the beach at sunset, cinematic shot
aspect_ratio16:9
duration6

يدعم دقة 2K. التكلفة الإجمالية = سعر الثانية × (مدة الفيديو الناتج + مدة الفيديو المدخل) + تكلفة الصور الإضافية بعد أول 5 صور.

bashminimax-h3-text-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3-text-to-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "768P"
}'

Grok Imagine Text To Video

1080P
grok-imagine-text-to-video
text
Parameters
promptA couple of doors open to the right one by one randomly...
aspect_ratio2:3
modenormal
duration6
resolution480p

يحتوي على بارامتر مميز (mode: normal). يجب تضمينه في الباك إند.

bashgrok-imagine-text-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-text-to-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "480P"
}'
02.

IMAGE & TEXT TO VIDEO

12 models

موديلات تعتمد على صورة افتتاحية، صورة نهائية، أو صور مرجعية (Reference Images).

Google Gemini Omni Flash 1.2

4K
google-gemini-omni-flash-1-2
textimagescharacter_idsfirst_frame_urllast_frame_url
Parameters
promptThe character walks through a rainy street at night, neon reflections
duration8
aspect_ratio9:16
resolution720p
image_urls["https://example.com/ref1.png","https://example.com/ref2.png"]
character_ids["character_01hx8p0demo"]

الباك إند: الموديل لا يقبل دمج كل شيء معاً. إما (نص + صور مرجعية بحد أقصى 6 + شخصيات) أو (إطار أول وأخير فقط). لا ترسل image_urls مع first_frame_url. الواجهة يجب أن تبرز دعم دقة 4K.

bashgoogle-gemini-omni-flash-1-2
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "google-gemini-omni-flash-1-2",
  "prompt": "Animate this reference into a cinematic shot",
  "duration": 5,
  "resolution": "360P",
  "image_urls": [
    "https://example.com/image.png"
  ]
}'

Kling 4.0 Flash Keyframe To Video

720P
kling-4-0-flash-keyframe-to-video
textfirst_frame_url
Parameters
promptAnimate the supplied image as one continuous 10-second shot... REFERENCES: @first_frame is the exact opening frame.
first_frame_urlhttps://example.com/sample-media.png
duration5
resolution720p
aspect_ratio16:9

تحذير للمطور: نسخة Flash لا تدعم إطارات المنتصف (keyframes) أو الإطار الأخير. يجب توفير إدخال لصورة واحدة كإطار أول. الدقة المدعومة 720p فقط.

bashkling-4-0-flash-keyframe-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-4-0-flash-keyframe-to-video",
  "prompt": "Animate this reference into a cinematic shot",
  "duration": 5,
  "resolution": "720P",
  "first_frame_url": "https://example.com/first.png"
}'

Kling 4.0 Keyframe To Video

4K
kling-4-0-keyframe-to-video
textfirst_frame_urlkeyframe_urlslast_frame_url
Parameters
promptThe girl in @first_frame walks out, passes the street in @keyframe_1, and arrives at the party in @last_frame
duration10
resolution720p
first_frame_urlhttps://example.com/first.png
keyframe_urls["https://example.com/street.png"]
last_frame_urlhttps://example.com/party.png

الواجهة للعميل: يدعم رفع إطار أول، إطارات منتصف (حتى 8 إطارات)، وإطار أخير. يدعم دقة 4K وخيار HDR (1080P: +$0.0425/s، 4K: +$0.07/s) بمدة من 3 إلى 30 ثانية.

bashkling-4-0-keyframe-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-4-0-keyframe-to-video",
  "prompt": "Animate this reference into a cinematic shot",
  "duration": 5,
  "resolution": "720P",
  "first_frame_url": "https://example.com/first.png"
}'

Pixverse V6 Max Image To Video

1080P
pixverse-v6-max-image-to-video
textimage_urls
Parameters
promptUse the supplied image as the exact first frame...
image_urls["https://example.com/first-frame.png"]
quality720p
duration5
generate_audio_switchfalse
seed123456

يقبل صورة واحدة مصفوفة كـ array تحتوي URL واحد فقط. مدة الفيديو 1 إلى 15 ثانية.

bashpixverse-v6-max-image-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "pixverse-v6-max-image-to-video",
  "prompt": "Animate this reference into a cinematic shot",
  "duration": 5,
  "resolution": "360P",
  "seed": 42,
  "image_urls": [
    "https://example.com/image.png"
  ],
  "with_audio": false
}'

Pixverse V6 Image To Video

1080P
pixverse-v6-image-to-video
textimage_urls
Parameters
promptAnimate the subject with gentle wind and cinematic lighting
image_urls["https://example.com/input-image.png"]
duration5
quality720p
generate_audio_switchfalse
generate_multi_clip_switchfalse
seed123456

نفس إعدادات الماكس لكن بتكلفة أقل وجودة قياسية.

bashpixverse-v6-image-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "pixverse-v6-image-to-video",
  "prompt": "Animate this reference into a cinematic shot",
  "duration": 5,
  "resolution": "360P",
  "seed": 42,
  "image_urls": [
    "https://example.com/image.png"
  ],
  "with_audio": false
}'

Pixverse V6 Transition

1080P
pixverse-v6-transition
textfirst_frame_image_urllast_frame_image_url
Parameters
promptCreate a smooth transition from the first scene to the final scene
first_frame_image_urlhttps://example.com/first-frame.png
last_frame_image_urlhttps://example.com/last-frame.png
duration5
quality720p
generate_audio_switchfalse
seed123456

الواجهة: يجب أن تطلب من العميل إجبارياً صورة البداية (first_frame_image_url) وصورة النهاية (last_frame_image_url) لعمل الانتقال.

bashpixverse-v6-transition
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "pixverse-v6-transition",
  "prompt": "Animate this reference into a cinematic shot",
  "duration": 5,
  "resolution": "360P",
  "seed": 42,
  "first_frame_url": "https://example.com/first.png",
  "with_audio": false
}'

Vidu Q4 Image To Video

4K
vidu-q4-image-to-video
textimage_url
Parameters
image_urlhttps://example.com/sample-media.png
promptThe astronaut waves and the camera slowly moves up.
duration5
resolution720p
audiotrue

يدعم دقات ضخمة تصل إلى 4K. واجهة المستخدم يجب أن تحتوي على هذه الخيارات المتقدمة. الصوت مدعوم. لاحظ أن البارامتر هو image_url (string) وليس array.

bashvidu-q4-image-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "vidu-q4-image-to-video",
  "prompt": "Animate this reference into a cinematic shot",
  "duration": 5,
  "resolution": "540P",
  "image_urls": [
    "https://example.com/image.png"
  ]
}'

Hailuo 02 Text To Video Pro

1080P
hailuo-02-text-to-video-pro
textimage (implicitly based on notes)
Parameters
promptHigh top angle wide mid close-up tracking shot...
prompt_optimizertrue

المخرجات دائماً 1080p، ومدة الفيديو الفعلية المحملة هي 6 ثواني (رغم أن البريفيو 5 ثواني).

bashhailuo-02-text-to-video-pro
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "hailuo-02-text-to-video-pro",
  "prompt": "Animate this reference into a cinematic shot",
  "duration": 6,
  "resolution": "1080P"
}'

Kling 3.0 Omni Image To Video

4K
kling-3-0-omni-image-to-video
textimage_urls
Parameters
promptA happy golden retriever running across a grassy field
image_urls["https://example.com/first-frame.jpg"]
customize_multi_shotsfalse
audiofalse
resolution720p
aspect_ratioauto
duration5
elements[]

إذا لم يتم تفعيل customize_multi_shots، يجب أن يكون الـ aspect_ratio مجبراً على 'auto' في الباك إند.

bashkling-3-0-omni-image-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-3-0-omni-image-to-video",
  "prompt": "Animate this reference into a cinematic shot",
  "duration": 5,
  "resolution": "720P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "with_audio": false
}'

Kling V3 Turbo Image To Video

1080P
kling-v3-turbo-image-to-video
textimage_urls
Parameters
image_urls["https://example.com/sample-media.png"]
promptOutdoor terrace of a European villa...
duration5
resolution720p

نفس إعدادات التيربو النصي ولكن يطلب image_urls.

bashkling-v3-turbo-image-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-v3-turbo-image-to-video",
  "prompt": "Animate this reference into a cinematic shot",
  "duration": 5,
  "resolution": "720P",
  "image_urls": [
    "https://example.com/image.png"
  ]
}'

Minimax H3 Image To Video

2K
minimax-h3-image-to-video
textfirst_frame_urllast_frame_url
Parameters
promptLet the character in the scene turn around naturally and smile, camera slowly pushing forward
first_frame_urlhttps://example.com/first-frame.jpg
last_frame_urlhttps://example.com/last-frame.jpg
duration6

يدعم first_frame_url و last_frame_url للتحكم الكامل.

bashminimax-h3-image-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3-image-to-video",
  "prompt": "Animate this reference into a cinematic shot",
  "duration": 5,
  "resolution": "768P",
  "first_frame_url": "https://example.com/first.png"
}'

Grok Imagine Video 1.5 Preview

1080P
grok-imagine-video-1-5-preview
textimage_urls
Parameters
promptDescribe the scene you want to generate.
image_urls["https://example.com/media-sample.mp4"]
aspect_ratio16:9
resolution480p
duration8

النسخة التجريبية لـ 1.5، تدعم الصور.

bashgrok-imagine-video-1-5-preview
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-video-1-5-preview",
  "prompt": "Animate this reference into a cinematic shot",
  "duration": 5,
  "resolution": "480P",
  "image_urls": [
    "https://example.com/image.png"
  ]
}'
03.

VIDEO TO VIDEO & EXTEND

5 models

موديلات متخصصة في تطويل الفيديو أو تعديله أو تطبيق حركة (Motion Control) عبر فيديو أساسي كمرجع.

Google Gemini Omni Flash 1.2 Extend

720P
google-gemini-omni-flash-1-2-extend
task_idtextimage_urls
Parameters
task_idtask_xxxxxxxx
promptThe scene continues: the robot turns to the camera and waves, the camera slowly pulls back.
duration5
image_urls["https://example.com/stage-reference.png"]

شروط قاسية: يقبل التطويل فقط لمهام تم إنشاؤها عبر موديل gemini-omni-flash-1-2. لا يدعم دقات 1080p أو 4k هنا، والفيديو الأصلي يجب ألا يتعدى 15 ثانية. الباك إند يجب أن يمرر الـ task_id للفيديو القديم.

bashgoogle-gemini-omni-flash-1-2-extend
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "google-gemini-omni-flash-1-2-extend",
  "prompt": "Continue the motion seamlessly",
  "duration": 5,
  "resolution": "360P",
  "task_id": "wahmai_vid_8k3m2p9q1s7t4v6x0z5b2n"
}'

Pixverse V6 Extend

1080P
pixverse-v6-extend
taskIdtext
Parameters
promptContinue the same camera motion and extend the scene naturally
taskIdparent_task_id_from_previous_success_video
duration5
quality720p
generate_audio_switchfalse
seed123456

الواجهة: يجب عرض زر (Extend) أسفل أي فيديو ناجح تم توليده بواسطة موديلات PixVerse، وتمرير الـ taskId للباك إند.

bashpixverse-v6-extend
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "pixverse-v6-extend",
  "prompt": "Continue the motion seamlessly",
  "duration": 5,
  "resolution": "360P",
  "seed": 42,
  "task_id": "wahmai_vid_8k3m2p9q1s7t4v6x0z5b2n",
  "with_audio": false
}'

Grok Imagine Extend

720P
grok-imagine-extend
task_idtext
Parameters
task_idtask_grok_12345678
promptThe camera pans right and more doors open, revealing tiny people having dinner.
extend_at2
extend_times6

تنبيه للباك إند: المتغيرات هنا تسمى (extend_at) و (extend_times) بدلاً من duration العادية.

bashgrok-imagine-extend
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-extend",
  "prompt": "Continue the motion seamlessly",
  "duration": 6,
  "resolution": "480P",
  "task_id": "wahmai_vid_8k3m2p9q1s7t4v6x0z5b2n"
}'

Kling 3.0 Omni Transformation

4K
kling-3-0-omni-transformation
textvideo_urlsimage_urls
Parameters
promptTransform the input video into a cinematic night scene while preserving the character movements from the original video.
video_urls["https://example.com/source-video.mp4"]
resolution720p
aspect_ratioauto
audiofalse

يحول الستايل بالكامل. إذا تم رفع فيديو فقط يجب أن يكون aspect_ratio 'auto'. لا يدعم توليد الصوت للفيديو المُعدل (audio: false دائماً).

bashkling-3-0-omni-transformation
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-3-0-omni-transformation",
  "prompt": "Continue the motion seamlessly",
  "duration": 5,
  "resolution": "720P",
  "video_urls": [
    "https://example.com/source.mp4"
  ]
}'

Kling 2.6 Motion Control

1080P
kling-2-6-motion-control
input_urlsvideo_urlstext
Parameters
promptThe cartoon character is dancing.
input_urls["https://example.com/your-image.png"]
video_urls["https://example.com/sample-media.png"]
mode720p
character_orientationimage

الواجهة: العميل يرفع صورة الشخصية (input_urls) وفيديو الحركة (video_urls) لنقل الحركة للشخصية. يتطلب character_orientation.

bashkling-2-6-motion-control
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-2-6-motion-control",
  "prompt": "Continue the motion seamlessly",
  "duration": 5,
  "resolution": "720P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "video_urls": [
    "https://example.com/source.mp4"
  ]
}'
04.

MULTI-MODAL & REFERENCE

15 models

الموديلات الاحترافية التي تقبل إدخال (صوت، فيديو، صور، مستندات وروابط).

Wan 3.0 Video Prime

1080P
wan-3-0-video-prime
textimagesvideosaudiofileslinksfirst_frame_urllast_frame_url
Parameters
promptBased on this product presentation PPT, create an advertisement video for an ultra-minimalist tech-style smart glasses.
reference_file_urls["https://example.com/product.pptx"]
resolution480P
aspect_ratioadaptive
duration10
audiotrue

⚠️ تحذير للباك إند بشأن التكلفة: عند إرفاق فيديو، التكلفة = (مدة الفيديو المدخل + مدة الفيديو المخرج) × سعر الثانية. الواجهة: أضف Tabs مخصصة لدعم رفع ملفات (docx/pdf/pptx) أو وضع روابط ويب (reference_link_urls) لتوليد فيديو منها! موديل جبار.

bashwan-3-0-video-prime
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan-3-0-video-prime",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "480P",
  "first_frame_url": "https://example.com/first.png",
  "video_urls": [
    "https://example.com/source.mp4"
  ],
  "audio_urls": [
    "https://example.com/voice.mp3"
  ],
  "reference_file_urls": [
    "https://example.com/deck.pptx"
  ],
  "reference_link_urls": [
    "https://example.com/article"
  ]
}'

Wan 3.0 Video

1080P
wan-3-0-video
textimagesvideosaudio
Parameters
promptUnder the moonlight, a little cat is running on the roof...
resolution480P
aspect_ratioadaptive
duration5
audiotrue

النسخة العادية من الإصدار السابق. نفس قاعدة حساب التكلفة عند إرفاق فيديو: (input video duration + output video duration) × unit price.

bashwan-3-0-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan-3-0-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "480P",
  "video_urls": [
    "https://example.com/source.mp4"
  ],
  "audio_urls": [
    "https://example.com/voice.mp3"
  ]
}'

Kling 4.0 Flash Reference To Video

720P
kling-4-0-flash-reference-to-video
textimage_urlsvideo_urlselements
Parameters
promptReplace the environment and characters throughout the video with the content from Image.
image_urls["https://example.com/sample-media.png"]
video_urls["https://example.com/sample-media.png"]
keep_original_soundfalse
duration5
resolution720p
aspect_ratioauto
elements[{"name":"test","type":"image","image_urls":["https://example.com/sample-media.mp4"],"tag":"character","description":"测试实测","voice_url":"https://example.com/sample-media.mp4"}]

الباك إند: تكلفة الفيديو المرفق تحسب كالتالي: إذا كان المرفق أصغر من الناتج = السعر × (الناتج × 2). وإذا كان أكبر = السعر × (المدخل + الناتج). يجب هندسة هذا في رصيد العميل قبل التنفيذ. دقة 720p فقط.

bashkling-4-0-flash-reference-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-4-0-flash-reference-to-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "720P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "video_urls": [
    "https://example.com/source.mp4"
  ]
}'

Kling 4.0 Reference To Video

4K
kling-4-0-reference-to-video
textimage_urlsvideo_urlselementsvoices
Parameters
prompt@Hero sits at the desk in @video_1, picks up the doll from @image_1, and greets using @Narrator
duration10
resolution1080p
image_urls["https://example.com/doll.png"]
video_urls["https://example.com/room.mp4"]
keep_original_soundfalse
elements[{"name":"Hero","image_urls":["https://example.com/hero-front.jpg","https://example.com/hero-side.jpg"],"tag":"character","description":"Young man in a red jacket"}]
voices[{"name":"Narrator","audio_url":"https://example.com/narrator.mp3"}]

نفس قواعد حساب التكلفة الصارمة للإصدار الفلاش، ويدعم دقة 4K وخيار HDR (يُضاف على مدة الفيديو الناتج فقط). الواجهة: تتيح رفع حتى 10 صور، 5 فيديوهات، وملفات صوت (voices).

bashkling-4-0-reference-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-4-0-reference-to-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "720P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "video_urls": [
    "https://example.com/source.mp4"
  ]
}'

Vidu Q4 Reference To Video

4K
vidu-q4-reference-to-video
textreference_image_urlsreference_audio_urls
Parameters
promptIn the scene of reference image 1, the person in reference image 2 turns to the person in reference image 3 and says: "What are you doing?"
reference_image_urls["https://example.com/sample-media.png","https://example.com/sample-media.png","https://example.com/sample-media.png"]
duration5
resolution1080p
aspect_ratio16:9
audiotrue

يقبل حتى 15 صورة مرجعية، و 3 ملفات صوت (مدة كل منها 3-12 ثانية).

bashvidu-q4-reference-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "vidu-q4-reference-to-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "540P",
  "image_urls": [
    "https://example.com/image.png"
  ]
}'

Kling 3.0 Omni Reference To Video

4K
kling-3-0-omni-reference-to-video
textimage_urlsvideo_urlselements
Parameters
promptGenerate a video of the character walking along a city street, using the character appearance in the reference images.
image_urls["https://example.com/character-reference.png"]
customize_multi_shotstrue
multi_prompt[{"prompt":"A wide shot of the character walking through the city.","duration":2},{"prompt":"A close-up of the character looking toward the camera.","duration":3}]
audiotrue
resolution720p
aspect_ratio16:9
duration5
elements[]

يدعم إدخال فيديو أو صور. إذا تم استخدام customize_multi_shots، يجب توفير multi_prompt. يدعم 4K لجميع أنواع المدخلات.

bashkling-3-0-omni-reference-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-3-0-omni-reference-to-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "720P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "video_urls": [
    "https://example.com/source.mp4"
  ],
  "with_audio": false
}'

Google Gemini Omni Flash 1.1

4K
google-gemini-omni-flash-1-1
textimage_urlsaudio_idsvideo_listcharacter_ids
Parameters
promptCreate a futuristic night city short film with a slow push-in shot as the character walks out from a neon-lit street.
image_urls["https://example.com/assets/scene-1.png","https://example.com/assets/scene-2.png"]
audio_ids["audio_01hx8p0demo"]
video_list[{"url":"https://example.com/assets/source-video.mp4","start":0,"ends":10}]
duration4

واجهة الاستوديو: ادعم رفع الفيديو باقتطاع وقت (start, ends) بحد أقصى 10 ثواني الفرق بينهما. لا ترسل إطار أول/أخير مع المرفقات الأخرى أبداً.

bashgoogle-gemini-omni-flash-1-1
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "google-gemini-omni-flash-1-1",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 4,
  "resolution": "360P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "video_urls": [
    "https://example.com/source.mp4"
  ],
  "audio_urls": [
    "https://example.com/voice.mp3"
  ]
}'

Pixverse V6 Reference To Video

1080P
pixverse-v6-reference-to-video
textimage_references
Parameters
promptUse the reference image identity and generate a cinematic fashion video
image_references[{"image_url":"https://example.com/reference-1.png"},{"image_url":"https://example.com/reference-2.png"}]
duration5
quality720p
aspect_ratio9:16
generate_audio_switchfalse
seed123456

يعتمد على تمرير مصفوفة (image_references) بدلاً من (image_urls).

bashpixverse-v6-reference-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "pixverse-v6-reference-to-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "360P",
  "seed": 42,
  "image_urls": [
    "https://example.com/image.png"
  ],
  "with_audio": false
}'

Bytedance Seedance 2.5

4K
bytedance-seedance-2-5
textreference_image_urlsreference_video_urlsreference_audio_urls
Parameters
promptA tranquil beach at sunset, with gentle waves lapping the shore, palm trees swaying in the breeze, and seagulls flying across the orange sky.
reference_image_urls["https://example.com/your-image.png"]
reference_video_urls["https://example.com/your-video.mp4"]
reference_audio_urls["https://example.com/your-audio.mp3"]
omni_reference_task_typereference
return_last_framefalse
generate_audiofalse
resolution720p
aspect_ratio16:9
duration15

مهم للباك إند: يحتوي على بارامتر `omni_reference_task_type` بقيم (auto, reference, edit, extend) ليتحكم العميل بنوع العملية بدقة بدلاً من ترك الموديل يخمن. تكلفة الفيديو المرفق = Rate × (Total uploaded video duration + Generated video duration).

bashbytedance-seedance-2-5
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bytedance-seedance-2-5",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "480P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "video_urls": [
    "https://example.com/source.mp4"
  ],
  "audio_urls": [
    "https://example.com/voice.mp3"
  ]
}'

Bytedance Seedance 2

4K
bytedance-seedance-2
textreference_image_urlsreference_video_urlsreference_audio_urls
Parameters
promptA serene beach at sunset with waves gently crashing on the shore...
reference_image_urls["https://example.com/your-image.png"]
reference_video_urls["https://example.com/your-video.mp4"]
reference_audio_urls["https://example.com/your-audio.mp3"]
return_last_framefalse
generate_audiofalse
resolution480p
aspect_ratio16:9
duration5
web_searchfalse

قاعدة الباك إند للحساب: إذا كان هناك فيديو مدخل = السعر × (المدخل + الناتج). الواجهة: يدعم خيار البحث عبر الويب (web_search).

bashbytedance-seedance-2
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bytedance-seedance-2",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "480P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "video_urls": [
    "https://example.com/source.mp4"
  ],
  "audio_urls": [
    "https://example.com/voice.mp3"
  ]
}'

Bytedance Seedance 2 Fast

720P
bytedance-seedance-2-fast
textreference_image_urlsreference_video_urlsreference_audio_urls
Parameters
promptA serene beach at sunset with waves gently crashing on the shore...
reference_image_urls["https://example.com/your-image.png"]
reference_video_urls["https://example.com/your-video.mp4"]
reference_audio_urls["https://example.com/your-audio.mp3"]
return_last_framefalse
generate_audiofalse
resolution480p
aspect_ratio16:9
duration5
web_searchfalse

أسرع وأرخص نسخة من الجيل الثاني.

bashbytedance-seedance-2-fast
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bytedance-seedance-2-fast",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "480P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "video_urls": [
    "https://example.com/source.mp4"
  ],
  "audio_urls": [
    "https://example.com/voice.mp3"
  ]
}'

Bytedance Seedance 2 Mini

720P
bytedance-seedance-2-mini
textreference_image_urlsreference_video_urlsreference_audio_urls
Parameters
promptA serene beach at sunset with waves gently crashing on the shore...
reference_image_urls["https://example.com/your-image.png"]
reference_video_urls["https://example.com/your-video.mp4"]
reference_audio_urls["https://example.com/your-audio.mp3"]
generate_audiofalse
resolution480p
aspect_ratio16:9
duration5
web_searchfalse

النسخة الأصغر والأوفر على الإطلاق.

bashbytedance-seedance-2-mini
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bytedance-seedance-2-mini",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "480P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "video_urls": [
    "https://example.com/source.mp4"
  ],
  "audio_urls": [
    "https://example.com/voice.mp3"
  ]
}'

Minimax H3 Reference To Video

2K
minimax-h3-reference-to-video
textreference_image_urlsreference_video_urlsreference_audio_urls
Parameters
promptGenerate a continuous cinematic video referencing the characters, actions, and scenes in the input material
reference_image_urls["https://example.com/reference-image.jpg"]
reference_video_urls["https://example.com/reference-video.mp4"]
reference_audio_urls["https://example.com/reference-audio.mp3"]
aspect_ratioadaptive
duration6

الباك إند: التكلفة = (مدة المُخرج + مدة المُدخل) × السعر + تكلفة الصور الإضافية.

bashminimax-h3-reference-to-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3-reference-to-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "768P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "video_urls": [
    "https://example.com/source.mp4"
  ],
  "audio_urls": [
    "https://example.com/voice.mp3"
  ]
}'

Wan 2.2 A14b Speech To Video Turbo

720P
wan-2-2-a14b-speech-to-video-turbo
textimage_urlaudio_url
Parameters
promptThe lady is talking
image_urlhttps://example.com/sample-media.png
audio_urlhttps://example.com/sample-media.png
num_frames80
frames_per_second16
resolution480p
negative_prompt
num_inference_steps27
guidance_scale3.5
shift5

موديل متخصص لتحريك الشفاه (Speech-to-Video). يتطلب رفع صورة الشخص وملف الصوت بشكل أساسي.

bashwan-2-2-a14b-speech-to-video-turbo
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan-2-2-a14b-speech-to-video-turbo",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "480P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "audio_urls": [
    "https://example.com/voice.mp3"
  ]
}'

Kling 3.0 Video

4K
kling-3-0-video
textimage_urlskling_elements
Parameters
promptIn a bright rehearsal room, sunlight streams through the window @element_dog
image_urls["https://example.com/sample-media.png"]
soundtrue
duration5
aspect_ratio16:9
modepro
multi_shotsfalse
multi_prompt[{"prompt":"a happy dog in running @element_cat","duration":3},{"prompt":"a happy dog play with a cat @element_dog","duration":2}]
kling_elements[{"name":"element_dog","description":"dog","element_input_urls":["https://example.com/your-image.png","https://example.com/your-image.png"],"element_input_audio_urls":["https://example.com/media-sample.mp4"]},{"name":"element_cat","description":"cat","element_input_urls":["https://example.com/media-sample.mp4"],"element_input_audio_urls":["https://example.com/media-sample.mp4"],"start_time":0,"end_time":8000}]

موديل متقدم جداً. يدعم (kling_elements) لتعريف شخصيات بأسمائها واستدعائها في البرومبت (مثل @element_cat). واجهة الـ Studio يجب أن تدعم قسم خاص لإضافة الـ Elements.

bashkling-3-0-video
curl -X POST https://api.wahmai.ai/api/v1/video \
  -H "Authorization: Bearer WahmAI-sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-3-0-video",
  "prompt": "A neon-lit city at night, cinematic drone shot",
  "duration": 5,
  "resolution": "720P",
  "image_urls": [
    "https://example.com/image.png"
  ],
  "with_audio": false
}'

Error Handling

Error envelope & status codes

Every error shares one structured JSON envelope and carries a request_id for support tracing.

jsonError Response Envelope
{
  "error": {
    "code": "MODEL_NOT_FOUND",
    "message": "Model not found.",
    "received": "kling",
    "did_you_mean": ["kling-v2-5-turbo-text-to-video-pro"],
    "available_models": ["kling-3-0-omni-text-to-video", "..."],
    "hint": "Send one of available_models."
  },
  "request_id": "req_9f2c7b1a4d6e"
}
HTTPError CodeMeaning
400INVALID_REQUESTInvalid or missing request parameters.
401UNAUTHORIZEDMissing or invalid API key.
402INSUFFICIENT_POINTSNot enough credits in your wallet.
404MODEL_NOT_FOUND / NOT_FOUNDUnknown model slug or task ID.
429RATE_LIMITEDToo many requests — retry shortly.
500INTERNAL_ERRORTemporary server error — retry safely.