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

flux-2-max API

Generate detailed images from text or reference images with flux-2-max on APISea.

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

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

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

პარამეტრიAPISeaოფიციალურიდაზოგვა
ნაგულისხმევინაგულისხმევი$0.088$0.10−12%
1MP$0.0616$0.07−12%
2MP$0.088$0.10−12%
3MP$0.1144$0.13−12%
4MP$0.1408$0.16−12%

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

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

flux-2-max is Black Forest Labs’ highest-quality FLUX.2 model for maximum detail, suited to image workflows where detail is a priority. On APISea, it supports both text-to-image and reference-image generation: describe a new image or provide references alongside instructions for an edit. Tasks return an ID, which your application polls to retrieve the generated image.

You can choose 1MP, 2MP, 3MP, or 4MP output presets, set an aspect ratio or exact dimensions, and export JPEG, PNG, or WebP. Additional controls include a seed for reproducibility and optional prompt rewriting. APISea provides access through one API key and its OpenAI-compatible base URL, https://api.apisea.ai/v1. Billing is pay-as-you-go and applies only to successful requests. The Default configuration costs $0.088 per image, about 12% below the provider list price; the 1MP tier costs $0.0616 per image.

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

Maximum FLUX.2 Detail

The documentation identifies flux-2-max as the highest-quality FLUX.2 model for maximum detail.

Text and Reference Inputs

Generate from a text prompt or supply reference images with edit instructions. Reference inputs support publicly accessible URLs and Base64.

Flexible Output Dimensions

Choose resolution presets from 1MP through 4MP and multiple aspect ratios. A complete width and height pair overrides resolution and size.

Reproducible Generation Controls

Reuse the same seed and parameters for reproducible output. Optional prompt upsampling can enhance and rewrite your prompt before generation.

როგორ გამოვიძახოთ flux-2-max 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-max" და ქვემოთ ჩამოთვლილი პარამეტრებით.

  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-max",
    "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-max-ით

Campaign Image Production

Build a prompt-driven workflow for detailed campaign images, choosing landscape, portrait, or square aspect ratios for different placements.

Reference-Based Image Editing

Let users submit reference images and describe the edits they want, then retrieve the generated result through task polling.

Creative Review Tools

Generate separate tasks for alternative creative directions. Keep seeds and parameters recorded to reproduce outputs during review.

Asset Generation Pipelines

Integrate asynchronous image generation into a content pipeline that exports JPEG, PNG, or WebP assets at a selected resolution tier.

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

  • 01

    Choose Resolution Explicitly

    The default resolution is 2MP at $0.088 per image. Select 1MP at $0.0616 per image when that output tier meets your needs.

  • 02

    Plan for Task Polling

    Submit generation requests, store the returned task ID, and poll the task endpoint for the image. For multiple images, submit multiple tasks concurrently rather than increasing n.

  • 03

    Control Reference Framing

    Set size to auto to follow the reference image’s aspect ratio while retaining the selected resolution tier. Without reference images, auto uses 1:1.

  • 04

    Keep Supported Parameters

    Do not send steps or guidance with flux-2-max; those controls are supported only by flux-2-flex. Set prompt_upsampling to false explicitly when you want prompt rewriting disabled.

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

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

  • You can supply at most 8 reference images; output is capped at 4,194,304 pixels, with output plus references capped at 9 MP total.

  • Exact width and height must be supplied together and each be at least 64 pixels; steps and guidance are unsupported.

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

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

APISea pricing is Default: $0.088 per image; 1MP: $0.0616 per image; 2MP: $0.088 per image; 3MP: $0.1144 per image; and 4MP: $0.1408 per image. The Default configuration is about 12% below the provider list price, and APISea bills only successful requests.

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

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

Does flux-2-max support reference images?

Yes. Supply image_urls using publicly accessible image URLs or Base64 input, with up to 8 reference images. The output plus all references must not exceed 9 MP in total.

Which output controls does flux-2-max support?

It supports resolution presets from 1MP to 4MP, aspect ratios or exact dimensions, JPEG/PNG/WebP output, seed, and optional prompt upsampling. Exact dimensions must stay within the documented pixel limits, and steps and guidance are not supported.

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

The documentation describes flux-2-max as the highest-quality FLUX.2 model for maximum detail, while flux-2-pro balances quality and speed for general-purpose production workflows. flux-2-flex provides fine-grained generation with adjustable sampling steps and guidance; all three support text-to-image and reference-image generation.

Can I use flux-2-max images commercially?

Commercial use is subject to the provider's terms. The supplied documentation does not specify licensing permissions, so review Black Forest Labs’ applicable terms before using outputs commercially.

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

Black Forest Labsსურათი

flux-2-flex

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

flux-2-pro

სურათების გენერაცია
$0.0264 თითო სურათზე
ოფიციალურ ფასზე 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-max-ით შექმნა

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