Skip to main content
GET
/
flux
/
v1
/
get_result
cURL
TASK_ID="<task_id>"

curl "https://api.cometapi.com/flux/v1/get_result?id=$TASK_ID" \
  -H "Authorization: Bearer $COMETAPI_KEY"
{
  "id": "<task_id>",
  "result": {
    "seed": 4041919005,
    "prompt": "A red kite in a blue sky.",
    "sample": "https://delivery.eu2.bfl.ai/durable/.../sample.jpeg",
    "duration": 7.2,
    "start_time": 1781078400.1,
    "end_time": 1781078407.3
  },
  "status": "Ready"
}

Overview

Query the status and result of an image generation task by task ID.
Cross-API Compatibility: This endpoint is also compatible with tasks created via /replicate/v1/models/\{model\}/predictions and /flux/v1/\{model\}.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your CometAPI key.

Query Parameters

id
string
required

Task id returned by the Flux generate endpoint.

Response

200 - application/json

OK

id
string
result
object

Generation result when the task is Ready. sample carries a time-limited image URL; download it promptly.

status
string

Task state, such as Pending, Ready, or Task not found for expired or unknown tasks.