Producer Lyrics Generation API
POSThttps://api.01ai.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
참고: 스트리밍 요청의 경우 위의 코드가 완전히 적용되지 않을 수 있습니다. 변경 사항은 통합 문서를 참조하십시오.
Producer 음악 생성
공용 잔액 사용 허용
‘일반 잔액 허용’을 활성화하면 전용 잔액이 부족할 경우 자동으로 일반 잔액을 사용합니다.

