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

# Kling 3.0 Omni

> Kling 3.0 Omni on Magnific API v2: what it takes and how to call it.

```bash cURL theme={null}
curl --request POST \
  --url https://api.magnific.com/v2/videos/generate/kling-omni3 \
  --header 'Content-Type: application/json' \
  --header 'x-magnific-api-key: <api-key>' \
  --data '
{
  "prompt": "A serene mountain landscape at golden hour, slow camera push in",
  "duration": 3,
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "webhook_url": "https://www.example.com/webhook"
}
'
```

```python Python theme={null}
import requests

response = requests.post(
    "https://api.magnific.com/v2/videos/generate/kling-omni3",
    headers={"x-magnific-api-key": "<api-key>"},
    json={
        "prompt": "A serene mountain landscape at golden hour, slow camera push in",
        "duration": 3,
        "aspect_ratio": "16:9",
        "resolution": "720p",
        "webhook_url": "https://www.example.com/webhook"
    },
)
print(response.json())
```

```javascript JavaScript theme={null}
const response = await fetch("https://api.magnific.com/v2/videos/generate/kling-omni3", {
  method: "POST",
  headers: { "Content-Type": "application/json", "x-magnific-api-key": "<api-key>" },
  body: JSON.stringify({
    "prompt": "A serene mountain landscape at golden hour, slow camera push in",
    "duration": 3,
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "webhook_url": "https://www.example.com/webhook"
  }),
});
console.log(await response.json());
```

```json 202 Queued theme={null}
{
  "data": [
    {
      "creation_id": "ab12CdE",
      "status": "queued"
    }
  ],
  "meta": {}
}
```

```json 422 Validation failed theme={null}
{
  "code": "validation_failed",
  "message": "The selected resolution is invalid.",
  "details": {
    "errors": {
      "resolution": [
        "The selected resolution is invalid."
      ]
    }
  },
  "request_id": "ak-0123abcd"
}
```


## OpenAPI

````yaml openapi/magnific-api-v2-projects-openapi.yaml POST /v2/videos/generate/kling-omni3
openapi: 3.1.0
info:
  title: Magnific API v2 — Projects, uploads, generation, generations and library
  version: 2.0.0
  description: >-
    Projects and folders, uploads, image, video and audio generation,
    generations and the library of the Magnific API v2.
servers:
  - url: https://api.magnific.com
    description: Production V2
security:
  - magnificApiKey: []
  - bearerAuth: []
tags:
  - name: Projects
    description: >-
      Your projects and the folders inside them: list, create, rename, archive
      and delete them, and manage who has access.
  - name: Library
    description: >-
      Reusable characters, styles, products and locations to reference when you
      generate.
  - name: Videos
    description: >-
      Generate and edit videos. Add `?dry_run=true` to get the price of a
      request first.
  - name: Images
    description: Generate images and edit your image creations.
  - name: Creations
    description: >-
      What your generations, edits and uploads produced: read, list, rename,
      move, trash and download them.
  - name: Tags
    description: A project's review statuses and labels, and their assignment to creations.
  - name: Uploads
    description: >-
      Your own files as creations: upload them, import them from a URL, or save
      a stock item.
  - name: Flows
    description: >-
      Multi-step workflows saved from a Space: list them, read their inputs and
      run them.
  - name: Audio
    description: 'Generate and edit audio: voiceovers, music and sound effects.'
  - name: Brandkits
    description: >-
      Your brand kits: colours, fonts, logos, rules, documents and templates,
      and the creations made with them.
  - name: Search
    description: Search your creations across your workspace.
  - name: Account
    description: >-
      The account a request is paid with: its plan, available credits, profile
      and permissions.
