> ## Documentation Index
> Fetch the complete documentation index at: https://apidoc.deerapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# FLUX Query Task

> Use DeerAPI to call the FLUX Query Task endpoint with request details, response details, examples, and an OpenAPI playground.

## Overview

Use this endpoint to call the FLUX Query Task workflow through DeerAPI. The API reference on this page shows the request schema, response schema, authentication requirements, and runnable examples for the configured endpoint.

## Before you start

Use the DeerAPI base URL and pass your API Key in the `Authorization` header:

```text theme={null}
https://api.deerapi.com
```

```text theme={null}
Authorization: Bearer $DEERAPI_KEY
```

## Model selection

Choose a current model ID from the [live pricing page](https://api.deerapi.com/pricing). Model availability changes over time, so avoid copying a model ID from an old project without checking the live list first.

## Implementation notes

* Use the OpenAPI playground for the exact request fields accepted by this endpoint.
* Keep API Keys on the server side when you build production applications.
* Log the request ID from failed calls so support can investigate the request.
* Retry `429`, `500`, and `503` responses with exponential backoff.


## OpenAPI

````yaml /api/openapi/image/flux/get-query-task.openapi.json GET /flux/v1/get_result
openapi: 3.1.0
info:
  title: flux query API
  version: 1.0.0
servers:
  - url: https://api.deerapi.com
security:
  - bearerAuth: []
paths:
  /flux/v1/get_result:
    get:
      summary: flux query
      operationId: flux_query
      parameters:
        - name: id
          in: query
          required: true
          description: Task id returned by the Flux generate endpoint.
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  result:
                    type: object
                    properties:
                      seed:
                        type: integer
                      prompt:
                        type: string
                      sample:
                        type: string
                      duration:
                        type: number
                      end_time:
                        type: number
                      start_time:
                        type: number
                  status:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Use a DeerAPI API Key as a Bearer token.

````