# FLUX 2 Flex > Max-quality image generation and editing with support for ten reference images. Control over the quality-speed trade-off, excellent for typography, infographics, UI mockups, and multi-reference image editing. - **Provider**: replicate - **Model ID**: black-forest-labs/flux-2-flex - **Category**: image_generation - **Credits**: 200 per request - **Pricing Type**: input_based ## API Endpoint Base URL: https://api.core.today/v1 ### Create Prediction POST /predictions ### Get Status GET /predictions/{job_id} ### Cancel DELETE /predictions/{job_id} ## Authentication Header: `X-API-Key: YOUR_API_KEY` ## Input Parameters No detailed input schema available. ## Example Request ```json { "model": "black-forest-labs/flux-2-flex", "input": { "aspect_ratio": "1:1", "input_images": [], "output_format": "webp", "safety_tolerance": 2, "prompt_upsampling": true, "prompt": "A neon-lit cyberpunk alley at night, rain-slick streets, reflective puddles", "resolution": "1 MP", "output_quality": 80 } } ``` ## Response Format ```json { "job_id": "abc123", "status": "pending", "provider": "replicate", "model": "black-forest-labs/flux-schnell", "created_at": "2026-01-01T00:00:00Z", "result": null, "error": null } ``` Status values: `pending`, `processing`, `completed`, `failed`, `cancelled` ## Usage Flow 1. POST /predictions with model and input → receive job_id 2. Poll GET /predictions/{job_id} until status is `completed` or `failed` 3. Result contains output URL(s) or data ## Output Type url ## Tags flux, text-to-image, image-editing, typography, multi-reference, high-quality ## Documentation https://replicate.com/black-forest-labs/flux-2-flex