Authorization: Bearer ********************
{
"model": "recraftv3",
"prompt": "bot",
"size": "1024x1024"
}
curl --location -g --request POST '{{BASE_URL}}/v1/images/generations' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "recraftv3",
"prompt": "bot",
"size": "1024x1024"
}'
{
"created": 1730702305,
"data": [
{
"url": "https://sfile.chatglm.cn/chatglm4/acbf2468-0382-4a77-83a7-cd6fe382426c.png"
}
],
"image": [
"https://sfile.chatglm.cn/chatglm4/acbf2468-0382-4a77-83a7-cd6fe382426c.png"
],
"metadata": {
"credits": 1,
"height": 1024,
"images": [
{
"image_id": "33c6256d-e8a8-4b53-ba44-8990c5b20aa2",
"image_invariants": {
"preset": "any"
},
"transparent": false,
"vector_image": false
}
],
"random_seed": 884276504,
"request_id": "e4e834ea-bbf3-4243-8913-06a528c64e54",
"transform_model": "recraftv3",
"width": 1024
}
}