curl --location --request POST 'https://router.shengsuanyun.com/api/v1/tasks/generations' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "openai/gpt-image-1",
"prompt": "一只可爱的奶牛猫躺在阳光明媚的花园里,周围有五颜六色的花朵",
"n": 1,
"size": "1024x1024",
"quality": "high"
}'
{
"code": "success",
"message": "",
"data": {
"request_id": "string",
"task_id": "string",
"status": "SUBMITTING",
"fail_reason": "string",
"submit_time": 0,
"start_time": 0,
"finish_time": 0,
"progress": "100%",
"data": {
"video_urls": [
"http://example.com"
],
"image_urls": [
"http://example.com"
],
"text": "string"
}
}
}