---
title: "wan-t2v"
url: "https://docs.api.pruna.ai/apis/models-api-0/versions/e82c070d-36fc-4aa3-b8cc-8140e0221f53/schemas/wan-t2v"
---

> Full API specification: https://docs.api.pruna.ai/apis/models-api-0/versions/e82c070d-36fc-4aa3-b8cc-8140e0221f53.md

# wan-t2v

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: P-API
  version: 0.1.0
servers:
  - url: https://api.pruna.ai
    description: Production server
components:
  schemas:
    wan-t2v:
      type: object
      required:
        - input
      properties:
        input:
          type: object
          required:
            - prompt
          properties:
            prompt:
              type: string
              description: Text prompt for video generation
            optimize_prompt:
              type: boolean
              description: Translate prompt to Chinese before generation
              default: false
            num_frames:
              type: integer
              description: Number of video frames. 81 frames give the best results
              minimum: 81
              maximum: 121
              default: 81
            aspect_ratio:
              type: string
              description: Aspect ratio of video. 16:9 corresponds to 832x480px, and 9:16 is
                480x832px
              enum:
                - 16:9
                - 9:16
              default: 16:9
            resolution:
              type: string
              description: Resolution of video. 16:9 corresponds to 832x480px, and 9:16 is
                480x832px
              enum:
                - 480p
                - 720p
              default: 480p
            frames_per_second:
              type: integer
              description: Frames per second. Note that the pricing of this model is based on
                the video duration at 16 fps
              minimum: 5
              maximum: 30
              default: 16
            interpolate_output:
              type: boolean
              description: Interpolate the generated video to 30 FPS using ffmpeg
              default: false
            go_fast:
              type: boolean
              description: Go fast
              default: true
            sample_shift:
              type: number
              description: Sample shift factor
              minimum: 1
              maximum: 20
              default: 12
            seed:
              type: integer
              description: Random seed. Leave blank for random
            disable_safety_checker:
              type: boolean
              description: Disable safety checker for generated video
              default: false
            lora_weights_transformer:
              type: string
              format: uri
              description: Load LoRA weights for transformer. Supports arbitrary .safetensors
                URLs from the Internet (e.g.,
                'https://huggingface.co/Viktor1717/scandinavian-interior-style1/resolve/main/my_first_flux_lora_v1.safetensors')
            lora_scale_transformer:
              type: number
              description: Determines how strongly the transformer LoRA should be applied
              default: 1
            lora_weights_transformer_2:
              type: string
              format: uri
              description: Load LoRA weights for transformer_2. Supports arbitrary
                .safetensors URLs from the Internet. Can be different from
                transformer LoRA
            lora_scale_transformer_2:
              type: number
              description: Determines how strongly the transformer_2 LoRA should be applied
              default: 1
          additionalProperties: false
```
