MusicAPI
HomeDocs
HomeDocs
  1. nuro
  • Introduction
  • Credits Usage Guide
  • Music API FAQ & Troubleshooting
  • Common Scenarios
  • Error handling
  • sonic
    • Sonic Instructions
    • create music
      POST
    • extend music
      POST
    • concat music
      POST
    • cover music
      POST
    • create persona
      POST
    • create music with persona
      POST
    • upload music
      POST
    • get music
      GET
  • studio(Unavailable)
    • Studio Instructions
    • description mode (Use case1)
      POST
    • extend mode (Use case2)
      POST
    • custom mode (Use case3)
      POST
    • instrumental mode (Use case4)
      POST
    • get music
      GET
  • lyrics generation
    • Make Lyrics
      POST
  • nuro
    • Nuro Instruction
    • Error handling
    • create vocal music
      POST
    • create instrument music
      POST
    • get music
      GET
  1. nuro

Error handling

Nuro API Error Handling Guide#

Error Categories#

1. System Errors#

StatusTypeDescription
500api_errorAPI system error, please contact administrator

2. Authentication Errors#

StatusTypeDescription
401unauthorizedInvalid signature
401unauthorizedAuthorization expired
403forbiddenAPI usage limit exceeded
403forbiddenAPI QPS limit exceeded

3. Content Errors#

StatusTypeDescription
500api_errorAlgorithm error
404not_foundTask not found
400bad_requestInput language not supported
500api_errorSemantic error, please try again

4. Resource Errors#

StatusTypeDescription
403forbiddenQueue is full

Credit Refund Mechanism#

Error Types Triggering Refund#

api_error
timeout
bad_request
forbidden

Refund Process#

1.
Error Detection
Check response status code
Parse error message
Match error type
2.
Refund Conditions
Task not marked as processed
Error type qualifies for refund
User credit deduction record exists
3.
Refund Processing
Update task status
Refund user credits
Log refund transaction

Error Response Format#

Best Practices#

1.
Always check API response status
2.
Implement error retry mechanism
3.
Maintain detailed error logs
4.
Handle credit refund notifications properly
5.
Provide clear error messages to users
Previous
Nuro Instruction
Next
create vocal music
Built with