1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2411],{344:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>h,contentTitle:()=>p,default:()=>x,frontMatter:()=>c,metadata:()=>r,toc:()=>m});const r=JSON.parse('{"id":"api/ai-for-image/image-generator/flux-2-max-image-generation","title":"Flux 2 Max - Image Generator","description":"Flux 2 Max - Image Generator","source":"@site/docs/api/ai-for-image/image-generator/flux-2-max.mdx","sourceDirName":"api/ai-for-image/image-generator","slug":"/api/ai-for-image/image-generator/flux-2-max-image-generation","permalink":"/docs/api/ai-for-image/image-generator/flux-2-max-image-generation","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"flux-2-max-image-generation","title":"Flux 2 Max - Image Generator","description":"Flux 2 Max - Image Generator","sidebar_label":"Flux 2 Max","custom_edit_url":null},"sidebar":"apisidebar","previous":{"title":"Flux 2 Flex","permalink":"/docs/api/ai-for-image/image-generator/flux-2-flex-image-generation"},"next":{"title":"Flux 2 Klein 4B","permalink":"/docs/api/ai-for-image/image-generator/flux-2-klein-4b-image-generation"}}');var i=a(4848),n=a(8453),s=a(1470),l=a(9365),d=a(1028),o=a(1696);const c={id:"flux-2-max-image-generation",title:"Flux 2 Max - Image Generator",description:"Flux 2 Max - Image Generator",sidebar_label:"Flux 2 Max",custom_edit_url:null},p="Flux 2 Max - Image Generator",h={},m=[{value:"Endpoint",id:"endpoint",level:2},{value:"Request Headers",id:"request-headers",level:2},{value:"Parameters",id:"parameters",level:2},{value:"Prompt Object Parameters",id:"prompt-object-parameters",level:3},{value:"Code Examples",id:"code-examples",level:2},{value:"Interactive Playground",id:"interactive-playground",level:2},{value:"Response Format",id:"response-format",level:2},{value:"Use Cases",id:"use-cases",level:2}];function u(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"flux-2-max---image-generator",children:"Flux 2 Max - Image Generator"})}),"\n",(0,i.jsx)(t.p,{children:"The highest-fidelity image generation model from Black Forest Labs. Delivers maximum quality with top consistency across generations, making it the definitive choice for professional photography, fine art, and premium commercial work."}),"\n",(0,i.jsx)(t.admonition,{title:"Also supports Image Editing",type:"info",children:(0,i.jsxs)(t.p,{children:["This model also supports ",(0,i.jsx)(t.code,{children:"IMAGE_EDITOR"})," mode for text-based image editing. See ",(0,i.jsx)(t.a,{href:"/docs/api/ai-for-image/image-text-editor/flux-2-max-image-text-editor",children:"Flux 2 Max - Image Editor"}),"."]})}),"\n",(0,i.jsx)(t.h2,{id:"endpoint",children:"Endpoint"}),"\n",(0,i.jsxs)("div",{className:"api-endpoint",children:[(0,i.jsx)("span",{className:"badge badge--success",children:"POST"}),(0,i.jsx)("code",{children:(0,i.jsx)(t.a,{href:"https://api.1min.ai/api/features",children:"https://api.1min.ai/api/features"})})]}),"\n",(0,i.jsx)(t.h2,{id:"request-headers",children:"Request Headers"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Field"}),(0,i.jsx)(t.th,{children:"Value"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"API-KEY"}),(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"<api-key>"})})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Content-Type"}),(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"application/json"})})]})]})]}),"\n",(0,i.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Parameter"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Required"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"type"})}),(0,i.jsx)(t.td,{children:"string"}),(0,i.jsx)(t.td,{children:"Yes"}),(0,i.jsxs)(t.td,{children:["Must be ",(0,i.jsx)(t.code,{children:"IMAGE_GENERATOR"})]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"model"})}),(0,i.jsx)(t.td,{children:"string"}),(0,i.jsx)(t.td,{children:"Yes"}),(0,i.jsxs)(t.td,{children:["Must be ",(0,i.jsx)(t.code,{children:"black-forest-labs/flux-2-max"})]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"promptObject"})}),(0,i.jsx)(t.td,{children:"object"}),(0,i.jsx)(t.td,{children:"Yes"}
1),(0,i.jsx)(t.td,{children:"Configuration object containing all generation parameters"})]})]})]}),"\n",(0,i.jsx)(t.h3,{id:"prompt-object-parameters",children:"Prompt Object Parameters"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Parameter"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Required"}),(0,i.jsx)(t.th,{children:"Description"}),(0,i.jsx)(t.th,{children:"Default"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"prompt"})}),(0,i.jsx)(t.td,{children:"string"}),(0,i.jsx)(t.td,{children:"Yes"}),(0,i.jsx)(t.td,{children:"Text description of the image to generate"}),(0,i.jsx)(t.td,{children:"-"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"aspect_ratio"})}),(0,i.jsx)(t.td,{children:"string"}),(0,i.jsx)(t.td,{children:"No"}),(0,i.jsx)(t.td,{children:"Image aspect ratio (1:1, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4)"}),(0,i.jsx)(t.td,{children:"1:1"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"output_format"})}),(0,i.jsx)(t.td,{children:"string"}),(0,i.jsx)(t.td,{children:"No"}),(0,i.jsx)(t.td,{children:"Output file format (jpg, png)"}),(0,i.jsx)(t.td,{children:"png"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"output_quality"})}),(0,i.jsx)(t.td,{children:"number"}),(0,i.jsx)(t.td,{children:"No"}),(0,i.jsx)(t.td,{children:"Output image quality (0-100)"}),(0,i.jsx)(t.td,{children:"80"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"steps"})}),(0,i.jsx)(t.td,{children:"number"}),(0,i.jsx)(t.td,{children:"No"}),(0,i.jsx)(t.td,{children:"Number of diffusion steps (15-50)"}),(0,i.jsx)(t.td,{children:"50"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"guidance"})}),(0,i.jsx)(t.td,{children:"number"}),(0,i.jsx)(t.td,{children:"No"}),(0,i.jsx)(t.td,{children:"Prompt adherence scale (2-5)"}),(0,i.jsx)(t.td,{children:"3"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"safety_tolerance"})}),(0,i.jsx)(t.td,{children:"number"}),(0,i.jsx)(t.td,{children:"No"}),(0,i.jsx)(t.td,{children:"Content safety threshold (1=strictest, 6=most permissive)"}),(0,i.jsx)(t.td,{children:"2"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"prompt_upsampling"})}),(0,i.jsx)(t.td,{children:"boolean"}),(0,i.jsx)(t.td,{children:"No"}),(0,i.jsx)(t.td,{children:"Automatically enhance prompt for more creative output"}),(0,i.jsx)(t.td,{children:"false"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"seed"})}),(0,i.jsx)(t.td,{children:"number"}),(0,i.jsx)(t.td,{children:"No"}),(0,i.jsx)(t.td,{children:"Random seed for reproducibility"}),(0,i.jsx)(t.td,{children:"Random"})]})]})]}),"\n",(0,i.jsx)(t.h2,{id:"code-examples",children:"Code Examples"}),"\n",(0,i.jsxs)(s.A,{children:[(0,i.jsx)(l.A,{value:"curl",label:"cURL",default:!0,children:(0,i.jsx)(d.A,{language:"bash",children:'curl --location \'https://api.1min.ai/api/features\' \\\n--header \'API-KEY: <api-key>\' \\\n--header \'Content-Type: application/json\' \\\n--data \'{\n"type": "IMAGE_GENERATOR",\n"model": "black-forest-labs/flux-2-max",\n"promptObject": {\n "prompt": "A cinematic portrait of a woman in a rainy street at night, bokeh lights, film grain, ultra detailed",\n "aspect_ratio": "2:3",\n "steps": 50,\n "guidance": 3.5,\n "output_format": "png",\n "output_quality": 95,\n "safety_tolerance": 2\n}\n}\''})}),(0,i.jsx)(l.A,{value:"javascript",label:"JavaScript",children:(0,i.jsx)(d.A,{language:"javascript",children:"fetch('https://api.1min.ai/api/features', {\nmethod: 'POST',\nheaders: {\n 'Content-Type': 'application/json',\n 'API-KEY': 'YOUR_API_KEY'\n},\nbody: JSON.stringify({\n type: 'IMAGE_GENERATOR',\n model: 'black-forest-labs/flux-2-max',\n promptObject: {\n prompt: 'A cinematic portrait of a woman in a rainy street at night, bokeh lights, film grain, ultra detailed',\n aspect_ratio: '2:3',\n steps: 50,\n guidance: 3.5,\n output_format: 'png',\n output_quality: 95,\n safety_tolerance: 2\n }\n})\n})"})}),(0,i.jsx)(l.A,{value:"python",label:"Python",children:(0,i.jsx)(d.A,{language:"python",children:'import requests\n\nurl = "https://api.1min.ai/api/features"\nheaders = {\n"Content-Type": "application/json",\n"API-KEY": "YOUR_API_KEY"\n}\n\ndata = {\n"type": "IMAGE_GENERATOR",\n"model": "black-forest-labs/flux-2-max",\n"promptObject": {\n "prompt": "A cinematic portrait of a woman in a rainy street at night, bokeh lights, film grain, ultra detailed",\n "aspect_ratio": "2:3",\n "steps": 50,\n "guidance": 3.5,\n "output_format": "png",\n "output_quality": 95,\n "safety_tolerance": 2\n}\n}\n\nresponse = requests.post(url, headers=headers, json=data)'})})]}),"\n",(0,i.jsx)(t.h2,{id:"interactive-playground",children:"Interactive Playground"}),"\n",(0,i.jsx)(o.A,{endpoint:"/api/features",method:"POST",baseUrl:"https://api.1min.ai",defaultHeaders:{"API-KEY":"<your-api-key>","Content-Type":"application/json"},defaultBody:{type:"IMAGE_GENERATOR",model:"black-forest-labs/flux-2-max",promptObject:{prompt:"A cinematic portrait of a woman in a rainy street at night, bokeh lights, film grain, ultra detailed",aspect_ratio:"2:3",steps:50,guidance:3.5,output_format:"png",output_quality:95,safety_tolerance:2}},parameterConfig:[{path:"model",label:"AI Model",type:"select",required:!0,options:[{label:"Flux 2 Max - Black Forest Labs",value:"black-forest-labs/flux-2-max"}],getValue:e=>e.model},{path:"promptObject.prompt",label:"Prompt",type:"textarea",required:!0,description:"Describe the image you want to generate",placeholder:"A cinematic portrait of a woman in a rainy street at night, bokeh lights, film grain, ultra detailed",getValue:e=>e.promptObject?.prompt},{path:"promptObject.aspect_ratio",label:"Aspect Ratio",type:"select",required:!1,options:[{label:"1:1 - Square",value:"1:1"},{label:"16:9 - Widescreen",value:"16:9"},{label:"9:16 - Vertical",value:"9:16"},{label:"3:2 - Photography",value:"3:2"},{label:"2:3 - Portrait",value:"2:3"},{label:"4:5 - Instagram",value:"4:5"},{label:"5:4 - Landscape",value:"5:4"}],getValue:e=>e.promptObject?.aspect_ratio},{path:"promptObject.steps",label:"Steps",type:"number",required:!1,description:"Number of diffusion steps (15-50)",placeholder:"50",min:15,max:50,getValue:e=>e.promptObject?.steps}
1,{path:"promptObject.guidance",label:"Guidance",type:"number",required:!1,description:"Prompt adherence scale (2-5)",placeholder:"3.5",min:2,max:5,step:.5,getValue:e=>e.promptObject?.guidance},{path:"promptObject.safety_tolerance",label:"Safety Tolerance",type:"number",required:!1,description:"Content safety threshold (1=strictest, 6=most permissive)",placeholder:"2",min:1,max:6,getValue:e=>e.promptObject?.safety_tolerance},{path:"promptObject.prompt_upsampling",label:"Prompt Upsampling",type:"select",required:!1,options:[{label:"True",value:!0},{label:"False",value:!1}],getValue:e=>e.promptObject?.prompt_upsampling},{path:"promptObject.output_quality",label:"Output Quality",type:"number",required:!1,description:"Output image quality (0-100)",placeholder:"95",min:0,max:100,getValue:e=>e.promptObject?.output_quality},{path:"promptObject.seed",label:"Seed",type:"number",required:!1,description:"Random seed for reproducibility",placeholder:"42",min:0,max:4294967295,getValue:e=>e.promptObject?.seed}]}),"\n",(0,i.jsx)(t.h2,{id:"response-format",children:"Response Format"}),"\n",(0,i.jsx)(d.A,{language:"json",children:'{\n"aiRecord": {\n "uuid": "f6a7b8c9-d0e1-2345-fabc-456789012345",\n "model": "black-forest-labs/flux-2-max",\n "type": "IMAGE_GENERATOR",\n "status": "SUCCESS",\n "createdAt": "2026-03-27T10:00:00.000Z",\n "aiRecordDetail": {\n "promptObject": {\n "prompt": "A cinematic portrait of a woman in a rainy street at night, bokeh lights, film grain, ultra detailed",\n "aspect_ratio": "2:3",\n "steps": 50,\n "guidance": 3.5,\n "output_format": "png",\n "output_quality": 95,\n "safety_tolerance": 2\n },\n "resultObject": [\n "development/images/2026_03_27_10_00_06_001_portrait.png"\n ]\n },\n "temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2026_03_27_10_00_06_001_portrait.png?..."\n}\n}'}),"\n",(0,i.jsx)(t.h2,{id:"use-cases",children:"Use Cases"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Professional Photography"}),": Ultra high-fidelity photorealistic portraits and scenes"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Fine Art"}),": Museum-quality digital artwork at maximum detail"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Film & Advertising"}),": Premium campaign visuals requiring top production value"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"E-commerce"}),": Flawless product imagery with perfect consistency"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"Brand Campaigns"}),": Character and style consistency at the highest quality level"]}),"\n"]})]})}function x(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.