Sign in

Image-to-image masking

documented

Generate an image based on a mask for masking/editing tasks.

POST /v1/generation/{engine_id}/image-to-image/maskingGenerationno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.stability.ai/v1/generation/{{$engine_id}}/image-to-image/masking" \
  -X POST \
  -H "Authorization: Bearer {{STABILITY_API_KEY}}" \
  -H "Accept: application/json" \
  -F "init_image=@{{$init_image_path}}" \
  -F "mask_source={{$mask_source}}" \
  -F "text_prompts[0][text]={{$prompt_text}}" \
  -F "text_prompts[0][weight]={{$prompt_weight}}" \
  -F "cfg_scale={{$cfg_scale}}" \
  -F "clip_guidance_preset={{$clip_preset}}" \
  -F "sampler={{$sampler}}" \
  -F "samples={{$samples}}" \
  -F "seed={{$seed}}" \
  -F "steps={{$steps}}" \
  -F "style_preset={{$style_preset}}"
Image-to-image masking · Stability AI · OpenIntegrations