요청
json = {
'prompt': prompt,
'negative_prompt': negative_prompt
},
headers = {
'Authorization': f'KakaoAK {REST_API_KEY}',
'Content-Type': 'application/json'
}
headers에 들어갈 값들은 필수값
본문
응답
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "3d6fb820-9845-4b3e-8d6d-7cfd01db5649",
"model_version": "${MODEL_VERSION}",
"images": [
{
"id": "a80108f8-b9c6-4bf4-aa38-957a38ced4a8",
"seed": 3878985944,
"image": "<https://mk.kakaocdn.net/dna/karlo/image/>..."
}
]
}
주의점