Text to Video

wan2.6

Wan 2.6 text-to-video and image-to-video generation.

POST /v1/videos/generationsAsync 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

HeaderRequiredDescription
AuthorizationYesBearer token for an Artany API key.
Content-TypeYesMust be application/json.
Idempotency-KeyRecommended8–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.

modelstringrequireddefault: "wan2.6"

Stable public model ID for this request.

promptstringrequired

Video content description. Include subject motion, environment, and camera direction.

image_urlsarray<string>

Optional images for image-conditioned generation.

Items: 1–1

negative_promptstring

Content or visual characteristics to avoid.

aspect_ratiostringdefault: "16:9"

Output framing.

Allowed: 1:1, 3:4, 4:3, 9:16, 16:9

1:13:44:39:1616:9
resolutionstringdefault: "720p"

Output resolution tier.

Allowed: 720p, 1080p

720p1080p
durationintegerdefault: 5

Requested video duration in seconds.

Allowed: 5, 10, 15

51015
seedinteger

Optional seed that influences generation randomness.

prompt_extendboolean

Whether to enrich the prompt before generation.

audioboolean

Whether to generate or include audio when that path is supported.

audio_urlstring

Optional audio input for a supported audio-conditioned generation.

Format: uri

shot_typestring

Camera treatment for the supported workflow.

Allowed: single, multi

singlemulti
templatestring

Supported video template or preset.

Allowed: squish, rotation, poke, inflate, dissolve, carousel, singleheart, flying, rose, hug, frenchkiss, coupleheart

squishrotationpokeinflatedissolvecarouselsingleheartflyingrosehugfrenchkisscoupleheart

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.