Sociaro Docs
View Markdown

Generation results and retries

Read the response for the endpoint you called. A successful submit can return a job identifier for polling or a finished asset for a synchronous request.

Job status

Interface Identifier Completed result
Native submit-and-poll routes with a normalized response job_id Poll the route’s status path. Read media_url on completed and media_urls when multiple assets are returned.
BytePlus / ModelArk video tasks id Poll on the same base path. On succeeded, read media_url when available. The native response can also include content.video_url.
Synchronous image generation No poll Read the image data from the response to the original request.
Jobs API id Poll GET /v2/jobs/{id}. On succeeded, read outputs[].url.

Use the same API key for submit and poll. Check the job status even on HTTP 200. A terminal failure can be returned in a successful HTTP response.

Download the result

An opaque /v1/media/{id} link issued for a native v1 result grants access to anyone who has the URL. Download the asset within one hour. Keep this URL out of public logs. Jobs API outputs have their own delivery and retention rules.

Rate and balance errors

Inspect the error code and any Retry-After header. Back off after a rate limit. If the organisation has exhausted its balance, top up before submitting again. See HTTP errors and balance and billing.

Retry a submission

Retry a failed status lookup with backoff. For a native submit without idempotency, a timeout or an ambiguous 502 or 503 can mean the generator accepted the job. Check its status or contact support before resubmitting to avoid a duplicate charge.

On the BytePlus task route, Gateway.UpstreamUnreachable means the generator did not receive the request. Gateway.UpstreamOutcomeUnknown means the outcome is ambiguous.

For Jobs API submissions, reuse the original Idempotency-Key and body. See Jobs retries and recovery.

Billing

Charging units and price tiers are specific to each model. Check its pricing table in the model catalogue. For a Jobs API request, estimate the cost with the same model and input before submitting.