> ## 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.

# Upload Audio and Create a Cover

> Upload a public audio URL and create a cover with Suno V6

<Info>
  This endpoint creates a cover directly from a public audio URL, so you do not need to call `uploadTask` first. It returns a `task_id`; poll `GET /v1/music/tasks/{task_id}` for the result.
</Info>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://api.apimart.ai/v1/music/generations/uploadCover \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "model": "suno",
      "version": "v6",
      "audio_url": "https://example.com/reference.mp3",
      "custom": true,
      "instrumental": true,
      "tags": "piano, ambient",
      "duration_s": 120,
      "variety": "normal",
      "audio_format": "m4a"
    }'
  ```

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

  response = requests.post(
      "https://api.apimart.ai/v1/music/generations/uploadCover",
      headers={"Authorization": "Bearer <token>"},
      json={
          "model": "suno",
          "version": "v6",
          "audio_url": "https://example.com/reference.mp3",
          "custom": True,
          "instrumental": True,
          "tags": "piano, ambient",
          "duration_s": 120,
          "audio_format": "m4a",
      },
  )
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.apimart.ai/v1/music/generations/uploadCover", {
    method: "POST",
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      model: "suno",
      version: "v6",
      audio_url: "https://example.com/reference.mp3",
      custom: true,
      instrumental: true,
      tags: "piano, ambient",
      duration_s: 120,
      audio_format: "m4a"
    })
  });
  console.log(await response.json());
  ```
</RequestExample>

## Authorizations

<ParamField header="Authorization" type="string" required>
  Bearer Token. Obtain API Key from the [API Key Management page](https://apimart.ai/keys).
</ParamField>

## Body

<ParamField body="model" type="string" default="suno">
  Always use `suno`.
</ParamField>

<ParamField body="audio_url" type="string" required>
  A publicly accessible direct HTTP(S) audio URL. Keep the source audio under 8 minutes. Local paths, `blob:` URLs, and links that require sign-in are not supported.
</ParamField>

<ParamField body="version" type="string" default="v6">
  Public version: `v6` / `v6-wild` / `v6-mini`. Defaults to `v6`; omit this field when using `custom_model_id`.
</ParamField>

<ParamField body="custom_model_id" type="string">
  The full UUID returned by the model-creation task. Mutually exclusive with `version` and `persona_id`.
</ParamField>

<ParamField body="custom" type="boolean">
  Send this field explicitly. Use `gpt_description` with `false`; use the lyrics and style fields with `true`.
</ParamField>

<ParamField body="instrumental" type="boolean" default="false">
  Whether to generate instrumental audio. When `custom=true` and this field is `false`, `prompt` is required.
</ParamField>

<ParamField body="gpt_description" type="string">
  Inspiration description. Required when `custom=false`; maximum 3,000 characters.
</ParamField>

<ParamField body="prompt" type="string">
  Custom lyrics input, up to 5,000 characters.
</ParamField>

<ParamField body="tags" type="string">
  Style description, up to 1,000 characters.
</ParamField>

<ParamField body="title" type="string">
  Title, up to 80 characters.
</ParamField>

<ParamField body="negative_tags" type="string">
  Styles to exclude.
</ParamField>

<ParamField body="style_weight" type="number">
  Style weight, from 0 to 1.
</ParamField>

<ParamField body="weirdness" type="number">
  Creativity weight, from 0 to 1.
</ParamField>

<ParamField body="audio_weight" type="number">
  Audio weight, from 0 to 1.
</ParamField>

<ParamField body="auto_lyrics" type="boolean">
  Whether to creatively rewrite the input lyrics.
</ParamField>

<ParamField body="vocal_gender" type="string">
  Voice gender: `Male` / `Female`.
</ParamField>

<ParamField body="persona_id" type="string">
  Persona ID, mutually exclusive with `custom_model_id`.
</ParamField>

<ParamField body="duration_s" type="integer">
  Target generation duration, from 10 to 360 seconds. Available only in custom mode.
</ParamField>

<ParamField body="variety" type="string">
  Style variation: `off` / `normal` / `high` / `extra` / `max`.
</ParamField>

<ParamField body="max_mode" type="boolean" default="false">
  Enables Max mode. Requires custom mode and is billed at twice the standard price.
</ParamField>

<ParamField body="audio_format" type="string">
  Output format: `mp3` / `m4a` / `wav`.
</ParamField>

## Response

<ResponseField name="code" type="integer">Response Status Codes.</ResponseField>

<ResponseField name="data" type="array">
  Submission result. Read from `data[0].task_id` and poll the task query interface.
</ResponseField>

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