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

# Suno Custom Model

> Use DeerAPI to call the Suno Custom Model endpoint with request details, response details, examples, and an OpenAPI playground.

## Overview

Use this endpoint to call the Suno Custom Model workflow through DeerAPI. The API reference on this page shows the request schema, response schema, authentication requirements, and runnable examples for the configured endpoint.

## Before you start

Use the DeerAPI base URL and pass your API Key in the `Authorization` header:

```text theme={null}
https://api.deerapi.com
```

```text theme={null}
Authorization: Bearer $DEERAPI_KEY
```

## Model selection

Choose a current model ID from the [live pricing page](https://api.deerapi.com/pricing). Model availability changes over time, so avoid copying a model ID from an old project without checking the live list first.

## Implementation notes

* Use the OpenAPI playground for the exact request fields accepted by this endpoint.
* Keep API Keys on the server side when you build production applications.
* Log the request ID from failed calls so support can investigate the request.
* Retry `429`, `500`, and `503` responses with exponential backoff.


## OpenAPI

````yaml /api/openapi/music/suno/post-custom-model.openapi.json POST /suno/custom-model
openapi: 3.1.0
info:
  title: Create Custom Model API
  version: 1.0.0
servers:
  - url: https://api.deerapi.com
security:
  - bearerAuth: []
paths:
  /suno/custom-model:
    post:
      summary: Create custom model
      operationId: create_custom_model
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - clip_ids
                - name
              properties:
                clip_ids:
                  type: array
                  items:
                    type: string
                  description: >-
                    Array of song clip_ids. Minimum 6, recommended 24. All must
                    belong to the same account.
                  minItems: 6
                name:
                  type: string
                  description: Model name
            examples:
              Example 1:
                summary: Example 1
                value:
                  clip_ids:
                    - 7173c086-844d-4b9e-9cee-e771f7ded3eb
                    - c87451ec-8e09-4358-b93b-99a0f59374b3
                    - 9c58ae41-4364-4995-827c-8033109abb5d
                    - 92022750-af59-44e1-a559-74d6f2503f5e
                    - 06215aa7-7725-4741-91d2-cc316e2454fe
                    - f7a1e392-e659-4376-8b24-f267ba4f6e30
                  name: your-model-name
            example:
              clip_ids:
                - 7173c086-844d-4b9e-9cee-e771f7ded3eb
                - c87451ec-8e09-4358-b93b-99a0f59374b3
                - 9c58ae41-4364-4995-827c-8033109abb5d
                - 92022750-af59-44e1-a559-74d6f2503f5e
                - 06215aa7-7725-4741-91d2-cc316e2454fe
                - f7a1e392-e659-4376-8b24-f267ba4f6e30
              name: your-model-name
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Model ID for subsequent queries and usage
                  status:
                    type: string
                    description: Status. pending means training in progress.
      x-codeSamples:
        - lang: Shell
          label: cURL
          source: |
            curl https://api.deerapi.com/suno/custom-model \
              -H "Content-Type: application/json" \
              -H "Authorization: Bearer $DEERAPI_KEY" \
              -d '{
                "clip_ids": [
                  "7173c086-844d-4b9e-9cee-e771f7ded3eb",
                  "c87451ec-8e09-4358-b93b-99a0f59374b3",
                  "9c58ae41-4364-4995-827c-8033109abb5d",
                  "92022750-af59-44e1-a559-74d6f2503f5e",
                  "06215aa7-7725-4741-91d2-cc316e2454fe",
                  "f7a1e392-e659-4376-8b24-f267ba4f6e30"
                ],
                "name": "your-model-name"
              }'
        - lang: Python
          label: requests
          source: |
            import os
            import requests

            url = "https://api.deerapi.com/suno/custom-model"
            headers = {
                "Authorization": "Bearer " + os.environ["DEERAPI_KEY"],
                "Content-Type": "application/json",
            }
            payload = {
              "clip_ids": [
                "7173c086-844d-4b9e-9cee-e771f7ded3eb",
                "c87451ec-8e09-4358-b93b-99a0f59374b3",
                "9c58ae41-4364-4995-827c-8033109abb5d",
                "92022750-af59-44e1-a559-74d6f2503f5e",
                "06215aa7-7725-4741-91d2-cc316e2454fe",
                "f7a1e392-e659-4376-8b24-f267ba4f6e30"
              ],
              "name": "your-model-name"
            }

            response = requests.post(url, headers=headers, json=payload)
            print(response.json())
        - lang: JavaScript
          label: fetch
          source: >
            const response = await
            fetch("https://api.deerapi.com/suno/custom-model", {
              method: "POST",
              headers: {
                Authorization: `Bearer ${process.env.DEERAPI_KEY}`,
                "Content-Type": "application/json",
              },
              body: JSON.stringify({
                "clip_ids": [
                  "7173c086-844d-4b9e-9cee-e771f7ded3eb",
                  "c87451ec-8e09-4358-b93b-99a0f59374b3",
                  "9c58ae41-4364-4995-827c-8033109abb5d",
                  "92022750-af59-44e1-a559-74d6f2503f5e",
                  "06215aa7-7725-4741-91d2-cc316e2454fe",
                  "f7a1e392-e659-4376-8b24-f267ba4f6e30"
                ],
                "name": "your-model-name"
              }),
            });


            console.log(await response.json());
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Use a DeerAPI API Key as a Bearer token.

````