Sociaro Docs
View Markdown

Media job status, results and errors

Poll the job on the route that accepted it, using the same API key. Read the status in the response body. A successful HTTP response can describe a failed generation.

Polling

For the Alibaba example, set JOB_ID to the job_id from your submit response:

curl "https://api.sociaro.com/v1/alibaba/generations/$JOB_ID" \
  -H "Authorization: Bearer $SOCIARO_API_KEY"
Alibaba status Next step
submitted Save the ID returned on submit.
processing Poll again in a few seconds. Video jobs can take minutes.
completed Download media_url. For multiple images, read media_urls.
failed Read error.code and error.message.

Other native routes can use different fields. For example, BytePlus Seedance returns id on submit and uses native task statuses such as succeeded. See the Generations API guide for its result fields. The Jobs API returns files in outputs[].url.

Results

For a native /v1 result with a Sociaro /v1/media/… URL, anyone holding the link can download the file until the link expires. Keep the URL private and download the file within an hour. For a video, set MEDIA_URL to the returned URL and run:

curl -fL "$MEDIA_URL" -o result.mp4

Multiple images. On Alibaba image models, media_urls contains every delivered image in generator order and media_url is the first. Each link has its own expiry. Billing uses the generated image count, capped at the number of delivered links. Extra links are returned. If any image cannot be delivered, the job fails without a charge.

Kling’s kling/kling-v3, kling/kling-v3-omni and kling/kling-4.0-image also return the first link in media_url and the list in media_urls. The charge is per delivered image and cannot exceed the requested n or series_amount.

Vector files. Ideogram and Recraft vector models return SVG (image/svg+xml). The native /v1 link serves it with a sandboxing Content Security Policy. Opening a /v2 SVG result directly downloads the file, and it can also be used as an HTML image source.

Failed jobs and retries

Open the request in Logs to see the reason and charge. Failed generations normally carry no charge. Ideogram bills for generated images even when its safety check withholds them all. Recraft can accept a submit and then report a generator refusal, a busy generator or a processing failure when you poll. These Recraft failures are uncharged.

Retry a temporary poll failure with the same ID. A 502 or a lost connection during submit can mean the generator already accepted the job. Repeating that submit can create another billable job. See Errors for status codes and retry guidance.