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
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-reframe"
# Request payload
data = {
"image": image_url_to_base64("https://segmind-resources.s3.amazonaws.com/output/1a759c90-ef73-43dc-b4c0-58c1ae13d2e4-01961465-ffee-4df5-a1cc-4f4fe232f434.png"), # Or use image_file_to_base64("IMAGE_PATH")
"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
}
]
},
"resolution": "1024x1024",
"rendering_speed": "DEFAULT",
"style_codes": [],
"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
Image Url used as base input. Use high-resolution links for optimal results.
Seed for random operations. Use '42' for reproducibility in testing.
Choose output resolution. '1024x1024' for balance of quality and efficiency.
Allowed values:
Sets rendering speed. 'DEFAULT' works well for most tasks.
Allowed values:
Apply style codes here. Try ['Modern','Aesthetic'] for artistic results.
Upload style reference images. Use your favorite artworks for personalization.
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.
Leveraging Ideogram 3.0's Reframe Feature for Enhanced Image Adaptation
Ideogram 3.0, introduced in March 2025, ushers in a new era of AI-driven image generation, with its Reframe feature providing notable advantages for developers and content creators. The Reframe tool distinguishes itself by transforming square images into varying resolutions while retaining the core elements of the original, a process that cloaks computational ingenuity in effortless usability.
The Reframe feature excels in two pivotal areas: It extends images seamlessly by blending new creative components with existing visuals, and it adapts resolutions to suit multiple aspect ratios, empowering creators to produce content optimized for diverse platforms. This flexibility is complemented by compatibility with popular formats like JPEG, PNG, and WebP, accommodating varied workflow needs.
For developers, Reframe offers significant opportunities for cross-platform content adaptation, facilitating the effortless adjustment of images for platforms such as Instagram and YouTube. Its capacity to support responsive design also ensures that web assets can dynamically conform to device specifications.
Creators will find Reframe invaluable for its ability to creatively expand imagery and adapt it for both digital and print mediums. This feature’s prowess in video production settings further underscores its versatility, enabling transitions from static images to dynamic video content.
To maximize Reframe’s potential, users should provide clear descriptive prompts for image extensions, emphasize visual consistency from the start, and experiment with style customization to maintain a homogeneous aesthetic. Balancing quality with rendering speed and utilizing safety controls for sensitive content are also crucial practices.
In essence, Ideogram 3.0's Reframe feature stands as a transformative tool, streamlining the adaptation of visual content to meet the demands of today's multifaceted digital landscape.
Other Popular Models
sdxl-controlnet
SDXL ControlNet gives unprecedented control over text-to-image generation. SDXL ControlNet models Introduces the concept of conditioning inputs, which provide additional information to guide the image generation process

storydiffusion
Story Diffusion turns your written narratives into stunning image sequences.

idm-vton
Best-in-class clothing virtual try on in the wild

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
