SeedEdit V3 Image to Image
SeedEdit 3.0 enables seamless, high-quality image edits through advanced AI-driven techniques.
API
If you're looking for an API, you can choose from your desired programming language.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import requests
import base64
# Use this function to convert an image file from the filesystem to base64
def image_file_to_base64(image_path):
with open(image_path, 'rb') as f:
image_data = f.read()
return base64.b64encode(image_data).decode('utf-8')
# Use this function to fetch an image from a URL and convert it to base64
def image_url_to_base64(image_url):
response = requests.get(image_url)
image_data = response.content
return base64.b64encode(image_data).decode('utf-8')
# Use this function to convert a list of image URLs to base64
def image_urls_to_base64(image_urls):
return [image_url_to_base64(url) for url in image_urls]
api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/seededit-v3"
# Request payload
data = {
"prompt": "Replace the background with a sunny beach scene, keep lighting consistent.",
"image_url": "https://segmind-resources.s3.amazonaws.com/input/310c635e-98ec-413e-90bd-a3958c0f94ce-03e6053a-24ed-4466-84b7-a0878e211fc0.jpeg",
"size": "adaptive",
"seed": 42,
"guidance_scale": 5.5
}
headers = {'x-api-key': api_key}
response = requests.post(url, json=data, headers=headers)
print(response.content) # The response is the generated image
Attributes
Describe the change you want in the image. For playful edits, try 'Make the bubbles cat-shaped'.
URL of the image to be edited. Use a clear source like S3 for best results.
Specifies output size behavior. Choose 'square' for social media or 'original' for no cropping.
Allowed values:
Seed ensures consistent outputs. Use 42 for experiments or 1987 for varied results.
min : 1,
max : 999999
Provides control over prompt adherence. Use a higher value, like 9, for strict guidance.
min : 1,
max : 10
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Resources to get you started
Everything you need to know to get the most out of SeedEdit V3 Image to Image
SeedEdit 3.0: Quickstart Guide to High-Fidelity Image-to-Image Edits
Unlock the full potential of SeedEdit 3.0 in just a few steps. Leverage its Vision-Language Model and causal diffusion network to perform precise, semantically aware edits on real-world images.
1. Getting Started
- •Prepare your assets
• Host your source image (JPEG/PNG) on a stable HTTP/HTTPS endpoint (e.g., S3).
• Draft a concise prompt describing your desired change. - •Core Parameters
•prompt
(required): A brief but descriptive instruction
•image_url
(required): Direct link to your input image
•size
(optional):adaptive
(default),square
, ororiginal
•seed
(optional): Integer 1–999999 for reproducibility (default 42)
•guidance_scale
(optional): 1–10 float to balance creativity/fidelity (default 5.5)
2. Parameter Presets by Use Case
Use Case | size | seed | guidance_scale | Tips |
---|---|---|---|---|
E-commerce & Product | original | 1234 | 8.0 | Remove backgrounds, add lifestyle props |
Social Media & Marketing | square | 2023 | 7.5 | Enforce branded colors, tight framing |
Concept Art & Design | adaptive | 5555 | 5.0 | Favor creative variations, loose rules |
Photo Retouch & Restore | original | 42 | 9.0 | Strict adherence for clean restorations |
- •adaptive: Preserve original aspect ratio
- •square: Ideal for Instagram or Facebook feeds
- •original: No cropping, maintains full resolution
3. Crafting Effective Prompts
- •Be specific: “Turn this daytime café into a twilight neon scene.”
- •Use adjectives: “soft,” “vibrant,” “gritty” to guide style.
- •Invoke actions: “remove,” “add,” “transform.”
- •Playful tweaks: “Make the bubbles cat-shaped.”
4. Workflow Best Practices
- •Lock the seed when comparing variations.
- •Start with moderate guidance (5 to 6), then adjust higher for fidelity or lower for exploration.
- •Batch edits by iterating seeds in a loop via API.
- •Review low-res previews before full-scale rendering to save time.
5. Troubleshooting & Tips
- •Artifacts: If you see unwanted noise, slightly lower
guidance_scale
or switch toadaptive
. - •Overly strict results: Reduce
guidance_scale
under 4. - •Inconsistent crops: Switch to
original
size to preserve framing.
By fine-tuning these parameters and prompts, you’ll achieve stunning, consistent edits, whether you’re retouching photos, crafting concept art, or generating polished marketing assets. Enjoy seamless, high-quality results with SeedEdit 3.0!
Other Popular Models
Discover other models you might be interested in.
sdxl-img2img
SDXL Img2Img is used for text-guided image-to-image translation. This model uses the weights from Stable Diffusion to generate new images from an input image using StableDiffusionImg2ImgPipeline from diffusers

sdxl1.0-txt2img
The SDXL model is the official upgrade to the v1.5 model. The model is released as open-source software

codeformer
CodeFormer is a robust face restoration algorithm for old photos or AI-generated faces.

sd2.1-faceswapper
Take a picture/gif and replace the face in it with a face of your choice. You only need one image of the desired face. No dataset, no training
