Authorization: Bearer ********************{
"model": "gpt-image-2",
"prompt": "一只坐在雪地中的红狐,水彩画风格,柔和晨光",
"n": 1,
"size": "1024x1024",
"quality": "high",
"output_format": "png",
"response_format": "b64_json"
}curl --location 'https://api.naoshengyun.com/v1/images/generations' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-2",
"prompt": "一只坐在雪地中的红狐,水彩画风格,柔和晨光",
"n": 1,
"size": "1024x1024",
"quality": "high",
"output_format": "png",
"response_format": "b64_json"
}'{
"created": 1700000000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB..."
}
]
}