Resolve an image submission
When no response to an image submission arrives, confirm its outcome with the original request body and the original Idempotency-Key. If the original request was accepted, the job is returned; if not, an uncharged failed job is returned and the original request will not be accepted later. This endpoint never generates an image.
Authentication
Credentials in the examples are placeholders. Replace them and run the examples on your server.
Code examples
curl -X POST 'https://shixux.com/api/v1/image/submissions/resolve' \ -H 'X-API-Key: yb_xxx_yyy' \ -H 'Content-Type: application/json' \ -H 'Idempotency-Key: your-unique-business-action-id' \ -d '{"request":{"mode":"text-to-image","model":"doubao-seedream-5-0-pro-260628","prompt":"A yellow ceramic cup on a plain table.","size":"1024x1024","rate_version":1}}'{ "id": "job_xxx", "type": "tts", "status": "queued", "reserved_credits": 1, "estimate_detail": {}}Idempotency-Key*stringIdempotency key of up to 128 characters. Reuse the same value when retrying the same request; using it for a different request returns 409.
length <= 128application/json- body
request*The original image request that received no response. It must match the original request body.
expected_job_id?stringJob ID returned earlier for this submission, or an empty string if none was returned.
The original job or an uncharged failed job
application/json- response
estimate_detail*id*Idreserved_credits*Reserved Creditsstatus*JobStatus"queued""processing""succeeded""failed""cancelled"type*JobType"tts""avatar""video""video_analysis""image""voice_design""audio_composition"