Skip to main content
POST
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the result through the unified Query Task Status endpoint.
Explore image concepts with FLUX.2 Flex, using descriptive prompts to shape composition and style in 1K or 2K output.

Models

  • blackforestlabs/flux-2-flex/text-to-image - Generate images from text prompts.

Features

  • Generate images from text prompts.
  • Choose from 1K, 2K output resolutions.

Output Options

Image Size

  • size: Required. Accepted values: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, auto.

Resolution

  • resolution: Required. Accepted values: 1K, 2K.

Advanced Parameters

Set model and optional callback_url at the request root. Place all workflow parameters, including output options, inside input. Send the input fields listed on this page.

Prompt

  • prompt: Required. Describe the desired image. Length: 3-5,000 characters.

Verified Example

This example was generated through the Vidgo API and is also the default example in the playground. Source and result images are hosted on the Vidgo CDN. Tide Pool Field Notebook

Authorizations

Authorization
string
header
required

Use VIDGO_API_KEY.

Body

application/json

Keep model and callback_url at the root. Place workflow parameters inside input.

model
string
required
Example:

"blackforestlabs/flux-2-flex/text-to-image"

input
object
required
callback_url
string | null

Optional public HTTP(S) endpoint for task completion notifications. HTTPS is recommended. Omit, use null, or use an empty string to disable callbacks.

Response

Task submitted

code
enum<integer>
required
Available options:
200
data
object
required