Skip to content

Reference

Errors and limits

HTTP and tool errors returned by the MemoTune MCP server, how to retry safely, and every input and account limit.

Errors reach your client in two ways. Connection problems, such as a missing key, come back as HTTP errors before any tool runs. Problems inside a tool come back as a tool result with isError: true and a plain-English message that the assistant can read and act on.

Connection errors

HTTP statusMeaningFix
401The API key is missing, mistyped or deleted, or the account is suspended.Check the Authorization: Bearer mt_… header, or create a new key in Settings → API Keys.
403The request came from a browser origin that isn't allowed.Call the server from an MCP client, not from a web page.
405The request used a method other than POST.The server is stateless and only accepts POST; turn off SSE or GET streams in the client.
413The request body is larger than 64 KB.Shorten the input. Lyrics are limited to 5,000 characters.
415The request wasn't sent as JSON.Send Content-Type: application/json.
5xxMemoTune had a temporary problem.Retry after a short wait.

Tool errors

Message containsCauseWhat to do
Not enough creditsThe balance doesn't cover a song.Check get_account, then top up on Pricing.
You can have up to 10 music creation tasks in progressToo many generations are still running.Wait for some to finish, then try again.
prompt is for description mode and must be used aloneprompt was combined with other modes.Send prompt alone, or switch to the fields of another mode.
Use either coverSongId or coverAudioUrl / Use either imageUrl … or a cover sourceTwo sources were sent.Keep one source.
Image mode picks the style, title, voice and modelstyle, title, vocalGender or model was sent with imageUrl.Remove those fields.
language is only used in image modelanguage was sent without imageUrl.Write the prompt or lyrics in the language you want instead.
style is required / title is requiredCustom or cover mode is missing a field.Add the missing field.
Provide lyrics, or set instrumental: trueCustom or cover mode without lyrics.Add lyrics or make it an instrumental.
Instrumental songs cannot have lyricsinstrumental: true was sent with lyrics.Remove one of them.
Song not found or not readycoverSongId isn't one of your finished songs.Use an id from get_songs, or send coverAudioUrl.
Could not download the image / The link is not a JPEG, PNG or WebP imageimageUrl isn't a public direct link to a supported image up to 10 MB.Use a direct https:// link to the image file. No credits were charged.
Failed to process audio filecoverAudioUrl couldn't be downloaded.Check that the link is public and points to the audio file. No credits were charged.
cannot point to a file stored on MemoTuneimageUrl or coverAudioUrl links to a file on asset.memotune.com.For your own song, pass its id as coverSongId. For a photo, use a link to the original image. No credits were charged.
Submission key does not match this request / This requestId was already used for a different requestA requestId was reused with different input.Use a new requestId for a different song.
Generation not foundThe id is wrong or belongs to another account.Use the id returned by create_song, or list songs without an id.
Creation workflow is temporarily unavailableMemoTune couldn't start the job.Retry with the same requestId.

When a generation fails after it started, get_songs returns status: "failed" with an error message, and the credits are refunded automatically.

Retrying safely

  • Read-only tools (get_songs, get_account) can be retried at any time.
  • For create_song, send a requestId and reuse it, with the same input, when you retry. MemoTune returns the original generation instead of charging again. See Safe retries.
  • While a song is processing, poll get_songs every 30–60 seconds rather than calling create_song again.

Limits

LimitValue
API keys per account10
Generations in progress per account10
Description (prompt)800 characters
Photo (imageUrl)JPEG, PNG or WebP, up to 10 MB
Lyrics5,000 characters
Style800 characters
Title80 characters
Songs per get_songs call20