cURL
curl --request POST \ --url https://api.ttapi.io/flux/fetch \ --header 'Content-Type: multipart/form-data' \ --header 'TT-API-KEY: <api-key>' \ --form 'jobId=<string>'
{ "status": "SUCCESS", "message": "", "jobId": "c679a92e-dae0-462d-b70f-dcfeaf2189fa", "data": { "mode": "flux-dev", "jobId": "bf165abb-a7fa-4c77-a2e4-138baac1130d", "prompt": "A beautiful Asian girl posing for a photo with a cat", "quota": "1", "size": "1024x1024", "imageUrl": "https://cdnb.ttapi.io/2024-09-10/9rk3gmw3m6sxm4r75my02r48jizyli1l.webp", "hookUrl": "https://webhook-test.com/d47a918bcf231bfd4dcd1f63c2cb4c80" } }
You can obtain your API key from the TTAPI Dashboard.
jobId returned synchronously by the image generation interface
Request successful
PENDING_QUEUE
ON_QUEUE
SUCCESS
FAILED
Response message
Task ID
任务结果
Show child attributes