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

# Generate video with Wan 2.7

> Alibaba Wan 2.7 (video) — text-to-video, plus image-to-video with a start frame and an optional end frame. Prompt-driven narrative, optional generated audio, and an optional driving-audio track. 720p or 1080p, priced per resolution (see `resolution_pricing` in GET /v1/models); 5, 10, or 15 seconds. (The Wan 2.7 image model is `wan-2.7` under POST /v1/images.)

**Asynchronous.** Returns a job `id` (the video is not in this response). Poll [`GET /v1/videos/{id}`](/api-reference/videos/get-video-job-status) until `status` is `succeeded` — the video URL is in that response's `video_url`.



## OpenAPI

````yaml /openapi.yaml post /videos/wan-2.7-video
openapi: 3.1.0
info:
  contact:
    email: support@budgetpixel.com
    name: BudgetPixel Support
  description: >
    The BudgetPixel developer API for programmatic image and video generation.


    Generation is **asynchronous**: you create a job, then poll its status until
    it

    reaches a terminal state (`succeeded` / `failed`). You are charged in
    credits

    only on success — never for failures, timeouts, or content blocked before

    generation.


    **Authentication.** All requests require an API key sent as a bearer token:

        Authorization: Bearer bpx_live_xxx

    Create and manage keys from your BudgetPixel account dashboard. The
    developer

    API is currently available on the **Ultra** plan.


    **Pricing.** API usage is metered in credits at each model's published price

    (see `GET /v1/models`). Consumer subscription perks (free daily generations,

    free-for-Ultra models, subscription discounts) do not apply to API traffic.
  title: BudgetPixel API
  version: '2026-06-20'
servers:
  - description: Production
    url: https://api.budgetpixel.com/v1
security:
  - ApiKeyAuth: []
tags:
  - description: Account and credit balance
    name: Account
  - description: Discover available models and pricing
    name: Models
  - description: Upload input media for image/video generation
    name: Uploads
  - description: Image job status
    name: Images
  - description: FLUX image models
    name: Black Forest Labs
  - description: SeeDream image models
    name: Bytedance
  - description: Video job status
    name: Videos
  - description: Kuaishou Kling video models
    name: Kling
  - description: SeeDance video models
    name: ByteDance (SeeDance)
  - description: Music job status
    name: Audios
  - description: Music generation models
    name: Music
  - description: Format conversion for images, video, and audio
    name: Conversions
  - description: Publish posts to your BudgetPixel feed
    name: Social
  - description: Content moderation — NSFW rating and CSAM detection
    name: Moderation
  - description: Content classification — music genre detection
    name: Classification
paths:
  /videos/wan-2.7-video:
    post:
      tags:
        - Alibaba
      summary: Generate video with Wan 2.7
      description: >-
        Alibaba Wan 2.7 (video) — text-to-video, plus image-to-video with a
        start frame and an optional end frame. Prompt-driven narrative, optional
        generated audio, and an optional driving-audio track. 720p or 1080p,
        priced per resolution (see `resolution_pricing` in GET /v1/models); 5,
        10, or 15 seconds. (The Wan 2.7 image model is `wan-2.7` under POST
        /v1/images.)


        **Asynchronous.** Returns a job `id` (the video is not in this
        response). Poll [`GET
        /v1/videos/{id}`](/api-reference/videos/get-video-job-status) until
        `status` is `succeeded` — the video URL is in that response's
        `video_url`.
      operationId: createVideo_wan_2_7_video
      requestBody:
        content:
          application/json:
            schema:
              properties:
                aspect_ratio:
                  default: '16:9'
                  description: >-
                    Aspect ratio. Ignored when a start image already sets the
                    frame.
                  enum:
                    - '16:9'
                    - '9:16'
                    - '1:1'
                    - '4:3'
                    - '3:4'
                  type: string
                audio:
                  description: >-
                    Optional driving-audio track (MP3/WAV/OGG) for the generated
                    video. Provide a public audio URL or an uploaded-file URL
                    from POST /v1/uploads (passed by URL, not inlined). Ignored
                    when `generate_audio` is false.
                  type: string
                end_image:
                  description: >-
                    Optional end frame, used together with `image` (the start
                    frame) to interpolate the video between the two frames. Same
                    input forms as `image`.
                  type: string
                generate_audio:
                  default: true
                  description: >-
                    Generate audio with the video (default true; no price
                    impact).
                  type: boolean
                image:
                  description: >-
                    Optional start frame for image-to-video. Provide a public
                    image URL, a data URI, raw base64, or an uploaded-file URL
                    from POST /v1/uploads. Omit for text-to-video.
                  type: string
                length_seconds:
                  default: 5
                  description: Video length in seconds.
                  enum:
                    - 5
                    - 10
                    - 15
                  type: integer
                prompt:
                  description: Text description of the video.
                  type: string
                resolution:
                  default: 720p
                  description: >-
                    Output resolution. Pricing varies by resolution — see
                    `resolution_pricing` in GET /v1/models.
                  enum:
                    - 720p
                    - 1080p
                  type: string
              required:
                - prompt
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateVideoResponse'
          description: Job accepted.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    CreateVideoResponse:
      properties:
        id:
          description: Opaque job id — use it to poll status.
          type: string
        message:
          type: string
        model:
          type: string
        status:
          $ref: '#/components/schemas/JobStatus'
      type: object
    JobStatus:
      description: Lifecycle state. `succeeded`/`failed`/`timeout` are terminal.
      enum:
        - pending
        - starting
        - processing
        - completing
        - succeeded
        - failed
        - timeout
      type: string
    Error:
      properties:
        error:
          properties:
            code:
              description: Stable machine-readable code.
              example: model_not_available
              type: string
            message:
              type: string
            type:
              description: Error category.
              example: invalid_request_error
              type: string
          required:
            - type
            - code
            - message
          type: object
      required:
        - error
      type: object
  responses:
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: The request was malformed or referenced an unavailable model.
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Missing or invalid API key.
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Authenticated but not permitted (plan gate, ownership, restriction).
    TooManyRequests:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Rate or queue limit reached. Retry after a short delay.
  securitySchemes:
    ApiKeyAuth:
      bearerFormat: bpx_live_*
      description: 'API key as a bearer token: Authorization: Bearer bpx_live_xxx'
      scheme: bearer
      type: http

````