TemPolor API Platform
API DocumentsTemPolor API PlatformCreate Music
API DocumentsTemPolor API PlatformCreate Music
Discord
  1. Song
  • Get Started
    • Overview
    • Quickstart
    • Model and Pricing
  • API Reference
    • General Information
      • Certification Methods
      • Error Code
    • Song
      • Voice ID option table
      • Song Generation
        POST
      • Song Extension
        POST
      • Callback Interface
        POST
      • Query Task Status
        POST
    • Lyrics
      • Lyrics Generation
        POST
      • Callback Interface
        POST
      • Query Task Status
        POST
    • Instrumental
      • Instrumental Generation
        POST
      • Instrumental Extension
        POST
      • Callback Interface
        POST
      • Query Task Status
        POST
    • Audio Track Splitting
      • Create Task
        POST
      • Callback Interface
        POST
      • Query Task Status
        POST
    • Account
      • Query Information
        POST
  • Others
    • Feature List
  1. Song

Song Generation

POST
/open-apis/v1/song/generate
Supports user-defined uploading of music descriptions and lyrics, then generates a Song.

Request

Header Params

Body Params application/json

Example
{
    "prompt": "Genre: Electronic Dance Music (EDM), House, Techno  Style: Instrumental, Beat-driven, Club-oriented  Mood: Energetic, Vibrant, Hypnotic ",
    "model": "TemPolor v3.5",
    "callback_url": "https://**************/callback"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/open-apis/v1/song/generate' \
--header 'Authorization: Tempo-********************************-3w' \
--header 'Content-Type: application/json; charset=utf-8' \
--data-raw '{
    "prompt": "Genre: Electronic Dance Music (EDM), House, Techno  Style: Instrumental, Beat-driven, Club-oriented  Mood: Energetic, Vibrant, Hypnotic ",
    "model": "TemPolor v3.5",
    "callback_url": "https://**************/callback"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "status": 200000,
    "message": "success",
    "request_id": "b072a68c-4c1b-41be-bdd1-0a0309754de7",
    "data": {
        "item_ids": [
            "123"
        ]
    }
}
Modified at 2025-05-17 08:37:43
Previous
Voice ID option table
Next
Song Extension