> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apistable.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Wan 3.0 Standard

> Generate 480p–1080p videos (2–30s or automatic duration) with synchronized audio from prompts, keyframes, reference media, documents, or public webpages.

## Generation modes

Both `wan-3.0` (Standard) and `wan-3.0-prime` (Prime) use `POST /api/v1/tasks/create_task` with the same flat `input` object. Pass `model` and `input`; inside `input`, provide at least `prompt` or one media field.

When nsfw\_check is true, APIstable screens text and images before submission. Video and audio are passed to the model provider, which applies its own moderation. When enabled, document and webpage text and images must also pass extraction and screening. Omitted or false skips APIstable screening.

| Mode | Typical `input` fields | Notes |
| - | - | - |
| Text to video | `prompt` | 2–30s or `-1` (auto); prompt up to 20,000 chars |
| First frame / First + last frame | `first_frame_url` (and optional `last_frame_url`) | `last_frame_url` requires `first_frame_url`; `prompt` optional |
| Multimodal references | `reference_image_urls`, `reference_video_urls`, `reference_audio_urls` | Up to 10 images, 5 videos, and 5 audio clips; `prompt` optional |
| Document or webpage | `file_url` or `link_url` | Mutually exclusive (max 1); generates video from the document or webpage content |

> Omitting `resolution` defaults to `1080p` (highest rate)—pass `480p` or `720p` explicitly when cost-sensitive. Use `duration` (`2`–`30` or `-1`) for length; `duration_seconds` is rejected with HTTP 400.

## Request examples

Send any payload below to `POST /api/v1/tasks/create_task` with `Authorization: Bearer YOUR_API_KEY`. Replace example URLs with your own public HTTPS links.

```json Text to video theme={null}
{
  "model": "wan-3.0",
  "input": {
    "prompt": "Morning mist drifts across a mountain lake as the camera glides forward.",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "duration": 5
  }
}
```

```json First and last frames theme={null}
{
  "model": "wan-3.0",
  "input": {
    "prompt": "The camera moves smoothly toward the cabin as dusk settles.",
    "first_frame_url": "https://cdn.example.com/start.jpg",
    "last_frame_url": "https://cdn.example.com/end.jpg",
    "resolution": "1080p",
    "aspect_ratio": "adaptive",
    "duration": 6
  }
}
```

```json Reference image, video, and audio theme={null}
{
  "model": "wan-3.0",
  "input": {
    "prompt": "Use the cabin porch appearance from the reference image, match the tracking pace of the reference video, and follow the rhythm of the reference audio.",
    "reference_image_urls": [
      "https://cdn.example.com/cabin.jpg"
    ],
    "reference_video_urls": [
      "https://cdn.example.com/camera-motion.mp4"
    ],
    "reference_audio_urls": [
      "https://cdn.example.com/beat.mp3"
    ],
    "resolution": "720p",
    "aspect_ratio": "adaptive",
    "duration": 5,
    "generate_audio": true
  }
}
```

```json Document to video theme={null}
{
  "model": "wan-3.0",
  "input": {
    "file_url": "https://cdn.example.com/product-brief.pdf",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "duration": 10
  }
}
```

```json Webpage to video theme={null}
{
  "model": "wan-3.0",
  "input": {
    "prompt": "Turn this launch page into a concise product showcase video.",
    "link_url": "https://example.com/launch-article",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "duration": 10
  }
}
```

```json Automatic duration theme={null}
{
  "model": "wan-3.0",
  "input": {
    "prompt": "Raindrops slide down a night train window overlooking neon city streets.",
    "reference_image_urls": [
      "https://cdn.example.com/train-window.jpg"
    ],
    "resolution": "720p",
    "aspect_ratio": "adaptive",
    "duration": -1,
    "official_fallback": true
  }
}
```

## Playground and pricing

