Skip to main content
GET
/
flux
/
v1
/
get_result
flux query
curl --request GET \
  --url https://api.cometapi.com/flux/v1/get_result \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "result": {
    "seed": 123,
    "prompt": "<string>",
    "sample": "<string>",
    "duration": 123,
    "end_time": 123,
    "start_time": 123
  },
  "status": "<string>"
}

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
status
string