paths:
  /v2/videos/generate/kling-omni3:
    post:
      tags:
        - Videos
      summary: Kling 3.0 Omni
      description: >-
        Generates one video with the model in the path and returns the queued
        creation. Poll

        `GET /v2/creations/{creation_id}` or set `webhook_url` to know when it
        is ready. Name the model by its `slug` or

        its API v1 name.


        A personal token needs `api:write`.
      operationId: public-api.videos.generate.kling-omni3
      parameters:
        - name: dry_run
          in: query
          description: >-
            `true` returns the price of the request instead of running it.
            Nothing is charged or created.
          schema:
            type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateVideo_kling-omni3'
            example:
              prompt: A serene mountain landscape at golden hour, slow camera push in
              duration: 3
              aspect_ratio: '16:9'
              resolution: 720p
      responses:
        '200':
          description: >-
            With `dry_run=true`: what the request would cost. Nothing is charged
            or created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    description: The video the call would generate, with its price.
                    items:
                      type: object
                      properties:
                        slug:
                          type: string
                          description: The model, as named in the path.
                        duration:
                          type: number
                          description: Length of the video in seconds.
                        credits:
                          type: integer
                          description: Credits the video would cost.
                        expected_generation_time:
                          type: integer
                          description: Expected generation time in seconds.
                  meta:
                    type: object
                    properties:
                      credits:
                        type: integer
                        description: Total credits the call would cost.
                    required:
                      - credits
                required:
                  - data
                  - meta
        '202':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    description: >-
                      The queued creations. Follow each with `GET
                      /v2/creations/{creation_id}` or a `webhook_url`.
                    items:
                      type: object
                      properties:
                        creation_id:
                          type: string
                          examples:
                            - ab12CdE
                        status:
                          type: string
                          description: Where the creation stands.
                          enum:
                            - queued
                            - processing
                            - completed
                            - failed
                        kind:
                          type: string
                          description: '`video` for a video; absent otherwise.'
                          enum:
                            - video
                        url:
                          type: string
                          description: >-
                            The result, once completed. For a video it may be a
                            preview: `GET /v2/creations/{creation_id}/download`
                            returns the original file.
                        thumbnail_url:
                          type: string
                        preview_url:
                          type: string
                        created_at:
                          type: string
                          format: date-time
                        title:
                          type: string
                          description: The creation's name.
                        folder_reference:
                          type: string
                          description: The `reference` of the project or folder it is in.
                        tags:
                          type: array
                          description: >-
                            The names of its tags in its project. Only in `GET
                            /v2/creations/{creation_id}`.
                          items:
                            type: string
                        review_status:
                          type: string
                          description: >-
                            Its review status in its project (`Approved`, `In
                            review`… or a custom one). Only in `GET
                            /v2/creations/{creation_id}`.
                        comments_count:
                          type: integer
                          description: >-
                            How many comments it has. Only in `GET
                            /v2/creations/{creation_id}`, for a creation in a
                            project.
                        tiles:
                          type: array
                          description: >-
                            For a Magnific One draft grid (`mode: draft`): the
                            `creation_id` of each tile, in reading order. Only
                            in `GET /v2/creations/{creation_id}`.
                          items:
                            type: string
                      required:
                        - creation_id
                        - status
                  meta:
                    type: object
                required:
                  - data
                  - meta
        '401':
          description: >-
            `unauthenticated`: the token or API key is missing, expired or
            invalid.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: >-
                      A stable error code, such as `validation_failed`,
                      `insufficient_credits`, `not_found` or `rate_limited`.
                    examples:
                      - validation_failed
                  message:
                    type: string
                    description: A human-readable message.
                  details:
                    type: object
                    description: More detail about the error, when there is any.
                    properties:
                      errors:
                        type: object
                        description: >-
                          Validation messages by field, such as `resolution`;
                          under `request` for the request as a whole.
                        additionalProperties:
                          type: array
                          items:
                            type: string
                      violations:
                        type: array
                        description: >-
                          Each value the model does not accept, with the values
                          it accepts.
                        items:
                          type: object
                          properties:
                            model:
                              type: string
                              description: The model slug.
                            field:
                              type: string
                              description: >-
                                The field: `resolution`, `aspect_ratio`,
                                `duration`, `multi_prompt`, `references`...
                            message:
                              type: string
                            allowed:
                              type: array
                              description: The values the model takes, when it lists them.
                              items:
                                type: string
                            max:
                              type: number
                              description: The highest value the model takes, for a limit.
                          required:
                            - model
                            - field
                            - message
                  request_id:
                    type: string
                    description: The request id, to share with support.
                required:
                  - code
                  - message
        '402':
          description: >-
            `insufficient_credits`: not enough credits. `details` has
            `required_credits` and `available_credits`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: >-
                      A stable error code, such as `validation_failed`,
                      `insufficient_credits`, `not_found` or `rate_limited`.
                    examples:
                      - validation_failed
                  message:
                    type: string
                    description: A human-readable message.
                  details:
                    type: object
                    description: More detail about the error, when there is any.
                    properties:
                      errors:
                        type: object
                        description: >-
                          Validation messages by field, such as `resolution`;
                          under `request` for the request as a whole.
                        additionalProperties:
                          type: array
                          items:
                            type: string
                      violations:
                        type: array
                        description: >-
                          Each value the model does not accept, with the values
                          it accepts.
                        items:
                          type: object
                          properties:
                            model:
                              type: string
                              description: The model slug.
                            field:
                              type: string
                              description: >-
                                The field: `resolution`, `aspect_ratio`,
                                `duration`, `multi_prompt`, `references`...
                            message:
                              type: string
                            allowed:
                              type: array
                              description: The values the model takes, when it lists them.
                              items:
                                type: string
                            max:
                              type: number
                              description: The highest value the model takes, for a limit.
                          required:
                            - model
                            - field
                            - message
                      required_credits:
                        type: number
                        description: 'For `insufficient_credits`: what the request costs.'
                      available_credits:
                        type: number
                        description: 'For `insufficient_credits`: what you can spend now.'
                  request_id:
                    type: string
                    description: The request id, to share with support.
                required:
                  - code
                  - message
        '403':
          description: >-
            `forbidden`, or a more specific code such as `insufficient_scope`:
            your token, role, plan or organization does not allow it.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: >-
                      A stable error code, such as `validation_failed`,
                      `insufficient_credits`, `not_found` or `rate_limited`.
                    examples:
                      - validation_failed
                  message:
                    type: string
                    description: A human-readable message.
                  details:
                    type: object
                    description: More detail about the error, when there is any.
                    properties:
                      errors:
                        type: object
                        description: >-
                          Validation messages by field, such as `resolution`;
                          under `request` for the request as a whole.
                        additionalProperties:
                          type: array
                          items:
                            type: string
                      violations:
                        type: array
                        description: >-
                          Each value the model does not accept, with the values
                          it accepts.
                        items:
                          type: object
                          properties:
                            model:
                              type: string
                              description: The model slug.
                            field:
                              type: string
                              description: >-
                                The field: `resolution`, `aspect_ratio`,
                                `duration`, `multi_prompt`, `references`...
                            message:
                              type: string
                            allowed:
                              type: array
                              description: The values the model takes, when it lists them.
                              items:
                                type: string
                            max:
                              type: number
                              description: The highest value the model takes, for a limit.
                          required:
                            - model
                            - field
                            - message
                      required_scope:
                        type: string
                        description: 'For `insufficient_scope`: the scope the token needs.'
                  request_id:
                    type: string
                    description: The request id, to share with support.
                required:
                  - code
                  - message
        '404':
          description: '`not_found`: it does not exist, or you cannot see it.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: >-
                      A stable error code, such as `validation_failed`,
                      `insufficient_credits`, `not_found` or `rate_limited`.
                    examples:
                      - validation_failed
                  message:
                    type: string
                    description: A human-readable message.
                  details:
                    type: object
                    description: More detail about the error, when there is any.
                    properties:
                      errors:
                        type: object
                        description: >-
                          Validation messages by field, such as `resolution`;
                          under `request` for the request as a whole.
                        additionalProperties:
                          type: array
                          items:
                            type: string
                      violations:
                        type: array
                        description: >-
                          Each value the model does not accept, with the values
                          it accepts.
                        items:
                          type: object
                          properties:
                            model:
                              type: string
                              description: The model slug.
                            field:
                              type: string
                              description: >-
                                The field: `resolution`, `aspect_ratio`,
                                `duration`, `multi_prompt`, `references`...
                            message:
                              type: string
                            allowed:
                              type: array
                              description: The values the model takes, when it lists them.
                              items:
                                type: string
                            max:
                              type: number
                              description: The highest value the model takes, for a limit.
                          required:
                            - model
                            - field
                            - message
                  request_id:
                    type: string
                    description: The request id, to share with support.
                required:
                  - code
                  - message
        '422':
          description: >-
            `validation_failed`: `details.errors` lists the problems by field.
            `unsupported_by_model`: `details.violations` lists the values the
            model does not accept.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: >-
                      A stable error code, such as `validation_failed`,
                      `insufficient_credits`, `not_found` or `rate_limited`.
                    examples:
                      - validation_failed
                  message:
                    type: string
                    description: A human-readable message.
                  details:
                    type: object
                    description: More detail about the error, when there is any.
                    properties:
                      errors:
                        type: object
                        description: >-
                          Validation messages by field, such as `resolution`;
                          under `request` for the request as a whole.
                        additionalProperties:
                          type: array
                          items:
                            type: string
                      violations:
                        type: array
                        description: >-
                          Each value the model does not accept, with the values
                          it accepts.
                        items:
                          type: object
                          properties:
                            model:
                              type: string
                              description: The model slug.
                            field:
                              type: string
                              description: >-
                                The field: `resolution`, `aspect_ratio`,
                                `duration`, `multi_prompt`, `references`...
                            message:
                              type: string
                            allowed:
                              type: array
                              description: The values the model takes, when it lists them.
                              items:
                                type: string
                            max:
                              type: number
                              description: The highest value the model takes, for a limit.
                          required:
                            - model
                            - field
                            - message
                  request_id:
                    type: string
                    description: The request id, to share with support.
                required:
                  - code
                  - message
        '429':
          description: >-
            `rate_limited`, or the limit reached, such as
            `upload_quota_exceeded`. Retry after the `Retry-After` header, in
            seconds.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: >-
                      A stable error code, such as `validation_failed`,
                      `insufficient_credits`, `not_found` or `rate_limited`.
                    examples:
                      - validation_failed
                  message:
                    type: string
                    description: A human-readable message.
                  details:
                    type: object
                    description: More detail about the error, when there is any.
                    properties:
                      errors:
                        type: object
                        description: >-
                          Validation messages by field, such as `resolution`;
                          under `request` for the request as a whole.
                        additionalProperties:
                          type: array
                          items:
                            type: string
                      violations:
                        type: array
                        description: >-
                          Each value the model does not accept, with the values
                          it accepts.
                        items:
                          type: object
                          properties:
                            model:
                              type: string
                              description: The model slug.
                            field:
                              type: string
                              description: >-
                                The field: `resolution`, `aspect_ratio`,
                                `duration`, `multi_prompt`, `references`...
                            message:
                              type: string
                            allowed:
                              type: array
                              description: The values the model takes, when it lists them.
                              items:
                                type: string
                            max:
                              type: number
                              description: The highest value the model takes, for a limit.
                          required:
                            - model
                            - field
                            - message
                  request_id:
                    type: string
                    description: The request id, to share with support.
                required:
                  - code
                  - message
        '457':
          description: >-
            `user_banned`: your account is banned from generating. `details` has
            `ban_type` and `reason`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserBannedError'
        '458':
          description: '`upgrade_required`: your plan does not include it.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: >-
                      A stable error code, such as `validation_failed`,
                      `insufficient_credits`, `not_found` or `rate_limited`.
                    examples:
                      - validation_failed
                  message:
                    type: string
                    description: A human-readable message.
                  details:
                    type: object
                    description: More detail about the error, when there is any.
                    properties:
                      errors:
                        type: object
                        description: >-
                          Validation messages by field, such as `resolution`;
                          under `request` for the request as a whole.
                        additionalProperties:
                          type: array
                          items:
                            type: string
                      violations:
                        type: array
                        description: >-
                          Each value the model does not accept, with the values
                          it accepts.
                        items:
                          type: object
                          properties:
                            model:
                              type: string
                              description: The model slug.
                            field:
                              type: string
                              description: >-
                                The field: `resolution`, `aspect_ratio`,
                                `duration`, `multi_prompt`, `references`...
                            message:
                              type: string
                            allowed:
                              type: array
                              description: The values the model takes, when it lists them.
                              items:
                                type: string
                            max:
                              type: number
                              description: The highest value the model takes, for a limit.
                          required:
                            - model
                            - field
                            - message
                  request_id:
                    type: string
                    description: The request id, to share with support.
                required:
                  - code
                  - message
        '500':
          description: >-
            `server_error`: an unexpected error. Share `request_id` with
            support.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: >-
                      A stable error code, such as `validation_failed`,
                      `insufficient_credits`, `not_found` or `rate_limited`.
                    examples:
                      - validation_failed
                  message:
                    type: string
                    description: A human-readable message.
                  details:
                    type: object
                    description: More detail about the error, when there is any.
                    properties:
                      errors:
                        type: object
                        description: >-
                          Validation messages by field, such as `resolution`;
                          under `request` for the request as a whole.
                        additionalProperties:
                          type: array
                          items:
                            type: string
                      violations:
                        type: array
                        description: >-
                          Each value the model does not accept, with the values
                          it accepts.
                        items:
                          type: object
                          properties:
                            model:
                              type: string
                              description: The model slug.
                            field:
                              type: string
                              description: >-
                                The field: `resolution`, `aspect_ratio`,
                                `duration`, `multi_prompt`, `references`...
                            message:
                              type: string
                            allowed:
                              type: array
                              description: The values the model takes, when it lists them.
                              items:
                                type: string
                            max:
                              type: number
                              description: The highest value the model takes, for a limit.
                          required:
                            - model
                            - field
                            - message
                  request_id:
                    type: string
                    description: The request id, to share with support.
                required:
                  - code
                  - message
        '502':
          description: '`upstream_error`: a model provider failed. Retry later.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: >-
                      A stable error code, such as `validation_failed`,
                      `insufficient_credits`, `not_found` or `rate_limited`.
                    examples:
                      - validation_failed
                  message:
                    type: string
                    description: A human-readable message.
                  details:
                    type: object
                    description: More detail about the error, when there is any.
                    properties:
                      errors:
                        type: object
                        description: >-
                          Validation messages by field, such as `resolution`;
                          under `request` for the request as a whole.
                        additionalProperties:
                          type: array
                          items:
                            type: string
                      violations:
                        type: array
                        description: >-
                          Each value the model does not accept, with the values
                          it accepts.
                        items:
                          type: object
                          properties:
                            model:
                              type: string
                              description: The model slug.
                            field:
                              type: string
                              description: >-
                                The field: `resolution`, `aspect_ratio`,
                                `duration`, `multi_prompt`, `references`...
                            message:
                              type: string
                            allowed:
                              type: array
                              description: The values the model takes, when it lists them.
                              items:
                                type: string
                            max:
                              type: number
                              description: The highest value the model takes, for a limit.
                          required:
                            - model
                            - field
                            - message
                  request_id:
                    type: string
                    description: The request id, to share with support.
                required:
                  - code
                  - message
        '503':
          description: >-
            `service_unavailable`: temporarily unavailable. Retry after the
            `Retry-After` header, in seconds.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: >-
                      A stable error code, such as `validation_failed`,
                      `insufficient_credits`, `not_found` or `rate_limited`.
                    examples:
                      - validation_failed
                  message:
                    type: string
                    description: A human-readable message.
                  details:
                    type: object
                    description: More detail about the error, when there is any.
                    properties:
                      errors:
                        type: object
                        description: >-
                          Validation messages by field, such as `resolution`;
                          under `request` for the request as a whole.
                        additionalProperties:
                          type: array
                          items:
                            type: string
                      violations:
                        type: array
                        description: >-
                          Each value the model does not accept, with the values
                          it accepts.
                        items:
                          type: object
                          properties:
                            model:
                              type: string
                              description: The model slug.
                            field:
                              type: string
                              description: >-
                                The field: `resolution`, `aspect_ratio`,
                                `duration`, `multi_prompt`, `references`...
                            message:
                              type: string
                            allowed:
                              type: array
                              description: The values the model takes, when it lists them.
                              items:
                                type: string
                            max:
                              type: number
                              description: The highest value the model takes, for a limit.
                          required:
                            - model
                            - field
                            - message
                  request_id:
                    type: string
                    description: The request id, to share with support.
                required:
                  - code
                  - message
      security:
        - magnificApiKey: []
        - bearerAuth: []
