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

# 音楽または音声生成タスクを作成する

> 音楽および音声生成の送信 API。旧 `/suno/submit/music` パスと互換性があります。タスク ID を返し、後続は `/suno/fetch/{task_id}` で確認します。

音楽および音声生成タスクの送信インターフェースです。`upstream_model` でサブモデル名を渡します。作成インターフェースは `task_id` を返し、その後 `/suno/fetch/{task_id}` で出力を照会します。

`upstream_model` を指定しない場合（または `{"model":"suno_music"}` のみを指定した場合）、既定で Suno v5.5 を使用します。旧版 Suno を引き続き使用する場合は、`"upstream_model":"suno-v5"` を明示的に指定してください。

SeedMusic は同じ送信およびクエリのパスを使用します。`model: "suno_music"`、`upstream_model: "sd-music-1.0-preview"`、`prompt` と、任意の整数 `duration`（30～360 秒、デフォルトは 30 秒）を渡します。プロンプトは 1～4000 文字です。成功したら、セグメントの `audio_url` から音声を取得します。

```json
{
  "model": "suno_music",
  "upstream_model": "sd-music-1.0-preview",
  "prompt": "安静的钢琴曲，伴有轻柔的雨声",
  "duration": 60
}
```

## 利用可能なサブモデル

| タイプ | `upstream_model` |
| --- | --- |
| 音楽 | `suno-v6` |
| テキストから音楽を生成 | `sd-music-1.0-preview` |
| 音楽 | `suno-v5.5` |
| 音楽 | `suno-v5` |
| 音楽 | `lyria-3-pro` |
| 音声 | `seed-audio-1.0` |
| 音声 | `minimax-speech-2.8-hd` |

## プロンプト記述モード

スタイル、感情、言語、歌手タイプ、シーンのみを記述する場合に適しており、モデルが自動的に楽曲内容を生成します。

```json
{
  "model": "suno_music",
  "upstream_model": "suno-v6",
  "prompt": "Create an energetic retro-pop DJ song about the artificial intelligence revolution.",
  "make_instrumental": false
}
```

## 音声生成

MiniMax Speech では `extraParams` で音声パラメータを設定できます。

```json
{
  "model": "suno_music",
  "upstream_model": "minimax-speech-2.8-hd",
  "prompt": "欢迎使用新版语音生成服务。",
  "extraParams": {
    "voice": "moss_audio_ce44fc67-7ce3-11f0-8de5-96e35d26fb85",
    "outputFormat": "mp3",
    "sampleRate": 32000,
    "speed": 1,
    "volume": 1,
    "pitch": 0
  }
}
```

MiniMax Speech で音声パラメータが未指定の場合、サーバーは既定で上記の `voice`、`outputFormat=mp3`、`sampleRate=32000`、`speed=1`、`volume=1`、`pitch=0` を送信します。

Lyria 3 Pro は `upstream_model=lyria-3-pro` を使用します：

```json
{
  "model": "suno_music",
  "upstream_model": "lyria-3-pro",
  "prompt": "Cinematic orchestral music with a hopeful finale."
}
```

## インストゥルメンタルまたは純伴奏

`light_music=true` または `make_instrumental=true` を使用できます。`light_music` はインストゥルメンタル／BGM 寄りであることを示し、`make_instrumental` は歌唱ボーカルを生成しないことを示します。

```json
{
  "model": "suno_music",
  "upstream_model": "minimax-music-v2.6",
  "prompt": "Warm cafe background music with soft piano and strings, relaxing and cinematic.",
  "light_music": true,
  "make_instrumental": true
}
```

## 歌詞の詳細モード

ビジネス側で歌詞がすでに用意されており、タイトルとスタイルタグを指定する必要がある場合に適しています。`custom_mode=true` を渡し、`lyrics` を使用して歌詞を送信します。

```json
{
  "model": "suno_music",
  "upstream_model": "mureka-v9",
  "custom_mode": true,
  "title": "Summer Sea Breeze",
  "tags": "electro pop, female vocal, bright summer",
  "lyrics": "[Verse]\nSea breeze moves across the white sand\n[Chorus]\nTurn the summer into a beam of light"
}
```

## 照会

作成成功後、返却された `data` のタスク ID を保存します。たとえば `task_xxx` です。`GET /suno/fetch/{task_id}` を呼び出して、状態、音声 URL、カバー、タイトル、歌詞、および上流から返された元のセグメント情報を照会します。



## OpenAPI

````yaml api-reference/ja/openapi.json POST /suno/submit/music
openapi: 3.0.0
info:
  title: NewAPIs API 参考ドキュメント
  version: 1.0.0
  description: Public AI Gateway API Reference
servers:
  - url: https://api.newapi.si
security:
  - BearerAuth: []
