> ## 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.

# Create a motion graphic

> Creates a motion graphic animated in code from a brief, such as kinetic type, a logo reveal or a social ad.

Follow the motion with [`GET /v2/videos/move/{motion_id}`](https://docs.magnific.com/api-reference/v2/move/get) or a `webhook_url` until its version is `ready`, then export it with [`POST /v2/videos/move/versions/{version_id}/render`](https://docs.magnific.com/api-reference/v2/move/render).


## OpenAPI

````yaml openapi/magnific-api-v2-projects-openapi.yaml POST /v2/videos/move
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/move:
    post:
      tags:
        - Videos
      summary: Create a motion graphic
      description: >-
        Creates a motion graphic animated in code from a brief, such as kinetic
        type, a logo reveal or a social ad.

        Returns the motion and its first version, ready in a few minutes: poll
        `GET /v2/videos/move/{motion_id}`, then

        export it with `POST /v2/videos/move/versions/{version_id}/render`.


        A personal token needs `api:write`.
      operationId: public-api.videos.move.store
      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/LaunchMotionApiRequest'
      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: object
                    properties:
                      credits:
                        type: number
                        description: >-
                          Credits the call would cost. Absent when it cannot be
                          priced: `reason` says why.
                      certainty:
                        type: string
                        description: '`exact`, `estimate` or `unsupported`.'
                      can_afford:
                        type: boolean
                        description: Whether the credits available cover it.
                      credits_available:
                        type: number
                        description: Credits available where the call would run.
                      reason:
                        type: string
                        description: >-
                          Why the price is what it is, or why it cannot be
                          given.
                      details:
                        type: object
                        description: >-
                          What the price is based on: model, resolution,
                          duration, who pays...
                    required:
                      - details
                required:
                  - data
        '202':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      motion_id:
                        type: string
                        examples:
                          - ab12CdE
                      studio_url:
                        type: string
                        description: Link to the motion in Magnific Move.
                      versions:
                        type: array
                        description: >-
                          Its newest 50 versions, oldest first. Only in `GET
                          /v2/videos/move/{motion_id}`.
                        items:
                          type: object
                          properties:
                            version_id:
                              type: string
                              examples:
                                - 9b2f6c1e-0d4a-4f0e-9a51-7f3c2b8e4d10
                            label:
                              type: string
                              description: 'The version label: `v1`, `v2`…'
                            status:
                              type: string
                              description: >-
                                `generating` while it is being made, then
                                `ready`, `failed` or `cancelled`.
                                `awaiting_input` means it waits for your input
                                in Magnific Move (`studio_url`).
                              enum:
                                - generating
                                - awaiting_input
                                - ready
                                - failed
                                - cancelled
                            kind:
                              type: string
                              enum:
                                - prompt
                                - edit
                                - polish
                                - adapt
                                - recreate
                            prompt:
                              type: string
                              description: The brief, cut at 300 characters.
                            allow_generation:
                              type: boolean
                            parent_id:
                              type: string
                              description: >-
                                The version it was made from; absent on the
                                first.
                            name:
                              type: string
                            duration:
                              type: number
                              description: Seconds, once known.
                            media_budget:
                              type: integer
                              description: >-
                                The most credits it may spend on generated media
                                when `allow_generation` is true.
                            poster_url:
                              type: string
                              description: A still of the version, once ready.
                            error:
                              type: string
                              description: Why it failed.
                            renders:
                              type: array
                              description: >-
                                Its MP4 exports. Only in `GET
                                /v2/videos/move/{motion_id}`.
                              items:
                                type: object
                                properties:
                                  status:
                                    type: string
                                    description: >-
                                      Status of the MP4 creation: `processing`,
                                      `completed` or `failed`.
                                    enum:
                                      - processing
                                      - completed
                                      - failed
                                  fps:
                                    type: integer
                                    enum:
                                      - 60
                                      - 30
                                      - 24
                                  scale:
                                    type: integer
                                    description: Resolution multiplier of the canvas.
                                    enum:
                                      - 1
                                      - 2
                                  motion_blur:
                                    type: boolean
                                  creation_id:
                                    type: string
                                    description: >-
                                      The MP4 creation. Download it with `GET
                                      /v2/creations/{creation_id}/download`.
                                    examples:
                                      - ab12CdE
                                required:
                                  - status
                                  - fps
                                  - scale
                                  - motion_blur
                            created_at:
                              type: string
                              format: date-time
                          required:
                            - version_id
                            - label
                            - status
                            - kind
                            - prompt
                            - allow_generation
                      title:
                        type: string
                      aspect_ratio:
                        type: string
                        description: Aspect ratio, such as `16:9`.
                      width:
                        type: integer
                      height:
                        type: integer
                      final_version_id:
                        type: string
                        description: >-
                          The version to export: the one marked final in
                          Magnific Move, else the newest ready one.
                      version:
                        type: object
                        description: >-
                          The version this call started. Only in `POST
                          /v2/videos/move` and `POST
                          /v2/videos/move/{motion_id}/versions`.
                        properties:
                          version_id:
                            type: string
                            examples:
                              - 9b2f6c1e-0d4a-4f0e-9a51-7f3c2b8e4d10
                          label:
                            type: string
                            description: 'The version label: `v1`, `v2`…'
                          status:
                            type: string
                            description: >-
                              `generating` while it is being made, then `ready`,
                              `failed` or `cancelled`. `awaiting_input` means it
                              waits for your input in Magnific Move
                              (`studio_url`).
                            enum:
                              - generating
                              - awaiting_input
                              - ready
                              - failed
                              - cancelled
                          kind:
                            type: string
                            enum:
                              - prompt
                              - edit
                              - polish
                              - adapt
                              - recreate
                          prompt:
                            type: string
                            description: The brief, cut at 300 characters.
                          allow_generation:
                            type: boolean
                          parent_id:
                            type: string
                            description: The version it was made from; absent on the first.
                          name:
                            type: string
                          duration:
                            type: number
                            description: Seconds, once known.
                          media_budget:
                            type: integer
                            description: >-
                              The most credits it may spend on generated media
                              when `allow_generation` is true.
                          poster_url:
                            type: string
                            description: A still of the version, once ready.
                          error:
                            type: string
                            description: Why it failed.
                          renders:
                            type: array
                            description: >-
                              Its MP4 exports. Only in `GET
                              /v2/videos/move/{motion_id}`.
                            items:
                              type: object
                              properties:
                                status:
                                  type: string
                                  description: >-
                                    Status of the MP4 creation: `processing`,
                                    `completed` or `failed`.
                                  enum:
                                    - processing
                                    - completed
                                    - failed
                                fps:
                                  type: integer
                                  enum:
                                    - 60
                                    - 30
                                    - 24
                                scale:
                                  type: integer
                                  description: Resolution multiplier of the canvas.
                                  enum:
                                    - 1
                                    - 2
                                motion_blur:
                                  type: boolean
                                creation_id:
                                  type: string
                                  description: >-
                                    The MP4 creation. Download it with `GET
                                    /v2/creations/{creation_id}/download`.
                                  examples:
                                    - ab12CdE
                              required:
                                - status
                                - fps
                                - scale
                                - motion_blur
                          created_at:
                            type: string
                            format: date-time
                        required:
                          - version_id
                          - label
                          - status
                          - kind
                          - prompt
                          - allow_generation
                    required:
                      - motion_id
                      - studio_url
                required:
                  - data
        '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
        '409':
          description: >-
            `conflict`, or a more specific code such as `not_ready` or
            `name_taken`.
          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'
        '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
        '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:
    LaunchMotionApiRequest:
      type: object
      properties:
        prompt:
          type: string
          description: >-
            The brief: message, copy, style and pacing. Links are not opened:
            send files in `references`.
          minLength: 1
          maxLength: 16000
        references:
          type:
            - array
            - 'null'
          description: >-
            Files the motion uses (logo, images, footage, audio), each one of
            your creations. Upload them first with `POST /v2/uploads`, or import
            stock with `POST /v2/uploads/stock`.
          items:
            type: object
            properties:
              type:
                type: string
                description: '`image`, `video` or `audio`: what the file is.'
                enum:
                  - image
                  - video
                  - audio
              creation_id:
                type: string
                description: The file's `creation_id`.
                maxLength: 64
            required:
              - type
              - creation_id
          maxItems: 100
        allow_generation:
          type: boolean
          description: >-
            Allow generating paid images, video, 3D, voice-over and music,
            charged on top of the run. Needed for narration or music. Default:
            `false`.
        media_budget:
          type:
            - integer
            - 'null'
          description: >-
            The most credits to spend on generated media when `allow_generation`
            is true. Default: 10000. The run and the export are charged
            separately.
          minimum: 0
        aspect_ratio:
          type:
            - string
            - 'null'
          description: Default `16:9`.
          enum:
            - '16:9'
            - '9:16'
            - '1:1'
            - '4:5'
            - '4:3'
            - '21:9'
            - null
        duration:
          type:
            - integer
            - 'null'
          description: 'Length in seconds. Default: chosen to fit the brief.'
          minimum: 1
          maximum: 180
        brand_kit_id:
          type:
            - string
            - 'null'
          description: >-
            A brand kit from `GET /v2/brand-kits` whose colors, fonts and logos
            the motion uses.
          maxLength: 64
        title:
          type:
            - string
            - 'null'
          description: The motion's name.
          maxLength: 120
        folder_reference:
          type: string
          description: >-
            The `reference` of the project or folder to save the result in.
            Default: your Personal project.
          maxLength: 64
        webhook_url:
          type: string
          format: uri
          description: >-
            Called when the version finishes (`ready`, `failed` or `cancelled`)
            with the motion as `GET /v2/videos/move/{motion_id}` returns it,
            signed with your API key's webhook secret. API keys only.
          maxLength: 512
      required:
        - prompt
      title: LaunchMotionApiRequest
    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.