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

# Seedance 2.0 - Image to Video

> Transform images into dynamic videos powered by Bytedance's advanced Seedance 2.0 model

[//]: # "## Custom Uploaded Assets"

[//]: #

[//]: # "Seedance 2.0 image-to-video supports your own uploaded assets."

[//]: #

[//]: # "1. Upload the source image through [Seedance Asset Upload API](/models/seedance/asset-upload)"

[//]: # "2. Query [Seedance Asset Info API](/models/seedance/asset-info) until `Status` becomes `Active`"

[//]: # "3. Pass the returned `AssetId` into `img_urls`"

[//]: #

[//]: # "<Tip>"

[//]: # "  `img_urls` also supports normal public image URLs. For uploaded image materials, only URL upload is supported and Base64 is not supported.  "

[//]: # "  If your reference images contain real faces, it is recommended that you upload them to the material library for review first to improve the success rate of generation."

[//]: # "</Tip>"

[//]: #

[//]: # "## Request Example Using Uploaded Assets"

[//]: #

[//]: # "```json"

[//]: # "{"

[//]: # "  \"model\": \"bytedance/seedance2-0-i2v\","

[//]: # "  \"callback_url\": \"https://your-domain.com/api/callback\","

[//]: # "  \"input\": {"

[//]: # "    \"prompt\": \"The avatar turns toward the camera and walks forward naturally, with smooth cinematic motion and stable character consistency.\","

[//]: # "    \"img_urls\": ["

[//]: # "      \"asset://asset-20260224185115-jtzz8\","

[//]: # "      \"asset://asset-20260224185203-r8k2m\""

[//]: # "    ],"

[//]: # "    \"resolution\": \"720p\","

[//]: # "    \"aspect_ratio\": \"auto\","

[//]: # "    \"duration\": 6,"

[//]: # "    \"audio\": true,"

[//]: # "    \"return_last_frame\": false"

[//]: # "  }"

[//]: # "}"

```

## Query Task Status

After submitting a task, use the unified query endpoint to check progress and retrieve results:

<Card title="Get Task Info" icon="magnifying-glass" href="/models/common/get-task-info">
  Learn how to query task status and retrieve generation results
</Card>

<Tip>
  For production use, we recommend using the `callback_url` parameter to receive automatic notifications when generation completes, rather than polling the status endpoint.
</Tip>

## Related Resources

<CardGroup cols={2}>
  <Card title="Asset Upload" icon="upload" href="/models/seedance/asset-upload">
    Upload custom assets before using them in Seedance requests
  </Card>

  <Card title="Asset Info" icon="magnifying-glass" href="/models/seedance/asset-info">
    Wait until uploaded assets become active
  </Card>

  <Card title="Models Overview" icon="store" href="/models/quickstart">
    Explore all available models
  </Card>

  <Card title="Common API" icon="gear" href="/common-api/get-account-credits">
    Check credits and account usage
  </Card>
</CardGroup>
```


## OpenAPI

````yaml models/seedance/2-0/image-to-video.json post /api/v1/client/job/CreateTask
openapi: 3.0.0
info:
  title: Crun Seedance API
  description: crun.ai Seedance API Documentation
  version: 1.0.0
  contact:
    name: Technical Support
    email: support@crun.ai
servers:
  - url: https://api.crun.ai
    description: API Server
security:
  - ApiKeyAuth: []
paths:
  /api/v1/client/job/CreateTask:
    post:
      summary: Generate video using seedance2.0
      operationId: bytedance/seedance2-0-i2v
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              properties:
                model:
                  type: string
                  enum:
                    - bytedance/seedance2-0-i2v
                  description: |-
                    The model name to use for generation. Required field.

                    - Must be `bytedance/seedance2-0-i2v` for this endpoint
                callback_url:
                  type: string
                  format: uri
                  description: >-
                    Optional. Callback URL for receiving task completion
                    notifications.


                    - System will POST task status and results to this URL when
                    generation completes

                    - Callback payloads structure is consistent with the `data`
                    object returned by the task status query

                    - Your callback endpoint should accept POST requests with
                    JSON payload containing results

                    - It returns an HTTP 200 status code upon successful receipt
                  example: https://your-domain.com/api/callback
                input:
                  type: object
                  description: >-
                    Input parameters for the image-to-video generation task
                    (Seedance 2.0)
                  properties:
                    prompt:
                      type: string
                      description: >-
                        Text prompt describing the expected motion, scene
                        changes, and style of the generated video
                      minLength: 1
                      maxLength: 5000
                      example: >-
                        The dancer turns toward the camera and the silk dress
                        flows naturally in the wind while the background city
                        lights shimmer.
                    img_urls:
                      type: array
                      description: >-
                        Input images used as the first frame and optional last
                        frame for video generation. Each item must be either a
                        public image URL or an uploaded AssetId whose status is
                        Active. When `byteplus_fallback` is `true`, uploaded
                        asset IDs that use the `asset://` scheme are not
                        supported for this field; use public image URLs instead.
                        Use [Seedance Asset Upload
                        API](/models/seedance/asset-upload) to upload custom
                        assets and [Seedance Asset Info
                        API](/models/seedance/asset-info) to query asset status.


                        Each image must meet these requirements:

                        - Input method: public URL or active uploaded AssetId
                        only

                        - Base64 is not supported

                        - Formats: jpeg, png, webp, bmp, tiff, gif, heic, heif

                        - Aspect ratio (width/height): greater than 0.4 and less
                        than 2.5

                        - Width and height: 300 to 6000 px

                        - File size: less than 30 MB per image
                      items:
                        type: string
                        format: uri
                        example: https://example.com/frame_start.png
                      minItems: 1
                      maxItems: 2
                      example:
                        - https://example.com/frame_start.png
                        - https://example.com/frame_end.png
                    byteplus_fallback:
                      type: boolean
                      description: >-
                        Whether to enable BytePlus fallback. When enabled,
                        resource URL fields such as `img_urls`,
                        `reference_images`, and `reference_videos` do not
                        support uploaded asset IDs that use the `asset://`
                        scheme. Use publicly accessible resource URLs instead.
                      default: false
                      example: false
                    return_last_frame:
                      type: boolean
                      deprecated: true
                      description: Whether to return the last frame of the generated video
                      default: false
                      example: false
                    audio:
                      type: boolean
                      description: >-
                        Whether to generate synchronized audio for the output
                        video
                      default: false
                      example: true
                    resolution:
                      type: string
                      description: Output video resolution
                      enum:
                        - 480p
                        - 720p
                        - 1080p
                        - 4k
                      default: 720p
                      example: 720p
                    aspect_ratio:
                      type: string
                      description: Aspect ratio of the generated video
                      enum:
                        - '1:1'
                        - '9:16'
                        - '16:9'
                        - '3:4'
                        - '4:3'
                        - '21:9'
                        - auto
                      default: auto
                      example: auto
                    duration:
                      type: integer
                      description: >-
                        Video duration in seconds. Supports any integer from 4
                        to 15
                      minimum: 4
                      maximum: 15
                      default: 5
                      example: 6
                  required:
                    - prompt
                    - img_urls
            example:
              model: bytedance/seedance2-0-i2v
              callback_url: https://your-domain.com/api/callback
              input:
                prompt: >-
                  The dancer turns toward the camera and the silk dress flows
                  naturally in the wind while the background city lights
                  shimmer.
                img_urls:
                  - https://example.com/frame_start.png
                  - https://example.com/frame_end.png
                resolution: 720p
                aspect_ratio: auto
                duration: 6
                audio: true
                byteplus_fallback: false
                return_last_frame: false
      responses:
        '200':
          description: Request successful
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiResponse'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          task_id:
                            type: string
                            description: >-
                              Task ID, can be used with Get Task Details
                              endpoint to query task status
                            example: task_12345678
              example:
                code: 200
                message: success
                data:
                  task_id: task_12345678
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiResponse'
                  - type: object
                    properties:
                      errors:
                        type: array
                        description: Detailed validation error messages
                        items:
                          type: string
                        example:
                          - specific error field message
              example:
                code: 422
                message: Missing Params or Type Error
                errors:
                  - specific error field message
        '500':
          $ref: '#/components/responses/Error'
components:
  schemas:
    ApiResponse:
      type: object
      properties:
        code:
          type: integer
          enum:
            - 200
            - 401
            - 402
            - 404
            - 422
            - 429
            - 455
            - 500
            - 501
            - 505
          description: >-
            Response status code


            - **200**: Success - Request has been processed successfully

            - **401**: Unauthorized - Authentication credentials are missing or
            invalid

            - **402**: Insufficient Credits - Account does not have enough
            credits to perform the operation

            - **404**: Not Found - The requested resource or endpoint does not
            exist

            - **422**: Validation Error - The request parameters failed
            validation checks

            - **429**: Rate Limited - Request limit has been exceeded for this
            resource

            - **455**: Service Unavailable - System is currently undergoing
            maintenance

            - **500**: Server Error - An unexpected error occurred while
            processing the request

            - **501**: Generation Failed - Content generation task failed

            - **505**: Feature Disabled - The requested feature is currently
            disabled
        message:
          type: string
          description: Response message, error description when failed
          example: success
  responses:
    Error:
      description: Server Error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        All APIs require authentication via API Key.


        Get API Key:

        1. Visit [API Key Management Page](https://crun.ai/user-api-key) to get
        your API Key


        Usage:

        Add to request header:


        x-api-key: YOUR_API_KEY


        Note:

        - Keep your API Key secure and do not share it with others

        - If you suspect your API Key has been compromised, reset it immediately
        in the management page

````