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

# Загрузка и продолжение аудио

> Загрузите общедоступный URL аудио и продолжите песню с указанной позиции с помощью Suno V6

<Info>
  Endpoint продлевает публичную URL аудио напрямую; предварительный `uploadTask` не нужен. Всегда используется пользовательский режим; не отправляйте `custom`, `instrumental` и `gpt_description`.
</Info>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://api.apimart.ai/v1/music/generations/uploadExtend \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "model": "suno",
      "version": "v6-mini",
      "audio_url": "https://example.com/reference.wav",
      "continue_at": 30,
      "prompt": "[Outro]\nthe next journey, let's walk together",
      "tags": "acoustic pop",
      "duration_s": 60,
      "max_mode": true,
      "audio_format": "mp3"
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.apimart.ai/v1/music/generations/uploadExtend",
      headers={"Authorization": "Bearer <token>"},
      json={
          "model": "suno",
          "version": "v6-mini",
          "audio_url": "https://example.com/reference.wav",
          "continue_at": 30,
          "prompt": "[Outro]\nthe next leg of our journey, let's walk together",
          "tags": "acoustic pop",
          "duration_s": 60,
          "max_mode": True,
          "audio_format": "mp3",
      },
  )
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.apimart.ai/v1/music/generations/uploadExtend", {
    method: "POST",
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      model: "suno",
      version: "v6-mini",
      audio_url: "https://example.com/reference.wav",
      continue_at: 30,
      prompt: "[Outro]\nthe next leg of our journey, let's go together",
      tags: "acoustic pop",
      duration_s: 60,
      max_mode: true,
      audio_format: "mp3"
    })
  });
  console.log(await response.json());
  ```
</RequestExample>

## Authorizations

<ParamField header="Authorization" type="string" required>
  Bearer Token. Получите ключ на [странице управления API-ключами](https://apimart.ai/keys).
</ParamField>

## Body

<ParamField body="model" type="string" default="suno">Всегда используйте `suno`.</ParamField>

<ParamField body="audio_url" type="string" required>
  Прямая общедоступная HTTP(S)-URL аудиофайла. Исходное аудио должно быть короче 8 минут. Локальные пути и URL `blob:` не поддерживаются.
</ParamField>

<ParamField body="continue_at" type="number" required>
  Начало продления. Не меньше 1 секунды и строго меньше фактической длительности исходного аудио.
</ParamField>

<ParamField body="version" type="string" default="v6">
  Публичная версия: `v6` / `v6-wild` / `v6-mini`. По умолчанию `v6`; исключите при `custom_model_id`.
</ParamField>

<ParamField body="custom_model_id" type="string">
  Полный UUID, возвращённый задачей создания модели. Несовместим с `version` и `persona_id`.
</ParamField>

<ParamField body="prompt" type="string">
  Текст продолжения, до 5 000 символов. При отсутствии продолжение будет инструментальным.
</ParamField>

<ParamField body="tags" type="string">Описание стиля, до 1 000 символов.</ParamField>

<ParamField body="title" type="string">Название, до 80 символов.</ParamField>

<ParamField body="negative_tags" type="string">Исключаемые стили.</ParamField>

<ParamField body="style_weight" type="number">Вес стиля от 0 до 1.</ParamField>

<ParamField body="weirdness" type="number">Вес креативности от 0 до 1.</ParamField>

<ParamField body="audio_weight" type="number">Вес аудио от 0 до 1.</ParamField>

<ParamField body="auto_lyrics" type="boolean">Создавать ли второй вариант исходного текста.</ParamField>

<ParamField body="vocal_gender" type="string">Пол голоса: `Male` или `Female`.</ParamField>

<ParamField body="persona_id" type="string">ID Persona, несовместим с `custom_model_id`.</ParamField>

<ParamField body="duration_s" type="integer">
  Целевая длительность от 10 до 360 секунд. Фактическая длительность определяется результатом задачи.
</ParamField>

<ParamField body="variety" type="string">
  Вариативность стиля: `off` / `normal` / `high` / `extra` / `max`.
</ParamField>

<ParamField body="max_mode" type="boolean" default="false">
  Включает режим Max с оплатой по двойной стандартной цене.
</ParamField>

<ParamField body="audio_format" type="string">Формат вывода: `mp3` / `m4a` / `wav`.</ParamField>

## Response

<ResponseField name="code" type="integer">Код статуса ответа.</ResponseField>

<ResponseField name="data" type="array">
  Результат отправки. Прочитайте `data[0].task_id` и опрашивайте API задач.
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "code": 200,
    "data": [
      {"status": "submitted", "task_id": "task_01M24YMN4EV04M84R5QYM77R1E"}
    ]
  }
  ```
</ResponseExample>
