---
title: "flux query"
method: GET
path: "/flux/v1/get_result"
---

# flux query

`GET /flux/v1/get_result`

Poll a Flux generation task. Poll promptly after submission: finished results expire on the provider side, and expired or unknown tasks return `status: "Task not found"`.

## Query parameters

- `id` string, required

## Response `200`

OK

- object
  - `id` string
  - `result` object — Generation result when the task is `Ready`. `sample` carries a time-limited image URL; download it promptly.
    - `seed` integer
    - `prompt` string
    - `sample` string — Time-limited URL of the generated image. Download it promptly; the link expires.
    - `duration` number
    - `end_time` number
    - `start_time` number
  - `status` string — Task state, such as `Pending`, `Ready`, or `Task not found` for expired or unknown tasks.

---

[API](https://skmtc.net/cometapi/apis/create-api-key.md) · [All operations](https://skmtc.net/cometapi/apis/create-api-key/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cometapi/create-api-key/versions/0863102dbf34/schema)
