export const postVariations = async (imgBase64: string) => {
try {
const response = await axios.post(
`https://api.kakaobrain.com/v2/inference/karlo/variations`,
{ image: imgBase64 },
{
headers: {
Authorization: `KakaoAK ${API_KEY}`,
"Content-Type": "application/json",
},
}
);
console.log(response);
} catch (error) {
console.error("An error occurred while fetching data: ", error);
}
};
-830으로 이해하면 될까요?