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" } }
使用Midjourney Action 对生成的图像执行操作。此端点支持在图像创建后进行放大、变体生成、重新生成等操作。
请前往 TTAPI 控制台 获取 API 密钥。
任务id
任务操作类型,例如:upsample1 = U1 、variation1 = V1
"upsample1"
任务超时时间,单位:秒,范围 300 - 1200。fast与turbo模式下默认最小值为300,relax模式下默认最小值为600。
"300"
回调通知地址
请求成功
"SUCCESS"
"success"
{ "job_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}