{
"model": "Qubico/qwen-image",
"task_type": "txt2img",
"input": {
"prompt": "A woman and a child are doing interview at New York street, hold a mic with 'pi news' on it. A store named 'piapi' behind them. realistic style",
"seed": -1,
"steps": 16,
"width": 1024,
"height": 1024,
"flow_shift": 3
},
"config": {
"webhook_config": {
"endpoint": "https://webhook.site/f608a6c5-61e3-4f56-89c6-d1ce1e1d54d7",
"secret": ""
}
}
}
curl --location --request POST 'https://api.piapi.ai/api/v1/task' \
--header 'X-API-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "Qubico/qwen-image",
"task_type": "txt2img",
"input": {
"prompt": "A woman and a child are doing interview at New York street, hold a mic with '\''pi news'\'' on it. A store named '\''piapi'\'' behind them. realistic style",
"seed": -1,
"steps": 16,
"width": 1024,
"height": 1024,
"flow_shift": 3
},
"config": {
"webhook_config": {
"endpoint": "https://webhook.site/f608a6c5-61e3-4f56-89c6-d1ce1e1d54d7",
"secret": ""
}
}
}'
{
"code": 200,
"data": {
"task_id": "5aab3c91-4e82-4dff-813f-f2702b0998b3",
"model": "Qubico/qwen-image",
"task_type": "txt2img",
"status": "pending",
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "https://webhook.site/f608a6c5-61e3-4f56-89c6-d1ce1e1d54d7",
"secret": ""
}
},
"input": {
"prompt": "A woman and a child are doing interview at New York street, hold a mic with 'pi news' on it. A store named 'piapi' behind them. realistic style",
"negative_prompt": "",
"width": 720,
"height": 1080,
"seed": -1,
"steps": 16,
"flow_shift": 3
},
"output": null,
"meta": {
"created_at": "2025-09-23T14:38:22.544476+08:00",
"started_at": "0001-01-01T00:00:00Z",
"ended_at": "0001-01-01T00:00:00Z",
"usage": {
"type": "llm",
"frozen": 0,
"consume": 150000
},
"is_using_private_pool": false
},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}