ModèlesTarificationEntreprise
500+ API de modèles IA, toutes en une seule API. Simplement avec CometAPI
API des modèles
Développeur
Démarrage rapideDocumentationTableau de bord API
Entreprise
À proposEntreprise
Ressources
Modèles d'IABlogJournal des modificationsSupport
Conditions d'utilisationPolitique de confidentialité
© 2026 CometAPI · All rights reserved
Home/Models/Flux/flux-kontext-max
F

flux-kontext-max

Par requête:$0.096
Usage commercial
Aperçu
Fonctionnalités
Tarification
API

Technical Specifications of flux-kontext-max

SpecificationDetails
Model IDflux-kontext-max
Provider / model familyBlack Forest Labs FLUX.1 Kontext [max]
Primary modalityImage generation and image editing from text and image inputs
Core use caseIn-context image generation, local edits, full-scene transformations, and text-based image manipulation
Quality tierPremium / maximum-quality variant in the FLUX.1 Kontext family
Prompting inputsText prompts plus optional input images for editing and transformation workflows
Output resolutionFixed at 1 megapixel with flexible aspect ratios
Pricing reference8 credits per image, listed as $0.08 per image by Black Forest Labs
Concurrency noteBlack Forest Labs help documentation lists flux-kontext-max at 6 active tasks, lower than the default account concurrency of 24

What is flux-kontext-max?

flux-kontext-max is CometAPI’s platform identifier for Black Forest Labs’ FLUX.1 Kontext [max], a premium image model designed for both text-to-image generation and image editing within a single system. Rather than treating generation and editing as separate tools, the Kontext family is built for in-context workflows where users can provide text instructions, optionally include an image, and then refine, modify, or restyle the result across multiple turns.

The [max] variant is positioned as the highest-quality option in the FLUX.1 Kontext lineup. Black Forest Labs describes it as its premium model with maximum performance, improved prompt adherence, stronger typography generation, and premium consistency for editing, while still supporting fast iterative workflows.

In practice, flux-kontext-max is aimed at teams that need more than basic image synthesis. It is useful for brand-consistent visuals, character-preserving edits, localized changes to existing images, stylization, and text replacement inside scenes such as signs, labels, or UI-like visual elements.

Main features of flux-kontext-max

  • Unified generation and editing: Supports both creating images from prompts and editing existing images in the same model workflow, which simplifies application design for creative tools and production pipelines.
  • Maximum-quality Kontext tier: The [max] variant is the premium FLUX.1 Kontext offering, positioned for best output quality, stronger prompt adherence, and higher-end editing consistency.
  • Character consistency: Designed to preserve identity and recognizable visual traits across multiple scenes and iterative edits, which is valuable for storytelling, marketing assets, and multi-image campaigns.
  • Local precision editing: Can modify specific parts of an image while preserving the surrounding composition, enabling targeted object swaps, scene adjustments, or selective clean-up.
  • In-context scene transformation: Lets developers transform elements of an existing image while keeping their relationship to the broader scene coherent, rather than regenerating the whole image blindly.
  • Typography and text editing strengths: Black Forest Labs highlights improved typography generation, and its help documentation explicitly lists text editing and replacement in signs and labels as a key capability.
  • Flexible aspect ratios at fixed 1MP output: Outputs are generated at a fixed 1-megapixel resolution, with flexibility in aspect ratio selection for different product surfaces and creative formats.
  • Predictable per-image pricing: Black Forest Labs lists the model at 8 credits or $0.08 per image, making cost estimation straightforward for batch generation and editing workflows.

How to access and integrate flux-kontext-max

Step 1: Sign Up for API Key

To get started, create an account on CometAPI and generate your API key from the dashboard. After that, store the key securely as an environment variable so your application can authenticate requests to the API.

Step 2: Send Requests to flux-kontext-max API

Once you have an API key, send requests to CometAPI’s OpenAI-compatible endpoint and set the model field to flux-kontext-max.

curl --request POST \
  --url https://api.cometapi.com/v1/images/generations \
  --header "Authorization: Bearer $COMETAPI_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "model": "flux-kontext-max",
    "prompt": "Create a cinematic product-style image of a smartwatch on a reflective black surface with dramatic studio lighting"
  }'

