> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acedata.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Suno MP4 API 統合ガイド

> Suno Music Generation API guide - Ace Data Cloud

SUNO では、生成された音楽について公式生成のMP4リンクを取得できます。本ドキュメントでは、関連する API の統合方法について説明します。

この API には入力パラメータが1つだけあり、それは `audio_id` です。これは公式が生成した楽曲IDです。

ここで入力する `audio_id` は `275113ab-fe5c-4bca-a33c-0cca96b39fa6` です。

```python theme={null}
import requests

url = "https://api.acedata.cloud/suno/mp4"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "audio_id": "275113ab-fe5c-4bca-a33c-0cca96b39fa6"
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)
```

結果は以下のとおりです：

```
{
  "success": true,
  "task_id": "03ae7cca-c3a2-40a0-98b2-8f33426af438",
  "trace_id": "848d8d5a-d6bb-4e16-bb29-768c22cf1b3b",
  "data": {
    "video_url": "https://cdn.acedata.cloud/assets/examples/gemini/04a043bd-6b23-4b4e-945c-ce48158c3eee-3a89912507c7.mp4"
  }
}
```

確認できるように、`data` の `video_url` フィールドが、この楽曲に対応するMP4ファイルのリンクです。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.