Skip to content

Submit a Video Task

POST https://api.apimart.cc/v1/videos
HeaderRequiredDescription
AuthorizationYesBearer sk-your-api-key
Content-TypeYesapplication/json
FieldTypeRequiredDescription
modelstringYesModel ID (see Available Models)
promptstringYesText description of the video to generate
secondsintegerModel-specificRequested output duration; provide it explicitly within the selected model’s supported range
metadataobjectNoAdditional generation parameters
FieldTypeValuesDefaultDescription
resolutionstring480P, 720P, 1080P720POutput resolution
ratiostring1:1, 16:9, 9:16, 4:3, 3:4, adaptive1:1Aspect ratio
mediaarray——Reference media (see below)

Reference support varies by exact model ID. The following example uses image references exposed by the checked Wan 3.0 reference-to-video-global schema:

{
"model": "tk-wan3.0-video-prime",
"prompt": "The person in image 1 is walking through the garden in image 2",
"seconds": 5,
"metadata": {
"resolution": "720P",
"ratio": "16:9",
"media": [
{ "type": "reference_image", "url": "https://example.com/person.jpg" },
{ "type": "reference_image", "url": "https://example.com/garden.jpg" }
]
}
}

Media types:

TypeDescriptionLimits
reference_imageReference imageUp to 10 per request
first_frameFirst frame image1 only

Check the selected model’s input limits

Reference video and audio support is model-specific. The checked Wan 3.0 reference-to-video-global schema exposes images only. Retrieve the model details and use only supported inputs.

Duration ranges vary by model:

ModelRangeNotes
Wan 3.0 reference-to-video-global4–30 secondsInteger duration; checked November 5, 2026

For other models, retrieve their exact schemas. The metadata options above are examples, not universal defaults or supported values for every model.

{
"id": "vt-abc123def",
"object": "video",
"status": "queued",
"created_at": 1760000000
}
FieldTypeDescription
idstringTask ID — use this to poll for results
statusstringTask state; a pending task normally starts as queued
created_atintegerUnix timestamp
Terminal window
curl -X POST https://api.apimart.cc/v1/videos \
-H "Authorization: Bearer $HIPIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tk-wan3.0-video",
"prompt": "A slow pan across a cyberpunk city at night, neon signs reflecting in puddles",
"seconds": 5,
"metadata": { "resolution": "720P", "ratio": "16:9" }
}'
Terminal window
curl -X POST https://api.apimart.cc/v1/videos \
-H "Authorization: Bearer $HIPIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tk-wan3.0-video",
"prompt": "The character starts walking forward, camera follows",
"seconds": 5,
"metadata": {
"resolution": "720P",
"media": [{ "type": "first_frame", "url": "https://example.com/frame.jpg" }]
}
}'
Terminal window
curl -X POST https://api.apimart.cc/v1/videos \
-H "Authorization: Bearer $HIPIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tk-wan3.0-video-prime",
"prompt": "Person from image 1 walks through the garden in image 2",
"seconds": 10,
"metadata": {
"resolution": "1080P",
"ratio": "16:9",
"media": [
{ "type": "reference_image", "url": "https://example.com/person.jpg" },
{ "type": "reference_image", "url": "https://example.com/garden.jpg" }
]
}
}'