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

# MiniMax-H3 Style Transfer

> MiniMax-H3 style transfer: generate a video that takes on the art style of a reference image — for example, turning your photo into a video in the style of a ukiyo-e woodblock print.

- `ref_imgs[0]` (`<Picture 1>`) — **the style reference image**, required. The model transfers its art style (line work, brushwork, palette, texture); it does not copy the objects or characters shown in it.
- `ref_imgs[1]` … `ref_imgs[8]` (`<Picture 2>` … `<Picture 9>`) — **optional people or subjects** to appear in the video, such as a portrait of yourself.
- `ref_audios` — **0–3 audio clips**, optional. Numbered `<Audio 1>` … `<Audio 3>`.

Reference videos are not supported: a request with `ref_videos` is rejected. First/last frames are not supported either.

**Writing the prompt** — describe only the content: who is in the shot, where, what they do and how the camera moves. You do not need to name the style; the style comes from `<Picture 1>`. Adding a few style words (e.g. "woodblock print, bold outlines") can still help.

**Tips**

- Line-based styles — line art, prints, woodcut, ukiyo-e — transfer most reliably. Oil-painting brushwork also comes through well; watercolor styles are weaker.
- When you pass a portrait, name the person explicitly to keep their likeness, e.g. "the woman from `<Picture 2>`, keeping her face and hairstyle".
- Use a style image whose look you want, not whose content you want: objects in it will not appear in the video unless the prompt asks for them.

**Pricing** — billed per second, by resolution:

| Resolution | Tokens / sec | USD / sec |
|---|---|---|
| 480p | 1.5 | $0.03 |
| 540p | 2 | $0.04 |
| 720p | 3 | $0.06 |
| 2K | 4.5 | $0.09 |

All resolutions support 5–15 seconds. 2K renders at 720p first and is then upscaled, so it takes longer than 720p.

Example: a 5-second video at 720p costs 15 tokens (= $0.30).

Returns an `img_uuid`; poll GET /api/v1/jobs/detail (or use `custom_callback_url`) to get the generated video.



## OpenAPI

````yaml api-reference/video-generations/openapi-minimax-h3-style.json POST /api/v1/videos/generations
openapi: 3.1.0
info:
  title: GoEnhance API - MiniMax H3 Style Transfer
  description: >-
    Style-transfer video generation with MiniMax H3: render a video in the art
    style of a reference image.
  version: 1.0.0
servers:
  - url: https://api.goenhance.ai
