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.

POST
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
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


promptstr *

Describe the change you want in the image. For playful edits, try 'Make the bubbles cat-shaped'.


image_urlstr *

URL of the image to be edited. Use a clear source like S3 for best results.


sizeenum:str ( default: adaptive ) Affects Pricing

Specifies output size behavior. Choose 'square' for social media or 'original' for no cropping.

Allowed values:


seedint ( default: 42 )

Seed ensures consistent outputs. Use 42 for experiments or 1987 for varied results.

min : 1,

max : 999999


guidance_scalefloat ( default: 5.5 ) Affects Pricing

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

  1. •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.
  2. •Core Parameters
    • prompt (required): A brief but descriptive instruction
    • image_url (required): Direct link to your input image
    • size (optional): adaptive (default), square, or original
    • 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 Casesizeseedguidance_scaleTips
E-commerce & Productoriginal12348.0Remove backgrounds, add lifestyle props
Social Media & Marketingsquare20237.5Enforce branded colors, tight framing
Concept Art & Designadaptive55555.0Favor creative variations, loose rules
Photo Retouch & Restoreoriginal429.0Strict 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

  1. •Lock the seed when comparing variations.
  2. •Start with moderate guidance (5 to 6), then adjust higher for fidelity or lower for exploration.
  3. •Batch edits by iterating seeds in a loop via API.
  4. •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 to adaptive.
  • •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.

Cookie settings

We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept all", you consent to our use of cookies.