Sign in

Edit - Search and Replace

documented

Replace specific content or features within an image.

POST /v2beta/stable-image/edit/search-and-replaceStable Imageno 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/v2beta/stable-image/edit/search-and-replace" \
  -X POST \
  -H "Authorization: Bearer {{STABILITY_API_KEY}}" \
  -H "Accept: application/json" \
  -F "image=@{{$image_path}};type=image/png" \
  -F "prompt=Replace {{$search_prompt}} with {{$replace_prompt}}" \
  -F "output_format={{$output_format}}"