Skip to content
ეს გვერდი ჯერ თქვენს ენაზე ხელმისაწვდომი არ არის და ინგლისურად არის ნაჩვენები.
Black Forest Labs · FLUX

flux-2-pro API

Generate images from text or reference images with flux-2-pro on APISea, balancing quality and speed.

სურათების გენერაციასურათიასინქრონული ამოცანა
მოდელის ID
flux-2-pro

flux-2-pro API-ის ფასები

ყველა ფასი USD-შია. APISea-ის ტარიფები შედარებულია იმავე ერთეულისთვის დადგენილ ოფიციალურ ფასებთან.

პარამეტრიAPISeaოფიციალურიდაზოგვა
1MP$0.0264$0.03−12%
2MP$0.0396$0.045−12%
3MP$0.0528$0.06−12%
4MP$0.066$0.075−12%

ფასები მოცემულია თითო სურათზე-ზე.

რა არის flux-2-pro?

flux-2-pro is Black Forest Labs’ FLUX model for general-purpose production image workflows, balancing quality and speed. It generates images from text prompts or uses reference images with a prompt describing the desired edit. Developers can choose resolution presets from 1MP to 4MP, set an aspect ratio or exact dimensions, and receive JPEG, PNG, or WebP output. Reference inputs support publicly accessible URLs and Base64, while seed and prompt rewriting controls help manage generation behavior.

On APISea, submit an asynchronous request to POST /v1/images/generations, then poll the task endpoint using the returned task ID. Pricing is pay-as-you-go: $0.0264 per image at 1MP, $0.0396 per image at 2MP, $0.0528 per image at 3MP, and $0.066 per image at 4MP. The default configuration is about 12% below provider list price, and APISea bills only successful requests.

flux-2-pro-ის მთავარი მახასიათებლები

Text and Reference Inputs

Generate an image from a text description or supply reference images and describe the edit to apply. Reference inputs accept publicly accessible URLs and Base64.

Flexible Output Dimensions

Choose 1MP, 2MP, 3MP, or 4MP resolution presets with supported aspect ratios. You can also specify exact pixel dimensions within the documented limits.

Output Encoding Options

Choose JPEG, PNG, or WebP output. JPEG is the default encoding.

Seed and Prompt Controls

Reuse the same seed and parameters for reproducible output. Prompt upsampling can enhance and rewrite your prompt, but it is disabled by default.

როგორ გამოვიძახოთ flux-2-pro API 4 ნაბიჯში

  1. 01

    მიიღეთ API გასაღები

    შედით APISea-ში, შეავსეთ ბალანსი $50-დან და კონსოლში შექმენით sk-sea გასაღები.

  2. 02

    დააყენეთ საბაზისო URL

    თქვენს SDK-ში ან HTTP კლიენტში საბაზისო URL-ად გამოიყენეთ https://api.apisea.ai/v1.

  3. 03

    გაგზავნეთ მოთხოვნა

    გამოიძახეთ POST /v1/images/generations პარამეტრებით "model": "flux-2-pro" და ქვემოთ ჩამოთვლილი პარამეტრებით.

  4. 04

    დაამუშავეთ პასუხი

    პასუხი შეიცავს task_id-ს. მოითხოვეთ GET /v1/tasks/{task_id} განმეორებით, სანამ სტატუსი completed გახდება, შემდეგ კი ჩამოტვირთეთ შედეგის URL-ებიდან.

მოთხოვნის მაგალითები

დოკუმენტაცია: FLUX.2 Image Generation
curl --request POST \
  --url https://api.apisea.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "flux-2-pro",
    "prompt": "A blue cat sitting on the grass",
    "resolution": "2MP",
    "size": "16:9",
    "output_format": "jpeg"
  }'

პარამეტრები

პარამეტრიტიპისავალდებულონაგულისხმევიაღწერა
modelstringსავალდებულო—Model name:
nsfw_checkbooleanარასავალდებულოfalseWhether to run content moderation before submitting the image task.
promptstringსავალდებულო—Text description of the image to generate or the edit to apply to the reference images.
resolutionstringარასავალდებულო2MPOutput resolution preset. Supported values:
sizestringარასავალდებულო1:1Output aspect ratio or pixel dimensions.
widthintegerარასავალდებულო—Exact output width in pixels. It must be provided together with `height`, and each dimension must be at least 64 pixels. Supplying only one dimension causes the task to fail.
heightintegerარასავალდებულო—Exact output height in pixels. It must be provided together with `width`, and each dimension must be at least 64 pixels. Supplying only one dimension causes the task to fail.
image_urlsarrayარასავალდებულო—Reference images for image-to-image generation. Publicly accessible image URLs and Base64 input are supported.
output_formatstringარასავალდებულოjpegOutput image encoding. Supported values: `jpeg`, `png`, and `webp`.
nintegerარასავალდებულო1Number of images generated per task. The only supported value is `1`; submit multiple tasks concurrently if you need multiple images.
seedintegerარასავალდებულო—Random seed. Reuse the same seed and parameters for reproducible output; omit it to use a random seed.
prompt_upsamplingbooleanარასავალდებულოfalseWhether to enhance and rewrite the prompt before generation. The default is `false`. Pass `false` explicitly to disable prompt rewriting.
safety_toleranceintegerარასავალდებულო2Safety tolerance from `0` to `5`. Higher values are more permissive.
stepsintegerარასავალდებულო50Sampling steps from `1` to `50`. Higher values can improve detail but take longer.
guidancenumberარასავალდებულო5.0Prompt guidance from `1.5` to `10`. Higher values follow the prompt more closely.

