Producer Lyrics Generation API
POSThttps://api.acedata.cloud/producer/lyrics
Producer AI 歌詞生成 API、入力プロンプトで歌詞を生成。
リクエストヘッダー
acceptstring
指定サーバーが返すレスポンスフォーマット。
選択してください
authorizationstring
Bearer token
リクエストボディ
promptstring必須パラメータ
歌詞生成のためのプロンプト。
レスポンス
成功200
リクエストが成功しました。
レスポンスボディ
dataobject
提示語に基づいて生成された歌詞の内容。
textstring
生成されたテキスト内容
titlestring
生成内容のタイトル
statusstring
生成状態、例えば `succeeded` は生成成功を示します。
successboolean
リクエストが成功したかどうかを示すフラグ。
例
{
"data": {
"text": "[Verse]\nSnow is falling, all around\nChildren playing, having fun\nIt's the season, filled with cheer\nCan you feel the magic near? (ooh-yeah)\n\n[Verse 2]\nLights are twinkling, on the tree\nFireplace crackling, warmth and glee\nLove is shared, with friends and kin\nLet the celebrations begin! (oh-oh-oh)\n\n[Chorus]\nDashing through the snow (hey)\nIn a one-horse open sleigh\nOver fields we go (go)\nLaughing all the way (ha haha)\nBells on bobtail ring (ring)\nMaking spirits bright (bright)\nWhat fun it is to ride and sing\nA sleighing song tonight! (yeah-yeah)",
"title": "Winter Wonderland",
"status": "complete"
},
"success": true
}失敗400token_mismatched
リクエストエラー、パラメータが欠落しているか無効である可能性があります。
レスポンスボディ
errorobject
codestring
応答のエラーコード。
messagestring
応答のエラーメッセージ。
trace_idstring
本次リクエストのトラッキング ID。
例
{
"error": {
"code": "token_mismatched",
"message": "The specified token is not matched with API."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗400api_not_implemented
リクエストエラー、パラメータが欠落しているか無効である可能性があります。
レスポンスボディ
errorobject
codestring
応答のエラーコード。
messagestring
応答のエラーメッセージ。
trace_idstring
本次リクエストのトラッキング ID。
例
{
"error": {
"code": "api_not_implemented",
"message": "The API is not implemented."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗400disabled
リクエストエラー、パラメータが欠落しているか無効である可能性があります。
レスポンスボディ
errorobject
codestring
応答のエラーコード。
messagestring
応答のエラーメッセージ。
trace_idstring
本次リクエストのトラッキング ID。
例
{
"error": {
"code": "disabled",
"message": "Your application has been disabled by Ace Data Cloud due to abnormal usage behavior, please contact our support to get more information."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗400bad_request
リクエストエラー、パラメータが欠落しているか無効である可能性があります。
レスポンスボディ
errorobject
codestring
応答のエラーコード。
messagestring
応答のエラーメッセージ。
trace_idstring
本次リクエストのトラッキング ID。
例
{
"error": {
"code": "bad_request",
"message": "model is invalid."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗400no_token
リクエストエラー、パラメータが欠落しているか無効である可能性があります。
レスポンスボディ
errorobject
codestring
応答のエラーコード。
messagestring
応答のエラーメッセージ。
trace_idstring
本次リクエストのトラッキング ID。
例
{
"error": {
"code": "no_token",
"message": "No token specified for the request."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗401invalid_token
未承認、認証トークンが無効または欠落しています。
レスポンスボディ
errorobject
codestring
応答のエラーコード。
messagestring
応答のエラーメッセージ。
trace_idstring
本次リクエストのトラッキング ID。
例
{
"error": {
"code": "invalid_token",
"message": "The specified token is invalid or wrong."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗401token_expired
未承認、認証トークンが無効または欠落しています。
レスポンスボディ
errorobject
codestring
応答のエラーコード。
messagestring
応答のエラーメッセージ。
trace_idstring
本次リクエストのトラッキング ID。
例
{
"error": {
"code": "token_expired",
"message": "token expired."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗401token_mismatched
未承認、認証トークンが無効または欠落しています。
レスポンスボディ
errorobject
codestring
応答のエラーコード。
messagestring
応答のエラーメッセージ。
trace_idstring
本次リクエストのトラッキング ID。
例
{
"error": {
"code": "token_mismatched",
"message": "token and api does not match."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}失敗403used_up
未承認、認証トークンが無効または欠落しています。
レスポンスボディ
errorobject
codestring
応答のエラーコード。
messagestring
応答のエラーメッセージ。
trace_idstring
本次リクエストのトラッキング ID。
失敗404no_api
未承認、認証トークンが無効または欠落しています。
レスポンスボディ
errorobject
codestring
応答のエラーコード。
messagestring
応答のエラーメッセージ。
trace_idstring
本次リクエストのトラッキング ID。
失敗429too_many_requests
リクエストが多すぎて、レート制限を超えました。
レスポンスボディ
errorobject
codestring
応答のエラーコード。
messagestring
応答のエラーメッセージ。
trace_idstring
本次リクエストのトラッキング ID。
失敗500api_error
サーバー内部エラー、サーバーで例外が発生しました。
レスポンスボディ
errorobject
codestring
応答のエラーコード。
messagestring
応答のエラーメッセージ。
trace_idstring
本次リクエストのトラッキング ID。

Integration workbench
Shell
Python
JavaScript
Java
Go
PHP
注意:ストリーミングリクエストの場合、上記のコードは完全には適用されない可能性があります。変更のために統合ドキュメントを参照してください。
プロデューサー 音楽生成
一般残高の使用を許可
「一般残高を許可」を有効にすると、専用残高が不足した場合、自動的に一般残高が使用されます。