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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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/ideogram-3-remix"
# Request payload
data = {
"prompt": "Majestic waterfall under moonlight",
"color_palette": {
# Either provide a named palette
"name": "MELON", # required, mutually exclusive with "members"
# Or provide custom colors
"members": [ # required, mutually exclusive with "name"
{
"color_hex": "", # required if using "members"
"color_weight": 0 # optional
}
]
},
"image": image_url_to_base64("https://segmind-resources.s3.amazonaws.com/output/5cdc7a1e-14a5-4cdd-9b0f-ed7097114933-e1f80202-4999-4cb7-b89e-ed378cfc2b5a.jpeg"), # Or use image_file_to_base64("IMAGE_PATH")
"image_weight": 50,
"seed": 6522,
"resolution": "1024x1024",
"rendering_speed": "DEFAULT",
"magic_prompt": "AUTO",
"negative_prompt": "No people, no buildings",
"style_codes": [],
"style_type": "GENERAL",
"style_reference_images": []
}
headers = {'x-api-key': api_key}
response = requests.post(url, json=data, headers=headers)
print(response.content) # The response is the generated image
Attributes
Guide image creation. Use detailed prompts like 'majestic waterfall under moonlight' for specific themes.
Initial image for creation. Opt for images matching the desired theme or scene.
Sets the influence of the base image. Increase for strong influence, reduce for subtle impacts.
Ensures consistent outputs. Use specific seeds for reproducible results.
Defines output resolution. Use high resolution for detail, low for speed.
Allowed values:
Defines aspect ratio. Use 1x1 for square, others for different dimensions.
Allowed values:
Balances speed and quality. Use 'QUALITY' for detail, 'TURBO' for speed.
Allowed values:
Enhances prompts. Use 'ON' for enriched results or 'OFF' for manual input.
Allowed values:
Excludes elements from results. Specify unwanted features here.
Apply style codes for themes. Use codes for specific styles or moods.
Choose overarching style. 'REALISTIC' for lifelike, 'DESIGN' for abstract.
Allowed values:
Add sample images for style influence. Use relevant samples that fit size limits.
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.
Exploring Ideogram 3 Remix for Creative and Technical Excellence
Ideogram 3 Remix, a feature of the Ideogram 3.0 suite, is a powerful tool for image generation and transformation, ideal for developers and creators. Its advanced capabilities allow users to remix images by referencing an original as a base, adjusting the "image weight" to control the similarity to the parent image from highly varied (image weight closer to 1) to closely matched (image weight approaching 100).
Capabilities and Applications
The flexibility of Ideogram 3 Remix supports various input and output formats like JPEG, PNG, and WebP, and offers extensive customization of style and resolution. It operates both through an intuitive graphical user interface (GUI) and programmatically via an API, making it easy to integrate into automated workflows. Creators can quickly iterate on their designs, prototyping different visual styles or exploring multiple versions of marketing material. This feature is particularly beneficial for creative tasks where multiple design iterations are necessary.
Tips for Maximization
To leverage Ideogram 3 Remix effectively, it's crucial to master the image weight parameter. A lower weight results in greater variation, which is essential for creative exploration, while a higher weight preserves most of the original attributes, aiding in focused refinements. By editing auto-generated prompts, users can precisely control the image transformation, enhancing creative direction. Automation via API is recommended for large-scale production needs, streamlining batch processing and integration into existing design pipelines.
Utilize Ideogram 3 Remix to enhance productivity and elevate the creativity of your visual outputs, whether you're iterating on a singular design concept or producing a range of custom assets.
Other Popular Models
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

insta-depth
InstantID aims to generate customized images with various poses or styles from only a single reference ID image while ensuring high fidelity

sdxl-inpaint
This model is capable of generating photo-realistic images given any text input, with the extra capability of inpainting the pictures by using a mask

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
