---
title: "Extract Audio From Video"
method: POST
path: "/api/projects/{project_id}/videos/{video_id}/audio-clips/extract-from-video"
---

# Extract Audio From Video

`POST /api/projects/{project_id}/videos/{video_id}/audio-clips/extract-from-video`

## 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}/videos/{video_id}/audio-clips/extract-from-video`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Extract audio from a video and create an audio clip attached to that video.

This endpoint:
1. Validates the project and video
2. Downloads the video file
3. Extracts audio using ffmpeg
4. Uploads audio to CDN
5. Creates AudioClip record in database at timestamp 0
6. Returns the created audio clip

## Path parameters

- `project_id` string, required
- `video_id` string, required

## Response `201`

Successful Response

- object

## 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/8d4c582de5b3?raw)
