Text to Video
wan2.6
Wan 2.6 text-to-video and image-to-video generation.
Quick start
Submit a request with this public model ID. The API immediately returns a normalized job; poll GET /v1/jobs/{jobId} while its status is queued or running.
curl -X POST "https://api.artany.ai/v1/videos/generations" \
-H "Authorization: Bearer $ARTANY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: unique-request-id" \
-d '{"model":"wan2.6","prompt":"A cinematic sunrise over the ocean","aspect_ratio":"16:9","resolution":"720p","duration":5}'Request
Headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for an Artany API key. |
| Content-Type | Yes | Must be application/json. |
| Idempotency-Key | Recommended | 8–128 characters. Reusing it with an identical request prevents duplicate jobs and charges. |
Body
{
"model": "wan2.6",
"prompt": "A cinematic sunrise over the ocean",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5
}Request Parameters
Only fields in this model’s public request contract are shown. Defaults are applied before validation and quoting.
Note:Text-to-video workflow with optional image and audio conditioning.
Stable public model ID for this request.
Video content description. Include subject motion, environment, and camera direction.
Optional images for image-conditioned generation.
Items: 1–1
Content or visual characteristics to avoid.
Output framing.
Allowed: 1:1, 3:4, 4:3, 9:16, 16:9
Output resolution tier.
Allowed: 720p, 1080p
Requested video duration in seconds.
Allowed: 5, 10, 15
Optional seed that influences generation randomness.
Whether to enrich the prompt before generation.
Whether to generate or include audio when that path is supported.
Optional audio input for a supported audio-conditioned generation.
Format: uri
Camera treatment for the supported workflow.
Allowed: single, multi
Supported video template or preset.
Allowed: squish, rotation, poke, inflate, dissolve, carousel, singleheart, flying, rose, hug, frenchkiss, coupleheart
Use Cases
Choose the request shape that matches the source media you provide. The examples use the public model ID and accepted public fields.
Text-to-video
Create a video directly from text.
{
"model": "wan2.6",
"prompt": "A cinematic sunrise over the ocean",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}Image-conditioned video
Use an image to establish the opening visual.
{
"model": "wan2.6",
"prompt": "The clouds slowly move",
"image_urls": [
"https://example.com/first-frame.jpg"
],
"duration": 5
}Response and task status
A successful asynchronous submission returns HTTP 202 with a supplier-neutral job.
{
"id": "job_…",
"object": "generation.job",
"model": "wan2.6",
"status": "queued",
"progress": 0,
"output": null,
"error": null,
"billing": {
"estimated_credits": "…",
"frozen_credits": "…",
"charged_credits": "0",
"state": "frozen",
"price_version": "2026-07-18.picverse-parity"
},
"created_at": "2026-07-21T00:00:00.000Z",
"completed_at": null
}- queued / running: continue polling.
- succeeded: retrieve media URLs from
output; billing has settled. - failed / canceled: inspect
error; frozen Credits are released.