flux-kontext-max API
Usa flux-kontext-max dalla famiglia Flux Kontext tramite RunAPI. Prezzi per chiamata, nessun abbonamento e le generazioni fallite non vengono mai addebitate.
curl -X POST https://runapi.ai/api/v1/flux_kontext/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-kontext-max",
"prompt": "Edit this product photo: change the background to a tropical beach while keeping the product exactly the same."
}'
import { FluxKontextClient } from "@runapi.ai/flux-kontext";
const client = new FluxKontextClient();
const result = await client.textToImage.run({
model: "flux-kontext-max",
prompt: "Edit this product photo: change the background to a tropical beach while keeping the product exactly the same.",
});
<?php
require __DIR__ . "/vendor/autoload.php";
use RunApi\FluxKontext\FluxKontextClient;
$client = new FluxKontextClient();
$result = $client->textToImage->run([
'model' => 'flux-kontext-max',
'prompt' => 'Edit this product photo: change the background to a tropical beach while keeping the product exactly the same.',
]);
require "runapi/flux_kontext"
client = RunApi::FluxKontext::Client.new
result = client.text_to_image.run(
model: "flux-kontext-max",
prompt: "Edit this product photo: change the background to a tropical beach while keeping the product exactly the same."
)
npx skills add runapi-ai/flux-kontext -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
# Codex
codex plugin install runapi-mcp@agents
# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
flux-kontext-max punta al giusto equilibrio tra qualità e costo all’interno della famiglia Flux Kontext.
- Prezzi pay-per-call in USD
- Le generazioni fallite non vengono addebitate
- Streaming quando supportato dal modello
- Setup del model skill
Prezzi
Dettagli tecnici
| ID modello | flux-kontext-max |
| Provider | Black Forest Labs |
| Modalità | image |
| Tipo di task | asynchronous |
| Unità di fatturazione | call |
| API endpoint | /api/v1/flux_kontext/text_to_image |
| Licenza commerciale | Sì — inclusa via API |
| Stato del catalogo | Operativo |
Quickstart — flux-kontext-max
Stessa struttura · variante fissata nel model
# Install the model skill for app development workflows
npx skills add runapi-ai/flux-kontext -g
Install the Flux Kontext skill for this app: 1. Add runapi-ai/flux-kontext with the skills installer. 2. Load SKILL.md in this workspace. 3. Use its docs, schemas, pricing notes, and setup steps when adding model features. 4. Confirm the install path when done.
Usa flux-kontext-max in quattro passaggi
Installa
Installa il model skill per questa linea di modello.
Configura
Imposta il campo model con l'ID completo del model mostrato in questa pagina.
Invia
Invia una richiesta tipizzata con prompt, input e impostazioni di callback.
Ricevi
Leggi la risposta del task, il callback webhook o l'URL dell'output in cache da RunAPI.
Cosa cambia in flux-kontext-max
4K output, superior text rendering, advanced contextual editing
Balanced speed and quality for in-context editing
Ideale per
Fotografia di prodotto
Genera automaticamente foto lifestyle di prodotto per cataloghi e-commerce privi di servizi fotografici in studio.
Game e concept art
Progetta rapidamente ambienti e personaggi prima di passare all'art finale.
Illustrazione editoriale
Genera cover art e illustrazioni uniche per post del blog e articoli su larga scala.
Domande frequenti su flux-kontext-max
L'ID del modello resta stabile tra le versioni?
RunAPI mantiene stabile l’ID del modello e gestisce gli aggiornamenti di versione compatibili senza modificare la forma della richiesta.
Qual è il rate limit di questa variante?
I limiti per chiave scalano in base al tier di utilizzo. Consulta la pagina prezzi per i limiti attuali.
Posso cambiare variante in seguito?
Sì — la variante è un flag. Puoi cambiarla modificando il parametro model.
Fa streaming?
Dove lo streaming è disponibile, RunAPI esegue lo streaming end-to-end.
Dove posso segnalare problemi di qualità?
Apri un issue nel repository GitHub pubblico oppure scrivi all’assistenza.