> [card] [Try in Playground](https://apistable.ai/models/wan-3.0#try)
>
> Test prompts, frames, references, documents, or webpages interactively.

> [card] [View pricing](https://apistable.ai/models/wan-3.0#pricing)
>
> Review standard and fallback per-second rates by resolution.


## OpenAPI

````yaml openapi-wan-3.0.json POST /api/v1/tasks/create_task
openapi: 3.1.0
info:
  title: APIstable API
  version: 1.0.0-preview
  description: >-
    Public /api/v1 protocol. Valid API keys have the same account-scoped access.
    Read the selected model documentation for its ID, supported inputs, result
    format and availability before submitting. No client submission idempotency
    or max_credits. Availability, pricing, file retention and callback formats
    follow the selected model contract. Unconfigured operations return 503.
servers:
  - url: https://apistable.ai
    description: API Stable API
security: []
paths:
  /api/v1/tasks/create_task:
    post:
      summary: Wan 3.0 Standard
      description: >-
        Generate 480p–1080p videos (2–30s or automatic duration) with
        synchronized audio from prompts, keyframes, reference media, documents,
        or public webpages.
      operationId: wan-3.0
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              additionalProperties: false
              properties:
                model:
                  type: string
                  enum:
                    - wan-3.0
                  example: wan-3.0
                  description: The APIstable model ID for this endpoint.
                input:
                  $schema: https://json-schema.org/draft/2020-12/schema
                  type: object
                  properties:
                    nsfw_check:
                      description: >-
                        Run APIstable input screening when true; omitted or
                        false skips it. Never forwarded to the generation
                        provider.
                      type: boolean
                    prompt:
                      type: string
                      minLength: 1
                      maxLength: 20000
                      description: >-
                        Text description of the scene, motion, and sound
                        (1–20,000 characters after trimming). Required when no
                        media URL is provided.
                    resolution:
                      default: 1080p
                      type: string
                      enum:
                        - 480p
                        - 720p
                        - 1080p
                      description: >-
                        Output resolution: `480p`, `720p`, or `1080p` (default
                        `1080p`, highest rate). Pass `480p` or `720p` explicitly
                        when cost-sensitive.
                    aspect_ratio:
                      default: adaptive
                      type: string
                      enum:
                        - adaptive
                        - '16:9'
                        - '4:3'
                        - '1:1'
                        - '3:4'
                        - '9:16'
                      description: >-
                        Output aspect ratio: `adaptive` (default), `16:9`,
                        `4:3`, `1:1`, `3:4`, or `9:16`. `21:9` is not supported.
                    watermark:
                      default: false
                      type: boolean
                      description: Add a watermark to the output video. Default `false`.
                    prompt_extend:
                      default: true
                      type: boolean
                      description: >-
                        Enable automatic prompt rewriting. Default `true`.
                        Combining `file_url` or `link_url` with `prompt_extend:
                        false` disables fallback while staying runnable on the
                        primary channel.
                    generate_audio:
                      default: true
                      type: boolean
                      description: >-
                        Generate synchronized audio alongside the video. Default
                        `true`; does not change per-second pricing.
                    seed:
                      default: -1
                      type: integer
                      minimum: -1
                      maximum: 2147483647
                      description: >-
                        Integer seed from `-1` (random, default) to
                        `2147483647`.
                    output_count:
                      default: 1
                      type: number
                      const: 1
                      description: Number of output videos per request. Fixed at `1`.
                    official_fallback:
                      default: false
                      type: boolean
                      description: >-
                        Default `false`. Set `true` to allow authorized fallback
                        on capacity or temporary upstream errors when the full
                        request is compatible; fallback rates apply only when
                        fallback succeeds.
                    duration:
                      default: 5
                      type: integer
                      minimum: -1
                      maximum: 30
                      description: >-
                        Output length in seconds: integer `2`–`30` (default
                        `5`), or `-1` for automatic duration. With
                        `reference_video`, total reference video duration plus
                        output duration must be ≤30 seconds.
                    first_frame_url:
                      type: string
                      format: uri
                      description: >-
                        First frame image URL. Cannot mix frames with
                        references, documents or webpages.
                    last_frame_url:
                      type: string
                      format: uri
                      description: Last frame image URL; requires first_frame_url.
                    reference_image_urls:
                      type: array
                      items:
                        type: string
                        format: uri
                      description: Up to 10 reference image URLs; cannot mix with frames.
                    reference_video_urls:
                      type: array
                      items:
                        type: string
                        format: uri
                      description: >-
                        Up to 5 reference video URLs, 1–15 seconds each and ≤15
                        seconds total. Each supplied clip counts toward billing,
                        including repeated URLs.
                    reference_audio_urls:
                      type: array
                      items:
                        type: string
                        format: uri
                      description: >-
                        Up to 5 reference audio URLs, 1–15 seconds each and ≤15
                        seconds total.
                    file_url:
                      type: string
                      format: uri
                      description: >-
                        Document URL; mutually exclusive with link_url and frame
                        inputs. When nsfw_check is true, subject to bounded
                        extraction and screening of its text and images.
                    link_url:
                      type: string
                      format: uri
                      description: >-
                        Static public webpage URL; mutually exclusive with
                        file_url and frame inputs. Dynamic pages are not
                        supported. Extracted text and images are screened when
                        nsfw_check is true.
                  additionalProperties: false
                  description: >-
                    Wan 3.0 video generation parameters. Provide at least
                    `prompt` or one media URL. Use `duration` (`2`–`30` or `-1`)
                    for length. When nsfw_check is true, APIstable screens text
                    and images before submission; omitted or false skips
                    APIstable screening. Video and audio are passed to the model
                    provider, which applies its own moderation. When screening
                    is enabled, extracted document and webpage text and images
                    are also screened.
                callback_url:
                  type: string
                  format: uri
                  description: >-
                    Optional public HTTPS endpoint for signed completion
                    callbacks; no redirects or private IPs.
            example:
              model: wan-3.0
              input:
                prompt: >-
                  Morning mist drifts across a mountain lake as the camera
                  glides forward.
                resolution: 720p
                aspect_ratio: '16:9'
                duration: 5
      responses:
        '200':
          description: >-
            Accepted task. Use `task_id` to [query the task](/query-task), or
            receive the result at `callback_url`.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - msg
                  - data
                additionalProperties: false
                properties:
                  code:
                    const: 200
                  msg:
                    const: success
                  data:
                    type: object
                    required:
                      - task_id
                    additionalProperties: false
                    properties:
                      task_id:
                        type: string
        '400':
          description: >-
            40001 invalid JSON, 40002 invalid input/callback or input rejected
            by screening, 40003 unsupported parameter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Invalid or revoked API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: '40201: Insufficient credits (live acceptance).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: '40301: Website session requests require the APIstable site origin.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '40401: Unknown model or resource not found in this account.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '40901: Resource incompatible with this operation.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: '41001: Source audio or temporary resource has expired.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: '41301: Request too large.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: '42201: Requested capability combination is not enabled.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '42901: Rate/concurrency limit (live acceptance).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: '50301: Service unavailable. No live submission or charge.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      callbacks:
        Webhook:
          '{$request.body#/callback_url}':
            post:
              requestBody:
                required: true
                description: >-
                  When the task succeeds or fails, APIstable sends a JSON POST
                  to the `callback_url` supplied at creation. Verify the
                  signature and return HTTP 2xx to acknowledge delivery.


                  Read `data.status` to determine the generation outcome.
                  Successful tasks report `succeeded` with generated video URLs
                  in `data.result.urls`. For a failed task, `data.result` is
                  `null` and `data.message` contains the failure reason.


                  Use `X-APIstable-Signature`, `X-APIstable-Timestamp`, and
                  `X-APIstable-Event-Id` to verify and deduplicate deliveries.
                  See [Webhook security](/webhook-secret).


                  **Webhook payload example**


                  ```json

                  {
                    "code": 200,
                    "msg": "success",
                    "data": {
                      "task_id": "c6adbc82-8b9a-4d6f-8b60-1114c8c4aafb",
                      "model": "wan-3.0",
                      "status": "succeeded",
                      "created_at": "2026-11-24T08:30:00.000Z",
                      "completed_at": "2026-11-24T08:31:45.000Z",
                      "duration": 105000,
                      "charged_credits": 65,
                      "message": "",
                      "input": "{\"prompt\":\"Morning mist drifts across a mountain lake as the camera glides forward.\",\"resolution\":\"720p\",\"aspect_ratio\":\"16:9\",\"duration\":5}",
                      "result": {
                        "urls": [
                          "https://cdn.example.com/generated/wan-video.mp4"
                        ],
                        "items": [
                          {
                            "id": "e7aacd19-819a-4747-bbbf-46fb6f2995a5",
                            "urls": [
                              "https://cdn.example.com/generated/wan-video.mp4"
                            ],
                            "last_frame_url": null,
                            "draft": false,
                            "draft_expires_at": null
                          }
                        ]
                      }
                    }
                  }

                  ```
                content:
                  application/json:
                    schema:
                      type: object
                      required:
                        - code
                        - msg
                        - data
                      properties:
                        code:
                          type: integer
                          const: 200
                        msg:
                          type: string
                          const: success
                        data:
                          type: object
                          additionalProperties: false
                          required:
                            - task_id
                            - model
                            - status
                            - created_at
                            - completed_at
                            - duration
                            - charged_credits
                            - message
                            - input
                            - result
                          properties:
                            task_id:
                              type: string
                            model:
                              type: string
                              const: wan-3.0
                            status:
                              type: string
                              enum:
                                - succeeded
                                - failed
                            created_at:
                              type: string
                              format: date-time
                            completed_at:
                              type:
                                - string
                                - 'null'
                              format: date-time
                            duration:
                              type:
                                - integer
                                - 'null'
                              minimum: 0
                              description: >-
                                Total elapsed milliseconds; null while
                                processing.
                            charged_credits:
                              type:
                                - number
                                - 'null'
                              minimum: 0
                              description: Final charged Credits; null until completion.
                            message:
                              type: string
                              description: >-
                                Failure reason for failed tasks, or an
                                actionable pending-settlement message while
                                processing; empty on success.
                            input:
                              type: string
                              contentMediaType: application/json
                              description: JSON-serialized accepted model input.
                            result:
                              type:
                                - object
                                - 'null'
                              required:
                                - urls
                                - items
                              properties:
                                urls:
                                  type: array
                                  items:
                                    type: string
                                    format: uri
                                items:
                                  type: array
                                  maxItems: 1
                                  items:
                                    type: object
                                    required:
                                      - id
                                      - urls
                                      - last_frame_url
                                      - draft
                                      - draft_expires_at
                                    properties:
                                      id:
                                        type: string
                                        format: uuid
                                      urls:
                                        type: array
                                        items:
                                          type: string
                                          format: uri
                                      last_frame_url:
                                        type:
                                          - string
                                          - 'null'
                                        format: uri
                                      draft:
                                        type: boolean
                                      draft_expires_at:
                                        type:
                                          - string
                                          - 'null'
                                        format: date-time
                    example:
                      code: 200
                      msg: success
                      data:
                        task_id: c6adbc82-8b9a-4d6f-8b60-1114c8c4aafb
                        model: wan-3.0
                        status: succeeded
                        created_at: '2026-11-24T08:30:00.000Z'
                        completed_at: '2026-11-24T08:31:45.000Z'
                        duration: 105000
                        charged_credits: 65
                        message: ''
                        input: >-
                          {"prompt":"Morning mist drifts across a mountain lake
                          as the camera glides
                          forward.","resolution":"720p","aspect_ratio":"16:9","duration":5}
                        result:
                          urls:
                            - https://cdn.example.com/generated/wan-video.mp4
                          items:
                            - id: e7aacd19-819a-4747-bbbf-46fb6f2995a5
                              urls:
                                - >-
                                  https://cdn.example.com/generated/wan-video.mp4
                              last_frame_url: null
                              draft: false
                              draft_expires_at: null
              responses:
                2XX:
                  description: Webhook acknowledged.
              method: post
              type: path
            path: '{$request.body#/callback_url}'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      required:
        - code
        - msg
        - data
      properties:
        code:
          type: integer
        msg:
          type: string
        data:
          type: 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Sign in to APIstable, then create and copy a key from [API Key
        management](https://apistable.ai/console/keys).


        Send this HTTP header with every request:


        ```http

        Authorization: Bearer YOUR_API_KEY

        ```


        Replace YOUR_API_KEY with the key you created.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.