Image modelsAPI referenceResolve an image submission

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

API Key: X-API-Key: <API Key> or Authorization: Bearer <API Key>.

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": {}}

Header Parameters

Idempotency-Key*string

Idempotency key of up to 128 characters. Reuse the same value when retrying the same request; using it for a different request returns 409.

Lengthlength <= 128

Request Body

application/json
  1. body
request*

The original image request that received no response. It must match the original request body.

expected_job_id?string

Job ID returned earlier for this submission, or an empty string if none was returned.

Response Body

The original job or an uncharged failed job

application/json
  1. response
estimate_detail*
id*Id
reserved_credits*Reserved Credits
status*JobStatus
Value in"queued""processing""succeeded""failed""cancelled"
type*JobType
Value in"tts""avatar""video""video_analysis""image""voice_design""audio_composition"

On this page