Skip to content

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"
  }
}
FieldDescription
emailThe MemoTune account that owns the API key.
creditsCurrent credit balance.
planCurrent plan name, or Free without a subscription.
subscriptionActiveWhether the account has an active subscription.
downloadAccessWhether get_songs returns MP3 links (audioUrl).
creditCostsCredits charged per create_song call: song for description, lyrics and instrumental modes, cover for covers, image for photos.
linksPages 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 credits by the matching creditCosts value 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.