Skip to main content
GET
Get Generation Task
After creating a image task, call this endpoint with the returned task_id. Poll at a reasonable interval until the task reaches a terminal state; for production workloads, prefer callback_url on the create request.

Task statuses

Usage and cost

When status is completed, the response includes a usage object with the final amount charged for the task:
  • usage.cost is the settled amount in USD after any post-completion adjustment; it matches the cost shown in the dashboard.
  • Token fields are present only when the upstream provider reports token usage.
  • usage is absent while the task is pending or processing and on failed tasks.

Image metadata (layer decomposition)

Layer-decomposition models (seedream-5.0-pro-layer, seedream-5.0-flash-layer) return a base image plus up to 16 transparent PNG layers. In addition to result, completed tasks include an images array with per-image metadata. images follows the same order as result, and the base image (z_index: 0) always comes first.
  • result is always an array of URL strings, so existing clients keep working without changes.
  • images is present only when the model returns per-image metadata; other models never include it.
  • Metadata fields are optional. If the upstream omits a field, it is left out rather than returned as null.

Authorizations

Authorization
string
header
required

Use your APIPod API key as a Bearer token in the Authorization header.

Path Parameters

task_id
string
required

APIPod asynchronous task ID returned by the create endpoint.

Response

200 - application/json

Task status

code
integer
required

HTTP status code.

message
string
required

Response message.

Allowed value: "success"
data
object
required