security: []
paths:
  /api/v1/videos/generations:
    post:
      tags:
        - VideoGenerations
      summary: MiniMax-H3 Style Transfer
      description: >-
        MiniMax-H3 style transfer: generate a video that takes on the art style
        of a reference image — for example, turning your photo into a video in
        the style of a ukiyo-e woodblock print.


        - `ref_imgs[0]` (`<Picture 1>`) — **the style reference image**,
        required. The model transfers its art style (line work, brushwork,
        palette, texture); it does not copy the objects or characters shown in
        it.

        - `ref_imgs[1]` … `ref_imgs[8]` (`<Picture 2>` … `<Picture 9>`) —
        **optional people or subjects** to appear in the video, such as a
        portrait of yourself.

        - `ref_audios` — **0–3 audio clips**, optional. Numbered `<Audio 1>` …
        `<Audio 3>`.


        Reference videos are not supported: a request with `ref_videos` is
        rejected. First/last frames are not supported either.


        **Writing the prompt** — describe only the content: who is in the shot,
        where, what they do and how the camera moves. You do not need to name
        the style; the style comes from `<Picture 1>`. Adding a few style words
        (e.g. "woodblock print, bold outlines") can still help.


        **Tips**


        - Line-based styles — line art, prints, woodcut, ukiyo-e — transfer most
        reliably. Oil-painting brushwork also comes through well; watercolor
        styles are weaker.

        - When you pass a portrait, name the person explicitly to keep their
        likeness, e.g. "the woman from `<Picture 2>`, keeping her face and
        hairstyle".

        - Use a style image whose look you want, not whose content you want:
        objects in it will not appear in the video unless the prompt asks for
        them.


        **Pricing** — billed per second, by resolution:


        | Resolution | Tokens / sec | USD / sec |

        |---|---|---|

        | 480p | 1.5 | $0.03 |

        | 540p | 2 | $0.04 |

        | 720p | 3 | $0.06 |

        | 2K | 4.5 | $0.09 |


        All resolutions support 5–15 seconds. 2K renders at 720p first and is
        then upscaled, so it takes longer than 720p.


        Example: a 5-second video at 720p costs 15 tokens (= $0.30).


        Returns an `img_uuid`; poll GET /api/v1/jobs/detail (or use
        `custom_callback_url`) to get the generated video.
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: '{{Authorization}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  enum:
                    - minimax-h3-style
                  description: Model name. Must be `minimax-h3-style`.
                prompt:
                  type: string
                  maxLength: 7000
                  description: >-
                    Text prompt describing the content of the video — who,
                    where, what happens and how the camera moves. Required. Max
                    7000 characters. No style keywords are required; the style
                    comes from `<Picture 1>`. Refer to people or subjects as
                    `<Picture 2>` … `<Picture 9>` and to audio as `<Audio 1>` …
                    `<Audio 3>`.
                ref_imgs:
                  type: array
                  items:
                    type: string
                    format: uri
                  minItems: 1
                  maxItems: 9
                  description: >-
                    Reference images, 1–9 URLs. Required. JPG/PNG/WEBP, ≤10MB
                    each, shortest side ≥300px. The first image (`<Picture 1>`)
                    is always the style reference; images from the second on
                    (`<Picture 2>` …) are optional people or subjects to appear
                    in the video. Array order defines the `<Picture N>`
                    numbering used in the prompt.
                ref_audios:
                  type: array
                  items:
                    type: string
                    format: uri
                  minItems: 1
                  maxItems: 3
                  description: >-
                    Reference audio, 0–3 URLs. Optional. Only the first 15
                    seconds of each are used. Array order defines the `<Audio
                    N>` numbering used in the prompt.
                resolution:
                  type: string
                  enum:
                    - 480p
                    - 540p
                    - 720p
                    - 2K
                  default: 2K
                  description: >-
                    Output resolution. **This also selects the price** — see the
                    pricing table. 2K renders at 720p first and is then
                    upscaled, so it takes longer.
                duration:
                  type: integer
                  minimum: 5
                  maximum: 15
                  default: 5
                  description: Video duration in seconds. Any integer from 5 to 15.
                ratio:
                  type: string
                  enum:
                    - '16:9'
                    - '9:16'
                    - '1:1'
                    - '4:3'
                    - '3:4'
                    - '3:2'
                    - '2:3'
                  default: '16:9'
                  description: >-
                    Aspect ratio of the output video. Always applied as given
                    (the output does not follow the shape of the reference
                    images).
                custom_callback_url:
                  type: string
                  format: uri
                  description: >-
                    Optional. A publicly accessible HTTPS URL. When the task
                    status changes (processing / success / failed), GoEnhance
                    sends a POST request to this URL. The request body is
                    identical to the response of GET /api/v1/jobs/detail. If
                    your server does not respond with HTTP 200, the notification
                    is retried up to 3 times, with a 3-second timeout per
                    attempt.
                  example: https://your-server.com/goenhance/callback
              required:
                - model
                - prompt
                - ref_imgs
            example:
              model: minimax-h3-style
              prompt: >-
                The woman from <Picture 2>, keeping her face and hairstyle,
                walks slowly along a seaside path as waves crash behind her; the
                camera tracks alongside her, then slowly pushes in to a
                close-up. Woodblock print, bold outlines.
              ref_imgs:
                - https://example.com/style.jpg
                - https://example.com/portrait.jpg
              resolution: 720p
              duration: 5
              ratio: '16:9'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      img_uuid:
                        type: string
                      cost:
                        type: number
                        description: >-
                          Tokens deducted for this request. This is the amount
                          actually charged, so it already reflects any discount
                          active on your account and can be lower than the
                          listed price. Tokens are deducted when the task is
                          accepted, and refunded automatically if the generation
                          ends in failure.
                        example: 5.82
                    required:
                      - img_uuid
                      - cost
                required:
                  - code
                  - msg
                  - data
              examples:
                '1':
                  summary: Success
                  value:
                    code: 0
                    msg: Success
                    data:
                      img_uuid: c12b656c-747a-44fd-9c80-add79b0c52d5
                      cost: 5.82
                '2':
                  summary: Insufficient tokens
                  value:
                    code: 100
                    msg: tokens is not enough
                quota:
                  summary: API key quota exceeded
                  value:
                    code: 101
                    msg: 'API key quota exceeded: 4990 of 5000 tokens used (monthly)'
          headers: {}
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                required:
                  - code
                  - msg
          headers: {}
      deprecated: false
      security: []

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.