რისი შექმნა შეგიძლიათ flux-2-pro-ით

Production Asset Generation

Build a prompt-driven workflow for generating images for websites, campaigns, or internal creative projects, with resolution and output format selected per task.

Reference-Based Image Editing

Let users provide reference images and describe the changes they want, then submit those inputs as a reference-image generation task.

Multi-Format Creative Workflows

Generate separate images for square, portrait, and widescreen placements using the supported aspect ratios and resolution presets.

Repeatable Creative Iteration

Store prompts, seeds, and generation parameters so teams can reproduce a configuration and compare changes across subsequent tasks.

რჩევები უკეთესი შედეგებისთვის

  • 01

    Plan for Task Polling

    Store the task ID returned by the generation request and poll the task endpoint for the generated image. For multiple images, submit multiple tasks concurrently rather than increasing n.

  • 02

    Choose Resolution Deliberately

    The default resolution is 2MP at $0.0396 per image. Use 1MP at $0.0264 per image when that tier meets your output requirements.

  • 03

    Set Dimensions Together

    Provide both width and height when requesting exact dimensions; each must be at least 64 pixels. This pair overrides resolution and size, so check the total pixel budget before submitting.

  • 04

    Keep Prompts Under Control

    Pass prompt_upsampling as false explicitly if you do not want prompt rewriting. Reuse the same seed and parameters when reproducibility matters, and omit steps and guidance because they are not supported by this model.

შეზღუდვები და გასათვალისწინებელი საკითხები

  • Generation is asynchronous, and each task supports only one output image.

  • You can supply up to 8 reference images; output is capped at 4,194,304 pixels, and output plus references must not exceed 9 MP total.

  • Sampling steps and guidance controls are supported only by flux-2-flex, not flux-2-pro.

flux-2-pro API-ის ხშირად დასმული კითხვები

How much does flux-2-pro cost on APISea?

APISea charges $0.0264 per image at 1MP, $0.0396 per image at 2MP, $0.0528 per image at 3MP, and $0.066 per image at 4MP. The default configuration is about 12% below provider list price, with pay-as-you-go billing only for successful requests.

How do I call flux-2-pro through the API?

Send a Bearer-authenticated POST request to https://api.apisea.ai/v1/images/generations with model set to flux-2-pro and a required prompt. The response returns a task ID; poll the task endpoint to retrieve the generated image.

Which generation parameters does flux-2-pro support?

Controls include resolution, size, paired width and height, image_urls, output_format, seed, prompt_upsampling, nsfw_check, and safety_tolerance. The default resolution is 2MP, and steps and guidance are not supported for this model.

What are the reference-image and output limits?

You can provide up to 8 reference images through publicly accessible URLs or Base64 input. Output cannot exceed 4,194,304 pixels, output plus all references cannot exceed 9 MP total, and each task generates only one image.

Can I use flux-2-pro images commercially?

Commercial use is subject to the provider's terms. Review Black Forest Labs’ applicable terms for your intended use; the supplied documentation does not specify commercial licensing rights.

How does flux-2-pro compare with flux-2-flex and flux-2-max?

The documentation describes flux-2-pro as balancing quality and speed for general-purpose production workflows. flux-2-flex supports adjustable sampling steps and guidance, while flux-2-max is described as the highest-quality FLUX.2 model for maximum detail.

მსგავსი მოდელები

Black Forest Labsსურათი

flux-2-flex

სურათების გენერაცია
$0.044 თითო სურათზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Black Forest Labsსურათი

flux-2-max

სურათების გენერაცია
$0.088 თითო სურათზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Black Forest Labsსურათი

flux-3-image

სურათების გენერაცია
$0.04224 თითო სურათზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Black Forest Labsსურათი

flux-3-image-klein

სურათების გენერაცია
$0.00792 თითო სურათზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Black Forest Labsსურათი

flux-kontext-max

სურათების გენერაცია
$0.0704 თითო სურათზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Black Forest Labsსურათი

flux-kontext-pro

სურათების გენერაცია
$0.0352 თითო სურათზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Alibabaსურათი

qwen-image-2.0

სურათების გენერაცია
$0.022 თითო სურათზე
ოფიციალურ ფასზე 37%-ით ნაკლები
Alibabaსურათი

qwen-image-2.0-pro

სურათების გენერაცია
$0.055 თითო სურათზე
ოფიციალურ ფასზე 27%-ით ნაკლები
არჩევანი: 250+ მოდელი · მინიმალური შევსება $50

დაიწყეთ flux-2-pro-ით შექმნა

ერთი გასაღები, გამოყენების მიხედვით გადახდა $50-დან; თანხა ჩამოგეჭრებათ მხოლოდ წარმატებული მოთხოვნებისთვის.