You can also integrate it using the OpenAI SDK format:

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.COMETAPI_API_KEY,
  baseURL: "https://api.cometapi.com/v1"
});

const result = await client.images.generate({
  model: "flux-kontext-max",
  prompt: "Create a cinematic product-style image of a smartwatch on a reflective black surface with dramatic studio lighting"
});

console.log(result);

Step 3: Retrieve and Verify Results

After submission, parse the API response and retrieve the generated image result returned by the platform. You should then verify output quality, prompt adherence, and any requested edits or typography details before using the result in production workflows. For high-volume usage, also account for provider-side concurrency behavior; Black Forest Labs documents a 6-active-task limit for flux-kontext-max.

Fonctionnalités pour flux-kontext-max

Découvrez les fonctionnalités clés de flux-kontext-max, conçues pour améliorer les performances et la facilité d'utilisation. Explorez comment ces capacités peuvent bénéficier à vos projets et améliorer l'expérience utilisateur.

Tarification pour flux-kontext-max

Découvrez des tarifs compétitifs pour flux-kontext-max, conçus pour s'adapter à différents budgets et besoins d'utilisation. Nos formules flexibles garantissent que vous ne payez que ce que vous utilisez, ce qui facilite l'adaptation à mesure que vos besoins évoluent. Découvrez comment flux-kontext-max peut améliorer vos projets tout en maîtrisant les coûts.
Prix de Comet (USD / M Tokens)Prix officiel (USD / M Tokens)Remise
Par requête:$0.096
Par requête:$0.12
-20%

Exemple de code et API pour flux-kontext-max

Accédez à des exemples de code complets et aux ressources API pour flux-kontext-max afin de simplifier votre processus d'intégration. Notre documentation détaillée fournit des instructions étape par étape pour vous aider à exploiter tout le potentiel de flux-kontext-max dans vos projets.

Plus de modèles

G

Nano Banana 2

Entrée:$0.4/M
Sortie:$2.4/M
Aperçu des capacités principales: Résolution: Jusqu'à 4K (4096×4096), comparable à Pro. Cohérence des images de référence: Jusqu'à 14 images de référence (10 objets + 4 personnages), en maintenant la cohérence du style et des personnages. Rapports d'aspect extrêmes: Nouveaux rapports 1:4, 4:1, 1:8, 8:1 ajoutés, adaptés aux images longues, aux affiches et aux bannières. Rendu de texte: Génération de texte avancée, adaptée aux infographies et aux mises en page d'affiches marketing. Amélioration de la recherche: Google Search + Image Search intégrés. Ancrage: Processus de réflexion intégré; les prompts complexes font l'objet d'un raisonnement avant la génération.
C

Claude Opus 4.7

Entrée:$4/M
Sortie:$20/M
Le modèle le plus intelligent pour les agents et la programmation
C

Claude Opus 4.6

Entrée:$4/M
Sortie:$20/M
Claude Opus 4.6 est le grand modèle de langage de classe « Opus » d’Anthropic, publié en février 2026. Il est positionné comme un outil polyvalent pour le travail cognitif et les flux de travail de recherche — améliorant le raisonnement en contexte long, la planification à plusieurs étapes, l’utilisation d’outils (y compris des flux de travail logiciels basés sur des agents) et l’exécution de tâches informatiques telles que la génération automatisée de diapositives et de feuilles de calcul.
A

Claude Sonnet 4.6

Entrée:$2.4/M
Sortie:$12/M
Claude Sonnet 4.6 est notre modèle Sonnet le plus performant à ce jour. Il s’agit d’une mise à niveau complète des capacités du modèle dans la programmation, l’usage de l’ordinateur, le raisonnement sur des contextes étendus, la planification d’agents, le travail intellectuel et la conception. Sonnet 4.6 propose également une fenêtre de contexte de 1M de jetons en bêta.
O

GPT-5.4 nano

Entrée:$0.16/M
Sortie:$1/M
GPT-5.4 nano est conçu pour des tâches où la vitesse et le coût comptent le plus, comme la classification, l’extraction de données, le classement et les sous-agents.
O

GPT-5.4 mini

Entrée:$0.6/M
Sortie:$3.6/M
GPT-5.4 mini apporte les atouts de GPT-5.4 dans un modèle plus rapide et plus efficace, conçu pour des charges de travail à grande échelle.