Giảm 50% mô hình Vidu Q3 & Q3 Pro · Chỉ trên WaveSpeedAI | 20/5 – 2/6

Flux Kontext Max Multi

wavespeed-ai /

Experimental FLUX.1 Kontext [max] (multi) supports multi-image context handling for combined inputs. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

image-to-image
Input
If set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API.

Idle

$0.08per run·~12 / $1

Next:

ExamplesView all

A girl holding up flowers.

A girl holding up flowers.

Doll in the crystal ball.

Doll in the crystal ball.

Related Models

README

FLUX Kontext Max Multi — wavespeed-ai/flux-kontext-max/multi

FLUX Kontext Max Multi is a high-end multi-image model for context-rich generation and editing. Provide a text prompt plus up to 5 reference images, and the model uses them as visual grounding to improve identity consistency, style matching, and scene coherence—ideal for premium creative work where one image is not enough.

Key capabilities

  • Multi-image contextual generation with up to 5 reference images
  • Strong identity and style consistency by grounding outputs in references
  • Handles complex scenes and cinematic composition with high detail
  • Great for iterative workflows: refine results while keeping the same visual target

Typical use cases

  • Character consistency using multiple portraits/outfits/angles
  • Product and branding consistency (packaging + logo + lighting references)
  • Style steering with multiple exemplars (art style + texture + lighting mood)
  • Scene creation or recomposition guided by reference frames
  • High-fidelity creative direction for storyboards and marketing visuals

Pricing

$0.08 per image.

Total cost = num_images × $0.08 Example: num_images = 4 → $0.32

Inputs and outputs

Input:

  • prompt (required): The generation or edit instruction
  • images (required): Up to 5 reference images (upload or public URLs)

Output:

  • One or more generated images (controlled by num_images, if available in your interface)

Parameters

  • prompt (required): Instruction describing what to generate and how to use references
  • images (required): Up to 5 reference images
  • guidance_scale: Prompt adherence strength (higher = stricter; too high may over-constrain)
  • aspect_ratio: Output aspect ratio (e.g., 16:9, 1:1, 9:16)

Prompting guide (multi-reference)

Assign roles to your references to reduce ambiguity:

Template: Use image 1 for [identity]. Use image 2 for [outfit]. Use image 3 for [style]. Use image 4 for [lighting]. Use image 5 for [background/scene]. Generate [shot description]. Keep [constraints].

Example prompts

  • Use image 1 for the face identity, image 2 for outfit, image 3 for illustration style. Create a 16:9 cinematic medium shot in a rainy city street at night, neon reflections, shallow depth of field.
  • Use images 1–2 to keep the same person identity from different angles. Generate a clean studio portrait with softbox lighting, neutral background, natural skin texture.
  • Use image 4 for lighting mood (sunset) and image 5 for environment. Keep the subject identity from image 1 and maintain consistent color palette.

Best practices

  • Use high-quality references: sharp subjects, minimal occlusion, clear lighting.
  • Avoid conflicting references (e.g., drastically different styles) unless you explicitly say which one dominates.
  • Keep guidance_scale moderate; let references do most of the steering.
  • Pick an aspect_ratio that matches your target layout to avoid awkward cropping.
Accessibility:This website uses AI models provided by third parties.

Flux Kontext Max Multi API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-kontext-max/multi with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Flux Kontext Max Multi below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-kontext-max/multi" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "guidance_scale": 3.5,
    "aspect_ratio": "21:9",
    "enable_sync_mode": false
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("wavespeed-ai/flux-kontext-max/multi", {
        "prompt": "A cinematic shot of a city at sunset, soft golden light",
        "guidance_scale": 3.5,
        "aspect_ratio": "21:9",
        "enable_sync_mode": false
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "wavespeed-ai/flux-kontext-max/multi",
    {
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "guidance_scale": 3.5,
    "aspect_ratio": "21:9",
    "enable_sync_mode": false
}
)

print(output["outputs"][0])  # → URL of the generated output

Flux Kontext Max Multi API — Frequently asked questions

What is the Flux Kontext Max Multi API?

Flux Kontext Max Multi is a WaveSpeedAI model for image editing, exposed as a REST API on WaveSpeedAI. Experimental FLUX.1 Kontext [max] (multi) supports multi-image context handling for combined inputs. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.

How do I call the Flux Kontext Max Multi API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/wavespeed-ai/flux-kontext-max-multi.

How much does Flux Kontext Max Multi cost per run?

Flux Kontext Max Multi starts at $0.080 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.

What inputs does Flux Kontext Max Multi accept?

Key inputs: `prompt`, `images`, `aspect_ratio`, `guidance_scale`, `enable_sync_mode`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/wavespeed-ai/flux-kontext-max-multi.

How long does Flux Kontext Max Multi take to generate?

Average end-to-end generation time on WaveSpeedAI is around 23 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.

Can I use Flux Kontext Max Multi outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (WaveSpeedAI). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.