components:
  schemas:
    GenerateVideo_kling-omni3:
      type: object
      title: GenerateVideoApiRequest
      properties:
        duration:
          type: integer
          description: Length in seconds, one of the values the model accepts.
          enum:
            - 3
            - 4
            - 5
            - 6
            - 7
            - 8
            - 9
            - 10
            - 11
            - 12
            - 13
            - 14
            - 15
        prompt:
          type: string
          description: >-
            What happens in the video. Leave it out when `multi_prompt`
            describes the shots.
        references:
          type:
            - array
            - 'null'
          description: >-
            Images, videos or audio that guide the video, as the model accepts
            them: a `type`, plus one of your creations as `creation_id`, a
            public https `url` or `base64`.
          items:
            type: object
            properties:
              type:
                type: string
                enum:
                  - image
                  - video
                  - character
                  - product
                  - style
                  - color
                  - effect
                  - audio
                  - multishot-start-frame
              url:
                type:
                  - string
                  - 'null'
              name:
                type:
                  - string
                  - 'null'
                maxLength: 100
              media_id:
                type:
                  - string
                  - 'null'
                maxLength: 50
              custom_model_id:
                type:
                  - string
                  - 'null'
                maxLength: 50
              modifier_key:
                type:
                  - string
                  - 'null'
                maxLength: 100
              motion_shot_count:
                type:
                  - integer
                  - 'null'
                minimum: 1
              motion_shot_durations:
                type:
                  - array
                  - 'null'
                items:
                  type: number
                minItems: 1
              motion_figure_fidelity:
                type:
                  - string
                  - 'null'
                enum:
                  - detailed
                  - blocked
                  - null
              motion_shot_lenses:
                type:
                  - array
                  - 'null'
                items:
                  type: string
                minItems: 1
              motion_cut_times:
                type:
                  - array
                  - 'null'
                items:
                  type: number
                maxItems: 64
              images:
                type:
                  - array
                  - 'null'
                items:
                  type: integer
              shot_index:
                type:
                  - integer
                  - 'null'
                minimum: 1
              replaces:
                type:
                  - string
                  - 'null'
                pattern: ^person-\d{1,2}$
              use:
                type:
                  - string
                  - 'null'
                enum:
                  - other
                  - null
              color_palette:
                type:
                  - array
                  - 'null'
                items:
                  type: object
                  properties:
                    color:
                      type: string
                    weight:
                      type: number
                      minimum: 0
                      maximum: 1
                  required:
                    - color
                    - weight
              base64:
                type:
                  - string
                  - 'null'
                maxLength: 14500000
              creation_id:
                type:
                  - string
                  - 'null'
                maxLength: 64
            required:
              - type
        audio_url:
          type:
            - string
            - 'null'
          description: >-
            URL of an audio track the video plays, on models that accept one.
            Use `audio_creation_id` for one of your creations.
        with_sound_effects:
          type:
            - boolean
            - 'null'
          description: Generate sound with the video, on models that can.
        no_music:
          type:
            - boolean
            - 'null'
          description: Keep music out of the generated sound.
        dynamic_range:
          type:
            - string
            - 'null'
          description: Dynamic range of the output, on models that offer more than one.
          enum:
            - sdr
            - hdr
            - null
        negative_prompt:
          type:
            - string
            - 'null'
          description: What the video should not show.
          maxLength: 2000
        fps:
          type:
            - integer
            - 'null'
          description: Frames per second, on models that offer a choice.
          minimum: 1
          maximum: 120
        seed:
          type:
            - integer
            - 'null'
          description: >-
            Seed to repeat a result: the same seed and settings give the same
            video, on models that accept one.
          minimum: 0
          maximum: 4294967295
        camera_motion:
          type:
            - string
            - 'null'
          description: A camera move, one of the model's `camera_motion` values.
          maxLength: 100
        multi_prompt:
          type:
            - array
            - 'null'
          description: >-
            Several shots in one video, on models with `multishot.allowed:
            true`: up to 6, each with its `prompt` and, where the model asks,
            `duration`. Replaces `prompt`.
          items:
            type: object
            properties:
              index:
                type:
                  - string
                  - 'null'
              prompt:
                type: string
              duration:
                type:
                  - number
                  - 'null'
              camera_motion:
                type:
                  - string
                  - 'null'
                maxLength: 100
          maxItems: 6
        aspect_ratio:
          type: string
          description: One of the aspect ratios the model accepts.
          maxLength: 16
          enum:
            - '16:9'
            - '9:16'
            - '1:1'
        resolution:
          type: string
          description: One of the resolutions the model accepts.
          maxLength: 16
          enum:
            - 720p
            - 1080p
            - 4K
        keyframes:
          type: object
          description: >-
            The frames the video starts and ends on: `start` and `end`, each an
            image given as a `creation_id`, a public https `url` or `base64`
            (JPEG, PNG or WebP, up to 10 MB). Up to 6 inline images per request.
          properties:
            end:
              type:
                - object
                - 'null'
              properties:
                type:
                  type: string
                  enum:
                    - image
                url:
                  type:
                    - string
                    - 'null'
                name:
                  type:
                    - string
                    - 'null'
                  maxLength: 100
                frame:
                  type:
                    - string
                    - 'null'
                  enum:
                    - start
                    - end
                    - null
                base64:
                  type:
                    - string
                    - 'null'
                  maxLength: 14500000
                creation_id:
                  type:
                    - string
                    - 'null'
                  maxLength: 64
            middle:
              type:
                - array
                - 'null'
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - image
                  url:
                    type: string
                  name:
                    type:
                      - string
                      - 'null'
                    maxLength: 100
                  frame:
                    type:
                      - string
                      - 'null'
                    enum:
                      - start
                      - end
                      - null
                  creation_id:
                    type:
                      - string
                      - 'null'
                    maxLength: 64
                required:
                  - type
                  - url
              maxItems: 10
            start:
              type: object
              properties:
                type:
                  type: string
                  enum:
                    - image
                url:
                  type:
                    - string
                    - 'null'
                name:
                  type:
                    - string
                    - 'null'
                  maxLength: 100
                frame:
                  type:
                    - string
                    - 'null'
                  enum:
                    - start
                    - end
                    - null
                base64:
                  type:
                    - string
                    - 'null'
                  maxLength: 14500000
                creation_id:
                  type:
                    - string
                    - 'null'
                  maxLength: 64
            sketch:
              type: object
              properties:
                type:
                  type: string
                  enum:
                    - image
                url:
                  type: string
                creation_id:
                  type:
                    - string
                    - 'null'
                  maxLength: 64
            video:
              type: object
              properties:
                type:
                  type: string
                  enum:
                    - video
                url:
                  type: string
                creation_id:
                  type:
                    - string
                    - 'null'
                  maxLength: 64
            image:
              type: object
              properties:
                type:
                  type: string
                  enum:
                    - image
                url:
                  type: string
                creation_id:
                  type:
                    - string
                    - 'null'
                  maxLength: 64
        webhook_url:
          type: string
          format: uri
          description: >-
            A URL called once per creation when it completes or fails, signed
            with your API key's webhook secret. API keys only.
          maxLength: 512
        folder_reference:
          type: string
          description: >-
            The `reference` of the project or folder to save the result in.
            Default: your Personal project.
          maxLength: 64
        title:
          type:
            - string
            - 'null'
          description: 'The name of the creations. Default: a title made from the prompt.'
          maxLength: 120
      required:
        - duration
    UserBannedError:
      type: object
      description: '`user_banned`: the account is banned from generating.'
      properties:
        code:
          type: string
          enum:
            - user_banned
        message:
          type: string
          description: A human-readable message.
        details:
          type: object
          properties:
            ban_type:
              type: string
              description: The ban, such as `full_generation`.
            reason:
              type: string
              description: Why the account was banned.
        request_id:
          type: string
          description: The request id, to share with support.
      required:
        - code
        - message
  securitySchemes:
    magnificApiKey:
      type: apiKey
      in: header
      name: x-magnific-api-key
      description: >-
        Your Magnific API key. [Learn how to obtain an API
        key](https://docs.magnific.com/quickstart)
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A personal access token, sent as `Authorization: Bearer <token>`. [How
        to get one](/api-reference/v2/overview#get-a-personal-access-token)

````

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