cURL
curl --request POST \ --url https://api.ttapi.io/midjourney/v1/action \ --header 'Content-Type: application/json' \ --header 'TT-API-KEY: <api-key>' \ --data ' { "jobId": "<string>", "action": "upsample1", "timeout": "300", "hookUrl": "<string>" } '
{ "status": "SUCCESS", "message": "success", "data": { "job_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } }
Authorization field, Console to get authorization info
Task ID
Task operation type, e.g.: upsample1 = U1, variation1 = V1
"upsample1"
Task timeout, unit: seconds, range 300 - 1200
"300"
Callback notification URL
Request successful
"SUCCESS"
"success"
{ "job_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}