Sign in

Image to image

documented

Generate a new image from an input image and prompt using the specified engine.

POST /v1/generation/{engine_id}/image-to-imageGenerationno 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" \
  -X POST \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {{STABILITY_API_KEY}}" \
  -F 'text_prompts=[{"text":"{{$prompt}}"}]' \
  -F 'init_image=@{{$init_image_path}}' \
  -F 'image_strength={{$image_strength}}' \
  -F 'width={{$width}}' \
  -F 'height={{$height}}' \
  -F 'steps={{$steps}}' \
  -F 'cfg_scale={{$cfg_scale}}'