Skip to content
Stable Diffusion API

Flux

Flux Kontext Pro

model_id: flux-kontext-pro

Advanced image generation and editing model with 12B parameters, leveraging multimodal flow transformers for context-aware text-to-image synthesis and. Advanced image generation and editing model with 12B parameters, leveraging multimodal flow transformers for context-aware text-to-image synthesis and precise local edits, ensuring high-resolution outputs and character consistency. You can integrate Flux Kontext Pro into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "flux-kontext-pro" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation. Flux Kontext Pro costs $0.048 per generation. ModelsLab plans start at $21/month (Basic), and the $149/month Open Source plan includes unlimited generation on open-source models.

Flux Kontext Pro sample image

Generate with Flux Kontext Pro via API

Send a POST request to https://stablediffusionapi.com/api/v7/images/image-to-image with your API key. Get yours at modelslab.com.

curl -X POST 'https://stablediffusionapi.com/api/v7/images/image-to-image' \
  -H 'Content-Type: application/json' \
  -d '{
  "key": "YOUR_API_KEY",
  "model_id": "flux-kontext-pro",
  "prompt": "turn this photo into a watercolor painting",
  "init_image": "https://example.com/input.png"
}'

Also searched as

Flux Kontext Pro is also known as: Flux Kontext Pro, flux-kontext-pro, flux kontext pro, fluxkontextpro, flux.kontext.pro. Use it for flux generation, available via the Stable Diffusion API REST API at https://stablediffusionapi.com/api/v7/images/image-to-image.

FAQ — Flux Kontext Pro

How do I use Flux Kontext Pro via API?
Send a POST request to https://stablediffusionapi.com/api/v7/images/image-to-image with your API key, prompt, and model_id "flux-kontext-pro". Get an API key from modelslab.com.
Is Flux Kontext Pro free to use?
No. API access requires a paid ModelsLab plan, starting at $21/month (Basic, 3,250 API calls). The $149/month Open Source Unlimited plan includes unlimited generations on open-source models; third-party models are billed separately.
What parameters does Flux Kontext Pro support?
Flux Kontext Pro takes your API key plus: model_id, prompt, init_image. The code sample on this page shows a complete request.
Can I use generated images commercially?
Yes. You retain copyright on all images you generate via the API and can use them commercially.