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

# HappyHorse 1.0 Video Edit

> Create asynchronous video edit tasks with happyhorse-1.0-video-edit via POST /v1/predictions.



## OpenAPI

````yaml en/api-reference/video-series/happyhorse/happyhorse-1.0-video-edit-video-generate.json POST /v1/predictions
openapi: 3.1.0
info:
  title: HappyHorse 1.0 Video Edit
  version: 1.0.0
servers:
  - url: https://api.shuyou.ai
security:
  - bearerAuth: []
paths:
  /v1/predictions:
    post:
      tags:
        - Video Generation
      summary: HappyHorse 1.0 Video Edit
      description: >-
        HappyHorse 1.0 Video Edit (`happyhorse-1.0-video-edit`) generates or
        edits video from a text prompt with reference images and/or a reference
        video for consistent subject appearance. Async mode: poll with Get a
        prediction using `data.task_id`, or use top-level `webhook`.
      operationId: createHappyhorse10VideoEditPrediction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Happyhorse10VideoEditPredictionRequest'
            examples:
              video_edit_minimal:
                summary: Video edit (minimal)
                value:
                  model: happyhorse-1.0-video-edit
                  input:
                    prompt: >-
                      Replace the background with a snowy mountain landscape
                      while keeping the subject unchanged
                    reference_video_urls:
                      - https://example.com/source-video.mp4
              video_edit_full:
                summary: Video edit (full params)
                value:
                  model: happyhorse-1.0-video-edit
                  input:
                    prompt: >-
                      Apply a cinematic color grade and maintain consistent
                      character appearance
                    reference_image_urls:
                      - https://example.com/character-ref-1.png
                      - https://example.com/character-ref-2.png
                    reference_video_urls:
                      - https://example.com/source-video.mp4
                    resolution: 1080P
                    watermark: false
              with_watermark:
                summary: With watermark
                value:
                  model: happyhorse-1.0-video-edit
                  input:
                    prompt: >-
                      Enhance lighting and add subtle motion blur to the
                      reference clip
                    reference_video_urls:
                      - https://example.com/source-video.mp4
                    reference_image_urls:
                      - https://example.com/style-ref.png
                    resolution: 720P
                    watermark: true
                  webhook: https://api.shuyou.ai/api/callback
      responses:
        '200':
          description: Async task created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PredictionTaskResponse'
              example:
                data:
                  task_id: 2c4d50261173430290971a2395a3b607
                  task_status: processing
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Insufficient quota
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Model access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    Happyhorse10VideoEditPredictionRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          description: Model ID. Use `happyhorse-1.0-video-edit` for this endpoint.
          enum:
            - happyhorse-1.0-video-edit
          default: happyhorse-1.0-video-edit
          example: happyhorse-1.0-video-edit
        input:
          $ref: '#/components/schemas/Happyhorse10VideoEditInput'
        webhook:
          type: string
          format: uri
          description: >-
            Optional HTTPS callback URL when the task completes, fails, or is
            cancelled (Predictions API).
    PredictionTaskResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            task_id:
              type: string
              description: Async task ID. Use with Get a prediction or webhook correlation.
              example: 2c4d50261173430290971a2395a3b607
            task_status:
              type: string
              description: Current task status, e.g. `processing`.
              example: processing
          required:
            - task_id
            - task_status
      required:
        - data
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            type:
              type: string
    Happyhorse10VideoEditInput:
      type: object
      required:
        - prompt
      properties:
        prompt:
          type: string
          description: Text prompt describing the video you want to generate.
          maxLength: 2500
          example: >-
            Replace the background with a snowy mountain landscape while keeping
            the subject unchanged
        reference_image_urls:
          type: array
          description: >-
            Reference image URLs for consistent subject appearance. Up to 5
            images.
          items:
            type: string
            format: uri
          maxItems: 5
          default: []
        reference_video_urls:
          type: array
          description: >-
            Reference video URLs for consistent subject appearance. Up to 1
            video.
          items:
            type: string
            format: uri
          maxItems: 1
          default: []
        resolution:
          type: string
          description: Resolution of the generated video. Default `1080P`.
          enum:
            - 720P
            - 1080P
          default: 1080P
          example: 1080P
        watermark:
          type: boolean
          description: >-
            Whether to add a watermark. When `true`, a fixed "Happy Horse" text
            watermark is placed at the bottom-right corner. Default `false`.
          default: false
          example: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: '`Authorization: Bearer YOUR_API_KEY`'

````