Image models › Flux-2

Flux-2 - Text to Image

High-quality photorealistic image generation powered by Flux-2's advanced AI model ## Query Task Status After submitting a task, use the unified query endpoint to check progress and retrieve results: <Card title="Get Task Details" icon="lucide-search" href="/market/common/get-task-detail"> Learn how to query task status and retrieve generation results </Card> For production use, we recommend using the `callBackUrl` parameter to receive automatic notifications when generation completes, rather than polling the status endpoint. ## Related Resources <CardGroup cols={2}> <Card title="Market Overvi

image Flux-2 price on request

Request

POST https://app.video-blade.com/api/v1/generations
X-API-Key: vb_…
Content-Type: application/json

{
  "callback_url": "https://your-app.example/callbacks/video-blade",
  "input": {
    "aspect_ratio": "1:1",
    "prompt": "\u2026",
    "resolution": "1K"
  },
  "model": "flux2-flex-text-to-image"
}

Input parameters

NameTypeRequiredDescription
prompt string required Generation prompt, length must be between 3-5000 characters. (Maximum length: 5000 characters)
aspect_ratio string required Aspect ratio of the generated image. When `auto` is selected, it will match the ratio of the first input image (requires input image to be provided).
Values: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3
Default: 1:1
resolution string required Output image resolution.
Values: 1K, 2K
Default: 1K
nsfw_checker boolean optional Defaults to false. You can set it to false based on your needs. If set to false, our content filtering will be disabled, and all results will be returned directly by the model itself. Note: There is no guarantee that everything can be filtered out; if you are not satisfied with the results, you will need to make your own arrangements.

Pricing

Price on request; the charge is settled from actual consumption with the image coefficient ×2.0. See Pricing & tokens.