PageSourceSearch

https://docs.1min.ai/assets/js/6e456cfb.1d1fbb80.js

js 1min.ai collected 2026-10-02 14:05:59 UTC 25,056 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[936],{7436:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>p,contentTitle:()=>h,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>j});const i=JSON.parse('{"id":"api/ai-for-image/image-generator/stable-diffusion-3-5-image-generation","title":"Stable Diffusion 3.5 - Image Generator","description":"Stable Diffusion 3.5 - Image Generator","source":"@site/docs/api/ai-for-image/image-generator/stable-diffusion-3-5.mdx","sourceDirName":"api/ai-for-image/image-generator","slug":"/api/ai-for-image/image-generator/stable-diffusion-3-5-image-generation","permalink":"/docs/api/ai-for-image/image-generator/stable-diffusion-3-5-image-generation","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"stable-diffusion-3-5-image-generation","title":"Stable Diffusion 3.5 - Image Generator","description":"Stable Diffusion 3.5 - Image Generator","sidebar_label":"Stable Diffusion 3.5","custom_edit_url":null},"sidebar":"apisidebar","previous":{"title":"Stable Image Ultra","permalink":"/docs/api/ai-for-image/image-generator/stable-diffusion-ultra-image-generation"},"next":{"title":"Flux Pro","permalink":"/docs/api/ai-for-image/image-generator/flux-pro-image-generation"}}');var n=r(4848),s=r(8453),d=r(1470),a=r(9365),l=r(1028),c=r(1696);const o={id:"stable-diffusion-3-5-image-generation",title:"Stable Diffusion 3.5 - Image Generator",description:"Stable Diffusion 3.5 - Image Generator",sidebar_label:"Stable Diffusion 3.5",custom_edit_url:null},h="Stable Diffusion 3.5 - Image Generator",p={},j=[{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:"Reference Image Requirements",id:"reference-image-requirements",level:3},{value:"Supported Aspect Ratios",id:"supported-aspect-ratios",level:3},{value:"Style Presets",id:"style-presets",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 x(e){const t={a:"a",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,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"stable-diffusion-35---image-generator",children:"Stable Diffusion 3.5 - Image Generator"})}),"\n",(0,n.jsxs)(t.p,{children:["Generate high-quality images using Stability AI's ",(0,n.jsx)(t.strong,{children:"Stable Diffusion 3.5"})," model family."]}),"\n",(0,n.jsxs)(t.p,{children:["This page documents all four SD3.5 models. They share the exact same parameters \u2014 only the ",(0,n.jsx)(t.code,{children:"model"})," identifier changes:"]}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Model ID"}),(0,n.jsx)(t.th,{children:"Name"}),(0,n.jsx)(t.th,{children:"Description"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"sd3.5-large"})}),(0,n.jsx)(t.td,{children:"Stable Diffusion 3.5 Large"}),(0,n.jsx)(t.td,{children:"At 8 billion parameters, the most powerful model in the family with superior quality and prompt adherence. Ideal for professional use cases at 1 megapixel resolution."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"sd3.5-large-turbo"})}),(0,n.jsx)(t.td,{children:"Stable Diffusion 3.5 Large Turbo"}),(0,n.jsx)(t.td,{children:"A distilled version of SD3.5 Large. Generates high-quality images with exceptional prompt adherence in just 4 steps \u2014 considerably faster than SD3.5 Large."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"sd3.5-medium"})}),(0,n.jsx)(t.td,{children:"Stable Diffusion 3.5 Medium"}),(0,n.jsx)(t.td,{children:"With 2.5 billion parameters, delivers an optimal balance between prompt accuracy and image quality \u2014 an efficie
1nt choice for fast, high-performance generation."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"sd3.5-flash"})}),(0,n.jsx)(t.td,{children:"Stable Diffusion 3.5 Flash"}),(0,n.jsx)(t.td,{children:"A distilled version of SD3.5 Medium using a 4-step process instead of 40, making it the fastest model in the SD3.5 suite."})]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"endpoint",children:"Endpoint"}),"\n",(0,n.jsxs)("div",{className:"api-endpoint",children:[(0,n.jsx)("span",{className:"badge badge--success",children:"POST"}),(0,n.jsx)("code",{children:(0,n.jsx)(t.a,{href:"https://api.1min.ai/api/features",children:"https://api.1min.ai/api/features"})})]}),"\n",(0,n.jsx)(t.h2,{id:"request-headers",children:"Request Headers"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Field"}),(0,n.jsx)(t.th,{children:"Value"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"API-KEY"}),(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"<api-key>"})})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"Content-Type"}),(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"application/json"})})]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Parameter"}),(0,n.jsx)(t.th,{children:"Type"}),(0,n.jsx)(t.th,{children:"Required"}),(0,n.jsx)(t.th,{children:"Description"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"type"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"Yes"}),(0,n.jsxs)(t.td,{children:["Feature type identifier. Must be ",(0,n.jsx)(t.code,{children:"IMAGE_GENERATOR"})]})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"model"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"Yes"}),(0,n.jsxs)(t.td,{children:["AI model identifier. One of ",(0,n.jsx)(t.code,{children:"sd3.5-large"}),", ",(0,n.jsx)(t.code,{children:"sd3.5-large-turbo"}),", ",(0,n.jsx)(t.code,{children:"sd3.5-medium"}),", ",(0,n.jsx)(t.code,{children:"sd3.5-flash"})]})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"promptObject"})}),(0,n.jsx)(t.td,{children:"object"}),(0,n.jsx)(t.td,{children:"Yes"}),(0,n.jsx)(t.td,{children:"Configuration object containing all generation parameters"})]})]})]}),"\n",(0,n.jsx)(t.h3,{id:"prompt-object-parameters",children:"Prompt Object Parameters"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Parameter"}),(0,n.jsx)(t.th,{children:"Type"}),(0,n.jsx)(t.th,{children:"Required"}),(0,n.jsx)(t.th,{children:"Description"}),(0,n.jsx)(t.th,{children:"Default"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"prompt"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"Yes"}),(0,n.jsx)(t.td,{children:"Text description of the image to generate"}),(0,n.jsx)(t.td,{children:"-"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"negativePrompt"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"No"}),(0,n.jsx)(t.td,{children:"Text describing what to avoid in the image (max 10,000 characters)"}),(0,n.jsx)(t.td,{children:"-"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"aspect_ratio"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"Yes"}),(0,n.jsxs)(t.td,{children:["Aspect ratio of the generated image (ignored when ",(0,n.jsx)(t.code,{children:"image"})," is provided)"]}),(0,n.jsx)(t.td,{children:"-"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"output_format"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"Yes"}),(0,n.jsxs)(t.td,{children:["Output image format (",(0,n.jsx)(t.code,{children:"png"}),", ",(0,n.jsx)(t.code,{children:"jpeg"}),", ",(0,n.jsx)(t.code,{children:"webp"}),")"]}),(0,n.jsx)(t.td,{children:"-"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"seed"})}),(0,n.jsx)(t.td,{children:"number"}),(0,n.jsx)(t.td,{children:"No"}),(0,n.jsxs)(t.td,{children:["Random seed for reproducibility (0-4294967294). Omit or pass ",(0,n.jsx)(t.code,{children:"0"})," for a random seed"]}),(0,n.jsx)(t.td,{children:"-"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"style_preset"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"No"}),(0,n.jsx)(t.td,{children:"Artistic style preset"}),(0,n.jsx)(t.td,{children:"-"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"image"})}),(0,n.jsx)(t.td,{children:"string"}),(0,n.jsx)(t.td,{children:"No"}),(0,n.jsxs)(t.td,{children:["Reference image path for ",(0,n.jsx)(t.strong,{children:"image-to-image"})," generation (from the Asset API). When provided, the request runs in image-to-image mode and ",(0,n.jsx)(t.code,{children:"strength"})," becomes required"]}),(0,n.jsx)(t.td,{children:"-"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"strength"})}),(0,n.jsx)(t.td,{children:"number"}),(0,n.jsx)(t.td,{children:"No"}),(0,n.jsxs)(t.td,{children:["Controls how much influence the reference ",(0,n.jsx)(t.code,{children:"image"})," has (0.0-1.0). ",(0,n.jsxs)(t.strong,{children:["Required when ",(0,n.jsx)(t.code,{children:"image"})," is provided."]})]}),(0,n.jsx)(t.td,{children:"-"})]})]})]}),"\n",(0,n.jsx)(t.h3,{id:"reference-image-requirements",children:"Reference Image Requirements"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Constraint"}),(0,n.jsx)(t.th,{children:"Value"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"Supported formats"}),(0,n.jsxs)(t.td,{children:[(0,n.jsx)(t.code,{children:"jpeg"}),", ",(0,n.jsx)(t.code,{children:"png"}),", ",(0,n.jsx)(t.code,{children:"webp"})]})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"Side length"}),(0,n.jsx)(t.td,{children:"Every side must be at least 64 pixels"})]})]})]}),"\n",(0,n.jsx)(t.h3,{id:"supported-aspect-ratios",children:"Supported Aspect Ratios"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Ratio"}),(0,n.jsx)(t.th,{children:"Description"}),(0,n.jsx)(t.th,{children:"Best For"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"1:1"})}),(0,n.jsx)(t.td,{children:"Square format"}),(0,n.jsx)(t.td,{children:"Social media posts, avatars"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"16:9"})}),(0,n.jsx)(t.td,{children:"Widescreen"}),(0,n.jsx)(t.td,{children:"Banners, headers, presentations"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"21:9"})}),(0,n.jsx)(t.td,{children:"Ultra-wide"}),(0,n.jsx)(t.td,{children:"Panoramic views, cinematic shots"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"2:3"})}),(0,n.jsx)(t.td,{children:"Portrait"}),(0,n.jsx)(t.td,{children:"Vertical photos, book covers"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"3:2"})}),(0,n.jsx)(t.td,{children:"Landscape"}),(0,n.jsx)(t.td,{children:"Standard photography"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"4:5"})}),(0,n.jsx)(t.td,{children:"Portrait social"}),(0,n.jsx)(t.td,{children:"Instagram posts, stories"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"5:4"})}),(0,n.jsx)(t.td,{children:"Landscape social"}),(0,n.jsx)(t.td,{children:"Facebook covers, wide posts"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"9:16"})}),(0,n.jsx)(t.td,{children:"Vertical video"}),(0,n.jsx)(t.td,{children:"TikTok, Instagram stories"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"9:21"})}),(0,n.jsx)(t.td,{children:"Ultra-tall"}),(0,n.jsx)(t.td,{children:"Mobile screens, long banners"})]})]})]}),"\n",(0,n.jsx)(t.h3,{id:"style-presets",children:"Style Presets"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Style"}),(0,n.jsx)(t.th,{children:"Description"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"3d-model"})}),(0,n.jsx)(t.td,{children:"3D rendered appearance"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"analog-film"})}),(0,n.jsx)(t.td,{children:"Film photography aesthetic"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"anime"})}),(0,n.jsx)(t.td,{children:"Anime/manga style"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"cinematic"})}),(0,n.jsx)(t.td,{children:"Movie-like quality"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"comic-book"})}),(0,n.jsx)(t.td,{children:"Comic book illustration"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"digital-art"})}),(0,n.jsx)(t.td,{children:"Digital artwork style"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"enhance"})}),(0,n.jsx)(t.td,{children:"Enhanced realism"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"fantasy-art"})}),(0,n.jsx)(t.td,{children:"Fantasy illustration"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"isometric"})}),(0,n.jsx)(t.td,{children:"Isometric perspective"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"line-art"})}),(0,n.jsx)(t.td,{children:"Line art style"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"low-poly"})}),(0,n.jsx)(t.td,{children:"Low polygon 3D style"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"modeling-compound"})}),(0,n.jsx)(t.td,{children:"Clay modeling aesthetic"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"neon-punk"})}),(0,n.jsx)(t.td,{children:"Cyberpunk neon style"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"origami"})}),(0,n.jsx)(t.td,{children:"Paper folding art"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"photographic"})}),(0,n.jsx)(t.td,{children:"Realistic photography"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"pixel-art"})}),(0,n.jsx)(t.td,{children:"Retro pixel art"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.code,{children:"tile-texture"})}),(0,n.jsx)(t.td,{children:"Seamless texture"})]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"code-examples",children:"Code Examples"}),"\n",(0,n.jsxs)(t.p,{children:["For ",(0,n.jsx)(t.strong,{children:"text-to-image"}),", send ",(0,n.jsx)(t.code,{children:"aspect_ratio"})," and omit ",(0,n.jsx)(t.code,{children:"image"}),". For ",(0,n.jsx)(t.strong,{children:"image-to-image"}),", send a reference ",(0,n.jsx)(t.code,{children:"image"})," (path from the Asset API) together with a ",(0,n.jsx)(t.code,{children:"strength"})," value \u2014 ",(0,n.jsx)(t.code,{children:"aspect_ratio"}
1)," is ignored in this mode."]}),"\n",(0,n.jsxs)(d.A,{children:[(0,n.jsx)(a.A,{value:"curl",label:"cURL",default:!0,children:(0,n.jsx)(l.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": "sd3.5-large",\n"promptObject": {\n  "prompt": "A serene mountain landscape with crystal clear lake reflection",\n  "negativePrompt": "blurry, low quality, distorted",\n  "aspect_ratio": "16:9",\n  "seed": 42,\n  "style_preset": "photographic",\n  "output_format": "png"\n}\n}\''})}),(0,n.jsx)(a.A,{value:"javascript",label:"JavaScript",children:(0,n.jsx)(l.A,{language:"javascript",children:"// Text-to-image: send \"aspect_ratio\" and omit \"image\".\n// Image-to-image: send \"image\" + \"strength\" instead (aspect_ratio is ignored).\nconst promptObject = {\nprompt: 'A serene mountain landscape with crystal clear lake reflection',\nnegativePrompt: 'blurry, low quality, distorted',\naspect_ratio: '16:9', // text-to-image only\n// image: 'development/images/reference.png', // image-to-image\n// strength: 0.9,                             // required when \"image\" is set\nseed: 42,\nstyle_preset: 'photographic',\noutput_format: 'png'\n};\n\nfetch('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: 'sd3.5-large',\n  promptObject\n})\n})"})}),(0,n.jsx)(a.A,{value:"python",label:"Python",children:(0,n.jsx)(l.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\n# Text-to-image: send "aspect_ratio" and omit "image".\n# Image-to-image: send "image" + "strength" instead (aspect_ratio is ignored).\nprompt_object = {\n"prompt": "A serene mountain landscape with crystal clear lake reflection",\n"negativePrompt": "blurry, low quality, distorted",\n"aspect_ratio": "16:9",  # text-to-image only\n# "image": "development/images/reference.png",  # image-to-image\n# "strength": 0.9,                               # required when "image" is set\n"seed": 42,\n"style_preset": "photographic",\n"output_format": "png"\n}\n\ndata = {\n"type": "IMAGE_GENERATOR",\n"model": "sd3.5-large",\n"promptObject": prompt_object\n}\n\nresponse = requests.post(url, headers=headers, json=data)'})})]}),"\n",(0,n.jsx)(t.h2,{id:"interactive-playground",children:"Interactive Playground"}),"\n",(0,n.jsx)(c.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:"sd3.5-large",promptObject:{prompt:"A serene mountain landscape with crystal clear lake reflection",negativePrompt:"blurry, low quality, distorted",aspect_ratio:"16:9",seed:42,style_preset:"photographic",output_format:"png"}},parameterConfig:[{path:"model",label:"AI Model",type:"select",required:!0,options:[{label:"Stable Diffusion 3.5 Large",value:"sd3.5-large"},{label:"Stable Diffusion 3.5 Large Turbo",value:"sd3.5-large-turbo"},{label:"Stable Diffusion 3.5 Medium",value:"sd3.5-medium"},{label:"Stable Diffusion 3.5 Flash",value:"sd3.5-flash"}],getValue:e=>e.model},{path:"promptObject.prompt",label:"Prompt",type:"textarea",required:!0,description:"Describe the image you want to generate",placeholder:"A serene mountain landscape with crystal clear lake reflection",getValue:e=>e.promptObject?.prompt},{path:"promptObject.negativePrompt",label:"Negative Prompt",type:"textarea",required:!1,description:"Describe what you want to avoid in the image",placeholder:"blurry, low quality, distorted",getValue:e=>e.promptObject?.negativePrompt},{path:"promptObject.aspect_ratio",label:"Aspect Ratio",type:"select",required:!1,description:"Aspect ratio for text-to-image generation (ignored when a reference image is provided)",options:[{label:"1:1 (Square)",value:"1:1"},{label:"16:9 (Widescreen)",value:"16:9"},{label:"21:9 (Ultra-wide)",value:"21:9"},{label:"2:3 (Portrait)",value:"2:3"},{label:"3:2 (Landscape)",value:"3:2"},{label:"4:5 (Portrait Social)",value:"4:5"},{label:"5:4 (Landscape Social)",value:"5:4"},{label:"9:16 (Vertical Video)",value:"9:16"},{label:"9:21 (Ultra-tall)",value:"9:21"}],getValue:e=>e.promptObject?.aspect_ratio},{path:"promptObject.seed",label:"Seed",type:"number",required:!1,description:"Random seed for reproducibility (0-4294967294). Omit or pass 0 for a random seed",placeholder:"42",min:0,max:4294967294,getValue:e=>e.promptObject?.seed},{path:"promptObject.style_preset",label:"Style Preset",type:"select",required:!1,description:"Artistic style preset",options:[{label:"None",value:""},{label:"3D Model",value:"3d-model"},{label:"Analog Film",value:"analog-film"},{label:"Anime",value:"anime"},{label:"Cinematic",value:"cinematic"},{label:"Comic Book",value:"comic-book"},{label:"Digital Art",value:"digital-art"},{label:"Enhance",value:"enhance"},{label:"Fantasy Art",value:"fantasy-art"},{label:"Isometric",value:"isometric"},{label:"Line Art",value:"line-art"},{label:"Low Poly",value:"low-poly"},{label:"Modeling Compound",value:"modeling-compound"},{label:"Neon Punk",value:"neon-punk"},{label:"Origami",value:"origami"},{label:"Photographic",value:"photographic"},{label:"Pixel Art",value:"pixel-art"},{label:"Tile Texture",value:"tile-texture"}],getValue:e=>e.promptObject?.style_preset},{path:"promptObject.output_format",label:"Output Format",type:"select",required:!1,description:"Format of the generated image",options:[{label:"PNG (High Quality)",value:"png"},{label:"JPEG (Smaller Size)",value:"jpeg"},{label:"WebP (Modern)",value:"webp"}],getValue:e=>e.promptObject?.output_format},{path:"promptObject.image",label:"Reference Image (image-to-image)",type:"text",required:!1,description:"Path to reference image for image-to-image generation (from Asset API)",placeholder:"development/images/reference.png",getValue:e=>e.promptObject?.image},{path:"promptObject.strength",label:"Strength",type:"number",required:!1,description:"Influence of the reference image (0.0-1.0). Required when an image is provided",placeholder:"0.9",min:0,max:1,step:.1,getValue:e=>e.promptObject?.strength}]}),"\n",(0,n.jsx)(t.h2,{id:"response-format",children:"Response Format"}),"\n",(0,n.jsx)(l.A,{language:"json",children:'{\n"aiRecord": {\n  "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",\n  "userId": "user-12345",\n  "teamId": "team-67890",\n  "teamUser": {\n    "teamId": "team-67890",\n    "userId": "user-12345",\n    "userName": "John Doe",\n    "userAvatar": "https://example.com/avatar.jpg",\n    "status": "ACTIVE",\n    "role": "ADMIN",\n    "creditLimit": 100000000,\n    "usedCredit": 65000,\n    "createdAt": "2025-01-01T00:00:00.000Z",\n    "createdBy": "SYSTEM",\n    "updatedAt": "2025-01-15T10:30:00.000Z",\n    "updatedBy": "SYSTEM"\n  },\n  "model": "sd3.5-large",\n  "type": "IMAGE_GENERATOR",\n  "metadata": null,\n  "rating": null,\n  "feedback": null,\n  "conversationId": null,\n  "status": "SUCCESS",\n  "createdAt": "2025-01-15T10:30:00.000Z",\n  "aiRecordDetail": {\n    "promptObject": {\n      "prompt": "A serene mountain landscape with crystal clear lake reflection",\n      "negativePrompt": "blurry, low quality, distorted",\n      "aspect_ratio": "16:9",\n      "seed": 42,\n      "style_preset": "photographic",\n      "output_format": "png"\n    },\n    "resultObject": [\n      "development/images/2025_01_15_10_30_15_001_mountain_landscape.png"\n    ],\n    "responseObject": {}\n  },\n  "additionalData": null,\n  "temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_10_30_15_001_mountain_landscape.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=EXAMPLE_CREDENTIAL&X-Amz-Date=20250115T103000Z&X-Amz-Expires=604800&X-Amz-Signature=example_signature&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"\n}\n}'}),"\n",(0,n.jsx)(t.h2,{id:"use-cases",children:"Use Cases"}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Professional print media"}),": High-quality, photorealistic outputs (",(0,n.jsx)(t.code,{children:"sd3.5-large"}),")"]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Rapid concept iteration"}),": Fast, prompt-faithful exploration of ideas (",(0,n.jsx)(t.code,{children:"sd3.5-large-turbo"}),", ",(0,n.jsx)(t.code,{children:"sd3.5-flash"}),")"]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Balanced everyday generation"}
1),": Efficient high-performance visuals (",(0,n.jsx)(t.code,{children:"sd3.5-medium"}),")"]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Image-to-image transformation"}),": Restyle or transform a reference image with a text prompt"]}),"\n"]})]})}function m(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(x,{...e})}):x(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.