---
title: "Asset From Audio Clip"
method: POST
path: "/api/projects/{project_id}/assets/from-audio-clip/{audio_clip_id}"
---

# Asset From Audio Clip

`POST /api/projects/{project_id}/assets/from-audio-clip/{audio_clip_id}`

## Request

- Base URL: `https://api.latted.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.latted.com/api/projects/{project_id}/assets/from-audio-clip/{audio_clip_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Wrap an existing AudioClip into an audio-typed Asset.

The clip must already be project-scoped (project_id set) or attached to a video
that belongs to this project.

## Path parameters

- `project_id` string, required
- `audio_clip_id` string, required

## Response `201`

Successful Response

- GenerateAssetResponse: Response schema for asset generation
  - `success` boolean
  - `asset` AssetResponse, required: Response schema for asset
    - `id` string, required
    - `projectId` string, required
    - `parentAssetId` string, nullable
    - `sceneId` string, nullable
    - `keyframeId` string, nullable
    - `name` string, required
    - `prompt` string, nullable
    - `mediaType` 'image' | 'video' | 'audio'
    - `imageUrl` string, nullable
    - `imageId` string, nullable
    - `videoUrl` string, nullable
    - `audioUrl` string, nullable
    - `durationMs` integer, nullable
    - `primaryVideoId` string, nullable
    - `primaryAudioClipId` string, nullable
    - `primaryImageId` string, nullable
    - `secondaryImageIds` object, nullable
    - `hasMultipleAngles` boolean
    - `secondaryAngles` object, nullable
    - `versions` AssetVersionResponse[]
      - `id` string, required
      - `versionNumber` integer, required
      - `parentVersionId` string, nullable
      - `createdAt` string, date-time, nullable
      - `isActive` boolean
      - `thumbnailUrl` string, nullable
      - `imageUrl` string, nullable
      - `name` string, nullable
      - `prompt` string, nullable
    - `activeVersionNumber` integer
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `subAssets` AssetResponse[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/latted/apis/motion-graphics-designer-api.md) · [All operations](https://skmtc.dev/latted/apis/motion-graphics-designer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/latted/apis/motion-graphics-designer-api/revisions/cf96730699f5?raw)
