Image to Image
image-to-imageTransform existing images based on text prompts. Takes an input image and modifies it according to the provided prompt. Returns a request ID that can be used with fetch-image to retrieve results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Output image width in pixels (512-1024). | |
| height | No | Output image height in pixels (512-1024). | |
| prompt | Yes | Text description of how to transform the image. | |
| samples | No | Number of images to generate (1-4). | |
| webhook | No | URL to receive webhook notification when generation completes. | |
| model_id | Yes | The model ID to use for image transformation. | |
| strength | No | Transformation strength (0-1). Higher values mean more change from the original. | |
| track_id | No | Custom tracking ID for the request. | |
| init_image | Yes | Input image URL or base64 string to transform. | |
| aspect_ratio | No | Aspect ratio for the output image. | |
| negative_prompt | No | Text describing what to avoid in the output. |