{
"model": "Qubico/joycaption",
"task_type": "joycaption-beta-one",
"input": {
"workflow_type": "joycaption-beta-one",
"prompt_style": "Descriptive",
"caption_length": "any",
"image": "https://piapi.ai/workspace/flux/input_example.png"
},
"config": {
"webhook_config": {
"endpoint": "",
"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/joycaption",
"task_type": "joycaption-beta-one",
"input": {
"workflow_type": "joycaption-beta-one",
"prompt_style": "Descriptive",
"caption_length": "any",
"image": "https://piapi.ai/workspace/flux/input_example.png"
},
"config": {
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}'
{
"code": 200,
"data": {
"task_id": "1e829971-31b6-44e6-83cc-84d20b9e089c",
"model": "Qubico/joycaption",
"task_type": "joycaption-beta-one",
"status": "pending",
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "",
"secret": ""
}
},
"input": {
"image": "https://piapi.ai/workspace/flux/input_example.png",
"prompt_style": "Descriptive",
"caption_length": "any"
},
"output": null,
"meta": {
"created_at": "2025-07-16T06:21:33.896480518Z",
"started_at": "0001-01-01T00:00:00Z",
"ended_at": "0001-01-01T00:00:00Z",
"usage": {
"type": "llm",
"frozen": 0,
"consume": 100000
},
"is_using_private_pool": false
},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}