tags:
  - name: OpenAI形式(Chat)
  - name: OpenAI形式（Responses）
  - name: 画像生成Gemini形式
  - name: 画像生成OpenAI DALL-E形式
  - name: モデル一覧の取得
  - name: 動画生成HappyHorseとWan
  - name: 動画生成Kling形式
  - name: 動画生成OmniとVeo形式
  - name: Video generation Seedance
  - name: 動画生成Sora対応形式
  - name: Video generation Vidu
  - name: 音楽生成タスクの形式
paths:
  /suno/submit/music:
    post:
      tags:
        - 音楽生成タスクの形式
      summary: 音楽または音声生成タスクを作成する
      description: >-
        音楽および音声生成の送信 API。旧 `/suno/submit/music` パスと互換性があります。タスク ID を返し、後続は
        `/suno/fetch/{task_id}` で確認します。


        音楽および音声生成タスクの送信インターフェースです。`upstream_model` でサブモデル名を渡します。作成インターフェースは
        `task_id` を返し、その後 `/suno/fetch/{task_id}` で出力を照会します。


        `upstream_model` を指定しない場合（または `{"model":"suno_music"}` のみを指定した場合）、既定で
        Suno v5.5 を使用します。旧版 Suno を引き続き使用する場合は、`"upstream_model":"suno-v5"`
        を明示的に指定してください。


        SeedMusic は同じ送信およびクエリのパスを使用します。`model: "suno_music"`、`upstream_model:
        "sd-music-1.0-preview"`、`prompt` と、任意の整数 `duration`（30～360 秒、デフォルトは 30
        秒）を渡します。プロンプトは 1～4000 文字です。成功したら、セグメントの `audio_url` から音声を取得します。


        ```json

        {
          "model": "suno_music",
          "upstream_model": "sd-music-1.0-preview",
          "prompt": "安静的钢琴曲，伴有轻柔的雨声",
          "duration": 60
        }

        ```


        ## 利用可能なサブモデル


        | タイプ | `upstream_model` |

        | --- | --- |

        | 音楽 | `suno-v6` |

        | テキストから音楽を生成 | `sd-music-1.0-preview` |

        | 音楽 | `suno-v5.5` |

        | 音楽 | `suno-v5` |

        | 音楽 | `lyria-3-pro` |

        | 音声 | `seed-audio-1.0` |

        | 音声 | `minimax-speech-2.8-hd` |


        ## プロンプト記述モード


        スタイル、感情、言語、歌手タイプ、シーンのみを記述する場合に適しており、モデルが自動的に楽曲内容を生成します。


        ```json

        {
          "model": "suno_music",
          "upstream_model": "suno-v6",
          "prompt": "Create an energetic retro-pop DJ song about the artificial intelligence revolution.",
          "make_instrumental": false
        }

        ```


        ## 音声生成


        MiniMax Speech では `extraParams` で音声パラメータを設定できます。


        ```json

        {
          "model": "suno_music",
          "upstream_model": "minimax-speech-2.8-hd",
          "prompt": "欢迎使用新版语音生成服务。",
          "extraParams": {
            "voice": "moss_audio_ce44fc67-7ce3-11f0-8de5-96e35d26fb85",
            "outputFormat": "mp3",
            "sampleRate": 32000,
            "speed": 1,
            "volume": 1,
            "pitch": 0
          }
        }

        ```


        MiniMax Speech で音声パラメータが未指定の場合、サーバーは既定で上記の
        `voice`、`outputFormat=mp3`、`sampleRate=32000`、`speed=1`、`volume=1`、`pitch=0`
        を送信します。


        Lyria 3 Pro は `upstream_model=lyria-3-pro` を使用します：


        ```json

        {
          "model": "suno_music",
          "upstream_model": "lyria-3-pro",
          "prompt": "Cinematic orchestral music with a hopeful finale."
        }

        ```


        ## インストゥルメンタルまたは純伴奏


        `light_music=true` または `make_instrumental=true` を使用できます。`light_music`
        はインストゥルメンタル／BGM 寄りであることを示し、`make_instrumental` は歌唱ボーカルを生成しないことを示します。


        ```json

        {
          "model": "suno_music",
          "upstream_model": "minimax-music-v2.6",
          "prompt": "Warm cafe background music with soft piano and strings, relaxing and cinematic.",
          "light_music": true,
          "make_instrumental": true
        }

        ```


        ## 歌詞の詳細モード


        ビジネス側で歌詞がすでに用意されており、タイトルとスタイルタグを指定する必要がある場合に適しています。`custom_mode=true`
        を渡し、`lyrics` を使用して歌詞を送信します。


        ```json

        {
          "model": "suno_music",
          "upstream_model": "mureka-v9",
          "custom_mode": true,
          "title": "Summer Sea Breeze",
          "tags": "electro pop, female vocal, bright summer",
          "lyrics": "[Verse]\nSea breeze moves across the white sand\n[Chorus]\nTurn the summer into a beam of light"
        }

        ```


        ## 照会


        作成成功後、返却された `data` のタスク ID を保存します。たとえば `task_xxx` です。`GET
        /suno/fetch/{task_id}` を呼び出して、状態、音声
        URL、カバー、タイトル、歌詞、および上流から返された元のセグメント情報を照会します。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - prompt
              properties:
                model:
                  type: string
                  example: suno_music
                  description: '`suno_music` を固定で送信します。'
                  enum:
                    - suno_music
                upstream_model:
                  type: string
                  example: suno-v6
                  description: >-
                    `sd-music-1.0-preview`、`suno-v6`、または `suno-v5.5`
                    を指定できます。デフォルトは `suno-v5.5` です。
                prompt:
                  type: string
                  description: 音楽またはサウンドを説明するプロンプト。SeedMusic は1～4000文字に対応しています。
                duration:
                  type: integer
                  minimum: 30
                  maximum: 360
                  description: SeedMusicの1曲あたりの長さは30～360秒で、デフォルトは30秒です。
                extraParams:
                  type: object
                  description: >-
                    MiniMax Speech 2.8 HD 的
                    `voice`、`outputFormat`、`sampleRate`、`speed`、`volume`、`pitch`
                    参数。
                  properties:
                    voice:
                      type: string
                      default: moss_audio_ce44fc67-7ce3-11f0-8de5-96e35d26fb85
                    outputFormat:
                      type: string
                      default: mp3
                    sampleRate:
                      type: integer
                      default: 32000
                    speed:
                      type: number
                      default: 1
                    volume:
                      type: number
                      default: 1
                    pitch:
                      type: number
                      default: 0
                  additionalProperties: true
                make_instrumental:
                  type: boolean
                  default: false
                  description: 純粋な伴奏のみを生成するか。
                light_music:
                  type: boolean
                  description: 軽音楽/バックグラウンドミュージックの方向で生成するかどうか。
                pure_music:
                  type: boolean
                  description: インストゥルメンタル方向で生成するかどうか。
                custom_mode:
                  type: boolean
                  description: カスタムモードを使用するかどうか。
                title:
                  type: string
                  description: 曲のタイトル。
                tags:
                  type: string
                  description: スタイルタグ、例えば `electro pop, female vocal`。
                lyrics:
                  type: string
                  description: 歌詞の内容。
            examples:
              seedmusic_single_track:
                summary: SeedMusicの単曲
                value:
                  model: suno_music
                  upstream_model: sd-music-1.0-preview
                  duration: 60
                  prompt: A quiet piano piece with gentle rain.
              music_submit_suno_v6:
                summary: Suno v6 音楽生成
                value:
                  model: suno_music
                  upstream_model: suno-v6
                  prompt: >-
                    Create an energetic retro-pop DJ song about the artificial
                    intelligence revolution.
                  make_instrumental: false
              music_submit_prompt:
                summary: Suno v5.5 音楽生成
                value:
                  model: suno_music
                  upstream_model: suno-v5.5
                  prompt: >-
                    Imitating "Billie Jean," create a DJ song with the theme of
                    "the artificial intelligence revolution."
                  make_instrumental: false
              music_submit_lyria:
                summary: Lyria 3 Pro 音楽生成
                value:
                  model: suno_music
                  upstream_model: lyria-3-pro
                  prompt: Cinematic orchestral music with a hopeful finale.
              audio_submit_seed:
                summary: Seed Audio 1.0 音声生成
                value:
                  model: suno_music
                  upstream_model: seed-audio-1.0
                  prompt: 清晨海边的浪声与远处海鸥声。
              audio_submit_minimax_speech:
                summary: MiniMax Speech 2.8 HD
                value:
                  model: suno_music
                  upstream_model: minimax-speech-2.8-hd
                  prompt: 欢迎使用新版语音生成服务。
                  extraParams:
                    voice: moss_audio_ce44fc67-7ce3-11f0-8de5-96e35d26fb85
                    outputFormat: mp3
                    sampleRate: 32000
                    speed: 1
                    volume: 1
                    pitch: 0
              music_submit_light:
                summary: 軽音楽生成
                value:
                  model: suno_music
                  upstream_model: minimax-music-v2.6
                  prompt: >-
                    Warm cafe background music with soft piano and strings,
                    relaxing and cinematic.
                  light_music: true
                  make_instrumental: true
              music_submit_lyrics:
                summary: 歌詞の高度モード
                value:
                  model: suno_music
                  upstream_model: mureka-v9
                  custom_mode: true
                  title: Summer Sea Breeze
                  tags: electro pop, female vocal, bright summer
                  lyrics: |-
                    [Verse]
                    Sea breeze moves across the white sand
                    [Chorus]
                    Turn the summer into a beam of light
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: success
                    description: 成功時は `success` です。
                  message:
                    type: string
                    description: エラーまたはヒントメッセージ。
                  data:
                    type: object
                    description: 後続のクエリに使用するタスク ID。
              examples:
                music_submit_success:
                  summary: 音楽生成の送信に成功しました
                  value:
                    code: success
                    message: ''
                    data: task_xxx
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        Bearer Token を使用して認証します。
        形式: `Authorization: Bearer sk-xxxxxx`

````

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