---
title: "Generate music from video"
method: POST
path: "/proxy/sonilo/v2m/generate"
tags: ["Sonilo", "Proxy"]
---

# Generate music from video

`POST /proxy/sonilo/v2m/generate`

Generate music from a video using Sonilo video-to-music AI.
Accepts either a video file upload or a video URL, with an optional prompt.
Returns a streaming NDJSON response with one or more parallel audio streams
(titles, audio chunks, and completion events).
Max video duration: 6 minutes. Max upload size: 300MB.

## Response `200`

OK - Streaming NDJSON response with audio generation events

## Other responses

- `400` — Bad Request
- `401` — Unauthorized - Invalid or missing API key
- `402` — Payment Required - Insufficient funds
- `422` — Unprocessable Entity - Validation error
- `429` — Too Many Requests - Rate limited
- `502` — Bad Gateway - Upstream generation error

---

[API](https://skmtc.dev/ac/apis/comfy-api.md) · [All operations](https://skmtc.dev/ac/apis/comfy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ac/comfy-api/revisions/c1893dffe250/schema)
