stable-diffusion-xl-1024-v1-0
POST {{baseUrl}}/v1/generation/:engine_id/image-to-image
Modify an image based on a text prompt
Request Body
[{"name"=>"text_prompts", "value"=>"[object Object]", "datatype"=>"string"}, {"name"=>"init_image", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"init_image_mode", "value"=>"IMAGE_STRENGTH", "datatype"=>"string"}, {"name"=>"image_strength", "value"=>"0.35", "datatype"=>"string"}, {"name"=>"step_schedule_start", "value"=>"0.65", "datatype"=>"string"}, {"name"=>"step_schedule_end", "value"=>"<number>", "datatype"=>"string"}, {"name"=>"cfg_scale", "value"=>"7", "datatype"=>"number"}, {"name"=>"clip_guidance_preset", "value"=>"NONE", "datatype"=>"string"}, {"name"=>"sampler", "value"=>"K_DPM_2_ANCESTRAL", "datatype"=>"string"}, {"name"=>"samples", "value"=>"1", "datatype"=>"number"}, {"name"=>"seed", "value"=>"0", "datatype"=>"number"}, {"name"=>"steps", "value"=>"30", "datatype"=>"number"}, {"name"=>"style_preset", "value"=>"digital-art", "datatype"=>"string"}, {"name"=>"extras", "value"=>"[object Object]", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Organization | string | Allows for requests to be scoped to an organization other than the user's default. If not provided, the user's default organization will be used. | |
Stability-Client-ID | string | Used to identify the source of requests, such as the client application or sub-organization. Optional, but recommended for organizational clarity. | |
Stability-Client-Version | string | Used to identify the version of the application or service making the requests. Optional, but recommended for organizational clarity. | |
Content-Type | string |