---
title: "Generate motion graphics"
method: POST
path: "/ai/generate-motion-graphics"
tags: ["AI"]
---

# Generate motion graphics

`POST /ai/generate-motion-graphics`

## Request

- Base URL: `https://api.rendley.com/v1`
- URL: `https://api.rendley.com/v1/ai/generate-motion-graphics`
- Auth: API key in header `Authorization`

Start a project-scoped motion-graphics generation and return its API job ID. Motion graphics are project content and are not added to the workspace Library.

## Request body

- AiGenerateMotionGraphicsDTO
  - `duration` number
  - `height` integer
  - `images` AiMotionGraphicsImageInput[]
    - `description` string
    - `height` integer
    - `mediaId` string, required
    - `width` integer
  - `project_id` string, required
  - `prompt` string, required
  - `width` integer

## Response `200`

OK

- object
  - `data` object: Success data
    - `job_id` string, uuid
  - `error` HttpResponseAPIError
    - `code` string
    - `fields` HttpResponseFieldError[]
      - `field` string
      - `message` string
    - `message` string
  - `meta` unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/rendley/apis/rendley-api.md) - [All operations](https://skmtc.dev/rendley/apis/rendley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rendley/apis/rendley-api/revisions/7eb8713bbf78?raw)
