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

# Submit Wan 2.6 Flash task

> POST a silent Wan 2.6 Flash image-to-video task

## Submit task

`image_urls` is required and must contain exactly one public HTTP(S) first-frame image. `prompt` is optional. Output is always silent; `audio` and `audio_url` are rejected. `resolution` is `720p` (default) or `1080p`, and `duration` is 2–15 seconds (default 5).

```bash theme={null}
curl --fail-with-body --silent --show-error \
  -X POST https://api.wizzx.ai/api/v1/task/submit/wan-2.6-flash \
  -H "Authorization: Bearer <api_key>" \
  -H "Content-Type: application/json" \
  --data '{
    "prompt": "The person smiles and waves while the camera slowly zooms in",
    "image_urls": ["https://example.com/portrait.jpg"],
    "resolution": "720p",
    "duration": 5
  }'
```

The gateway charges per second: 720p = 33, 1080p = 54 credits. Read `/pricing` for the current amount.


## OpenAPI

````yaml POST /api/v1/task/submit/wan-2.6-flash
openapi: 3.0.3
info:
  title: Wizzx AI API
  version: 1.2.0
  description: >-
    Wizzx asynchronous image, video, and audio generation API. Model keys are
    placed in the submit URL. Submit returns a Wizzx task_id; poll that ID
    through /api/v1/task/status. Authentication uses a Wizzx API key in the
    Authorization: Bearer <key> header.
  license:
    name: MIT
    url: https://github.com/tonyljx/documentation/blob/main/LICENSE
servers:
  - url: https://api.wizzx.ai
    description: Production API
security: []
tags:
  - name: Discovery
    description: Public model and pricing discovery.
  - name: Credits
    description: Authenticated credit balance.
  - name: Image generation
    description: Asynchronous image tasks.
  - name: Video generation
    description: Asynchronous video tasks.
  - name: Audio generation
    description: Asynchronous music and audio tasks.
  - name: Tasks
    description: Asynchronous task status.
  - name: Legacy models
    description: >-
      Compatibility-only models hidden from /pricing. Do not select these
      automatically.
paths:
  /api/v1/task/submit/wan-2.6-flash:
    post:
      tags:
        - Video generation
      summary: Submit Wan 2.6 Flash task
      description: >-
        Creates one asynchronous paid task. Save data.task_id and poll the
        status endpoint. Do not automatically retry an ambiguous submit.
      operationId: submitWan26FlashTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Wan26FlashSubmitRequest'
            example:
              prompt: The person smiles and waves while the camera slowly zooms in
              image_urls:
                - https://example.com/portrait.jpg
              resolution: 720p
              duration: 5
      responses:
        '200':
          description: Task accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskSubmitResponse'
        '400':
          description: Malformed JSON or binding validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing, invalid, or revoked API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '413':
          description: Request body exceeds the configured limit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Model-specific validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers:
            X-Retry-After:
              description: Retry delay in seconds.
              schema:
                type: integer
                minimum: 0
        '500':
          description: Internal or upstream submission error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service or model temporarily unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    Wan26FlashSubmitRequest:
      type: object
      additionalProperties: false
      required:
        - image_urls
      description: >-
        Image-to-video only, silent output. Provide exactly one first-frame
        image; the output aspect ratio follows the image. Billed per second by
        resolution.
      properties:
        image_urls:
          type: array
          minItems: 1
          maxItems: 1
          items:
            type: string
            format: uri
            pattern: ^https?://
            description: Publicly reachable HTTP(S) URL.
        prompt:
          type: string
          maxLength: 1500
          description: Optional prompt, at most 1500 characters.
        type:
          type: string
          enum:
            - image-to-video
          default: image-to-video
        resolution:
          type: string
          enum:
            - 720p
            - 1080p
          default: 720p
        duration:
          type: integer
          minimum: 2
          maximum: 15
          default: 5
        negative_prompt:
          type: string
          maxLength: 500
        prompt_extend:
          type: boolean
          description: Smart prompt rewriting. Enabled unless set to false.
        shot_type:
          type: string
          enum:
            - single
            - multi
          description: >-
            Single-shot or multi-shot narrative. Requires prompt_extend not to
            be false.
        seed:
          type: integer
          minimum: 0
      not:
        required:
          - shot_type
          - prompt_extend
        properties:
          prompt_extend:
            enum:
              - false
    TaskSubmitResponse:
      type: object
      required:
        - code
        - message
        - data
        - request_id
      properties:
        code:
          type: integer
          enum:
            - 0
        message:
          type: string
          example: success
        data:
          $ref: '#/components/schemas/TaskSubmitData'
        request_id:
          type: string
          format: uuid
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
        request_id:
          type: string
          format: uuid
        retry_after:
          type: integer
          format: int64
          minimum: 0
          description: Retry delay in seconds. Present for rate-limit errors.
    TaskSubmitData:
      type: object
      required:
        - task_id
        - model_key
        - credits_deducted
      properties:
        task_id:
          type: string
          format: uuid
          description: Wizzx task ID used for status polling.
        model_key:
          type: string
        credits_deducted:
          type: integer
          minimum: 0
          description: Credits reserved when the task is accepted.
        provider_task_id:
          type: string
          description: Diagnostic field returned only when debug=1.
        provider_key:
          type: string
          description: Diagnostic field returned only when debug=1.
    ErrorDetail:
      type: object
      required:
        - message
        - type
        - param
        - code
      properties:
        message:
          type: string
        type:
          type: string
          enum:
            - invalid_request_error
            - authentication_error
            - insufficient_quota
            - permission_denied
            - not_found_error
            - conflict_error
            - unprocessable_entity_error
            - rate_limit_error
            - server_error
            - service_unavailable
        param:
          type: string
          nullable: true
        code:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Wizzx API key. This is not a JWT.

````