Skip to main content

Stable Diffusion XL - Image Text Editor

Transform and enhance your images using natural language descriptions with Stability AI's powerful Stable Diffusion XL model. This advanced text-based image editor allows you to modify existing images by describing the changes you want to see, from subtle style adjustments to dramatic transformations.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_EDITOR
modelstringYesAI model identifier. Must be stable-diffusion-xl-1024-v1-0
promptObjectobjectYesConfiguration object containing all image editing parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
imageUrlstringYesPath to the source image to be edited-
promptstringYesText description of the desired image transformation-
samplesnumberYesNumber of outputs1
cfg_scalenumberNoConfiguration scale for prompt adherence (0-35)7
stepsnumberNoNumber of inference steps (10-50)30
seednumberNoRandom seed for reproducibility (0-4294967295)0
clip_guidance_presetstringNoCLIP guidance preset for style consistencyNONE
image_strengthnumberNoStrength of original image influence (0-1)0.35
step_schedule_startnumberNoStarting point in diffusion process (0.0-1.0)0.65
step_schedule_endnumberNoEnding point in diffusion process (0.0-1.0)auto
samplerstringNoSampling algorithm to useauto
style_presetstringNoPredefined style to applyauto

CLIP Guidance Presets

PresetDescription
NONENo additional guidance (fastest processing)
FAST_BLUEFast processing with blue color emphasis
FAST_GREENFast processing with green color emphasis
SIMPLEBasic guidance for improved coherence
SLOWDetailed guidance for maximum quality
SLOWERMost detailed guidance (longest processing)
SLOWESTMaximum quality guidance

Sampler Options

SamplerDescription
DDIMDenoising Diffusion Implicit Models
DDPMDenoising Diffusion Probabilistic Models
K_DPMPP_2MDPM++ 2M Karras scheduler
K_DPMPP_2S_ANCESTRALDPM++ 2S Ancestral scheduler
K_DPM_2DPM 2 scheduler
K_DPM_2_ANCESTRALDPM 2 Ancestral scheduler
K_EULEREuler scheduler
K_EULER_ANCESTRALEuler Ancestral scheduler
K_HEUNHeun scheduler
K_LMSLinear multistep scheduler

Style Presets

StyleDescription
3d-modelThree-dimensional modeling style
analog-filmVintage analog film aesthetic
animeJapanese anime and manga style
cinematicMovie and film-like quality
comic-bookComic book illustration style
digital-artModern digital artwork style
enhanceGeneral enhancement and improvement
fantasy-artFantasy and magical themes
line-artClean line art and illustrations
low-polyLow polygon 3D style
modeling-compoundClay modeling appearance
neon-punkCyberpunk with neon aesthetics
origamiPaper folding art style
photographicRealistic photographic style
pixel-artRetro pixel art style
tile-textureSeamless texture patterns

Code Examples

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_EDITOR",
"model": "stable-diffusion-xl-1024-v1-0",
"promptObject": {
"imageUrl": "development/images/2025_02_16_15_42_40_711_human.jpg",
"prompt": "transform into a watercolor painting style with soft brushstrokes and vibrant colors",
"samples": 1,
"cfg_scale": 8,
"steps": 50,
"seed": 42,
"clip_guidance_preset": "SIMPLE",
"image_strength": 0.4,
"step_schedule_start": 0.65,
"step_schedule_end": 0.01,
"sampler": "K_DPMPP_2M",
"style_preset": "digital-art"
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Path to the source image to be edited
Describe the transformation you want to apply
Configuration scale for prompt adherence (0-35)
Number of inference steps (10-50)
Random seed for reproducibility (0-4294967295)
CLIP guidance preset for style consistency
Original image influence (0-1, lower = more change)
Starting point in diffusion process (0.0-1.0)
Ending point in diffusion process (0.0-1.0)
Sampling algorithm to use
Predefined style to apply

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_EDITOR",
"model": "stable-diffusion-xl-1024-v1-0",
"promptObject": {
"imageUrl": "development/images/2025_02_16_15_42_40_711_human.jpg",
"prompt": "transform into a watercolor painting style with soft brushstrokes and vibrant colors",
"cfg_scale": 8,
"steps": 50,
"seed": 42,
"clip_guidance_preset": "SIMPLE",
"image_strength": 0.4,
"step_schedule_start": 0.65,
"step_schedule_end": 0.01,
"sampler": "K_DPMPP_2M",
"samples": 1,
"style_preset": "digital-art"
}
}'

Response Format

{
"aiRecord": {
"uuid": "e8e3d645-d5a4-4c18-975b-95395d3b49e1",
"userId": "c937fbcc-fa8f-4565-a440-c4d87f56fcb2",
"teamId": "a4e176b2-dabb-451e-9c58-62b451fa9630",
"model": "stable-diffusion-xl-1024-v1-0",
"type": "IMAGE_EDITOR",
"status": "SUCCESS",
"createdAt": "2025-10-24T08:00:44.752Z",
"aiRecordDetail": {
"promptObject": {
"imageUrl": "development/images/2025_02_16_15_42_40_711_human.jpg",
"prompt": "transform into a watercolor painting style with soft brushstrokes and vibrant colors",
"cfg_scale": 8,
"steps": 50,
"seed": 42,
"clip_guidance_preset": "SIMPLE",
"image_strength": 0.4,
"step_schedule_start": 0.65,
"step_schedule_end": 0.01,
"sampler": "K_DPMPP_2M",
"samples": 1,
"style_preset": "digital-art"
},
"resultObject": [
"development/images/2025_10_24_15_00_52_401_480067.jpg"
]
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_10_24_15_00_52_401_480067.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256..."
}
}

Use Cases

  • Style Transfer: Transform photos into artistic styles (watercolor, oil painting, sketch)
  • Mood Enhancement: Adjust lighting, atmosphere, and emotional tone
  • Creative Photography: Season changes, genre switching, artistic effects
  • Commercial Content: Product visualization, brand adaptation, marketing materials
  • Digital Art: Concept development, character design, environment creation

Tips for Best Results

  1. Image Strength Settings:

    • Use 0.2-0.4 for dramatic style changes
    • Use 0.5-0.7 for moderate adjustments
    • Use 0.8-1.0 for subtle enhancements
  2. Quality Optimization:

    • Use 30-50 steps for high quality
    • Higher CFG scale for more prompt adherence
    • SLOW/SLOWER presets for professional work
  3. Prompt Guidelines:

    • Be specific about style and technique
    • Include lighting and mood descriptions
    • Use artistic terminology for better results
Content Guidelines

All generated content is subject to safety filters and content policies.