{
"model": "irag-1.0",
"prompt": "画一只小狗"
}
curl --location --request POST 'https://api.302.ai/baidubce/v2/images/generations' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "irag-1.0",
"prompt": "画一只小狗"
}'
{
"id": "as-g89hcijzuj",
"created": 1743583629,
"data": [
{
"url": "https://file.302ai.cn/gpt/imgs/c2e41f6240e8c2e654774c1d0d5ca8c0.png"
}
]
}