Tools
get_account
Check the credit balance, plan, download access and current song price of the account behind a MemoTune API key.
get_account shows what the key's account can do right now. It takes no parameters, costs nothing, and is the quickest way to confirm that a client is connected.
Result
json
{
"email": "you@example.com",
"credits": 120,
"plan": "Premium",
"subscriptionActive": true,
"downloadAccess": true,
"creditCosts": {
"song": 3,
"cover": 3,
"image": 5,
"note": "Credits per create_song call: song = description or custom mode, cover = cover mode, image = image mode. Each call usually returns two versions. Failed generations are refunded automatically."
},
"links": {
"pricing": "https://memotune.com/pricing",
"mySongs": "https://memotune.com/my-songs",
"apiKeys": "https://memotune.com/settings/api-keys"
}
}| Field | Description |
|---|---|
email | The MemoTune account that owns the API key. |
credits | Current credit balance. |
plan | Current plan name, or Free without a subscription. |
subscriptionActive | Whether the account has an active subscription. |
downloadAccess | Whether get_songs returns MP3 links (audioUrl). |
creditCosts | Credits charged per create_song call: song for description, lyrics and instrumental modes, cover for covers, image for photos. |
links | Pages for upgrading, managing songs and managing API keys. |
When to call it
- Right after connecting a client, to confirm the key works.
- Before creating several songs, to check that the balance covers them. Divide
creditsby the matchingcreditCostsvalue for the number of calls you can still make. - After a "not enough credits" error, to show the current balance.
Prices come from the live MemoTune configuration, so read creditCosts instead of hard-coding a number.
