Skip to main content
POST
  1. Submit the request with VIDGO_API_KEY. A task_id is returned immediately. Keep it until the task reaches finished or failed.
  2. Use Query Task Status to retrieve the result. If you provide a callback_url, Vidgo sends the result to your webhook when the task finishes or fails.

FLUX.2 Flex Text to Image

Explore image concepts with FLUX.2 Flex, using descriptive prompts to shape composition and style in 1K or 2K output.

Available Models

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

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.

Key Features

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

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