Request Code Samples
curl --location --request GET 'https://api.302.ai/302/v2/image/fetch/' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO'
Responses
application/json {
"model": "baidu-irag-t2i",
"req": {
"prompt": "sky city",
"model": "baidu-irag-t2i"
},
"task_id": "2ec88806-7a1a-4ebe-9004-8ecf65e8dca2",
"updated_at": "2025-08-19T11:10:13.167245Z",
"status": "completed",
"created_at": "2025-08-19T11:09:51.153087Z",
"execution_time": "0.004328",
"task_type": "image",
"completed_at": "2025-08-19T11:10:13.167245Z",
"webhook": "",
"image_url": "https://file.302ai.cn/gpt/imgs/6115f2b3059715b983ef397fb6c2fd00.png",
"image_urls": [
"https://file.302ai.cn/gpt/imgs/6115f2b3059715b983ef397fb6c2fd00.png"
],
"raw_response": {
"id": "as-aecbzqbxg5",
"created": 1755601791,
"data": [
{
"url": "https://file.302ai.cn/gpt/imgs/6115f2b3059715b983ef397fb6c2fd00.png"
}
]
}
}
Modified at 2025-08-26 02:16:38