Muzaic API docs
More about MuzaicCall us
  • Welcome!
  • Accesing Muzaic API
  • Checking API usage and balance
  • Reference
    • ๐Ÿ”ŽWorking with tags
    • ๐ŸŽธGetting the music
      • Quickly getting an audio file
      • Advanced soundtracking
    • ๐ŸŽ›๏ธUsing music parameters
      • ๐Ÿ’ฆIntensity parameter
      • ๐ŸƒTempo parameter
      • ๐Ÿ’ƒRhythm parameter
      • ๐ŸŽ†Tone parameter
      • ๐Ÿคนโ€โ™€๏ธVariation parameter
    • โš™๏ธAPI Reference
      • accountDetails
      • audioFromHash
      • getTags
      • singleFile
      • soundtrack
  • More about Muzaic
  • Call us
Powered by GitBook
On this page
  • Getting the single region mp3 file
  • singleFile

Was this helpful?

  1. Reference
  2. API Reference

singleFile

Getting the single region mp3 file

singleFile

POST /singleFile

The endpoint generates a single region MP3 file based on the provided parameters.

Request Body

Name
Type
Description

params

JSON Object

duration

int

Requested composition time in seconds. If no parameter value is passed, the default time value is 60 seconds. Currently, there is a limit set at 1200 seconds.

tags

Array (int)

An array of integers representing tag id's.

{
    "mp3": "https://api.muzaic.ai/result/2024-01-17/57c1bc6585f67ab2cf328b8fb1376e1b.mp3",
    "motiveId": 16,
    "status": "motiveId overwritten",
    "tokensUsed": 48,
    "executionTime": 9.0536079406738
}

Good to know: All the parameters are optional, so you don't need to pass anything to get music! However, it's worth noting that this may not be the best strategy to get the music you need. The more data you pass, the more control you have. Conversely, the less data you pass, the more automated the process becomes. Ultimately, you decide what you need the most!

PreviousgetTagsNextsoundtrack

Last updated 1 year ago

Was this helpful?

an object containing user music params values: intensity, tempo, rhythm, tone , variance. These values are either integers ranging from 1 to 9 (mean parameter value) or (except tempo).

โš™๏ธ
keyframes arrays