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
import requests
api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/flux-1.1-pro-ultra"
# Prepare data and files
data = {}
files = {}
data['raw'] = False
data['seed'] = "1234"
data['prompt'] = "A luxurious, modern living room with a grand fireplace as the centerpiece. Large windows look out onto a dark, rainy night, where wet tree branches glisten under the night sky. The room is decorated with plush, dark blue sofas and warm amber lighting that casts a cozy glow, contrasting with the cool, moody weather outside. The floor is a polished dark wood, and raindrops gently streak down the windows, enhancing the atmosphere of comfort and serenity."
data['aspect_ratio'] = "1:1"
data['output_format'] = "jpg"
data['safety_tolerance'] = 2
headers = {'x-api-key': api_key}
response = requests.post(url, data=data, files=files, headers=headers)
print(response.content) # The response is the generated image
Generate less processed, more natural-looking images
Random seed. Set for reproducible generation
Text prompt for image generation
Aspect ratio for the generated image.
Allowed values:
Format of the output images.
Allowed values:
Safety tolerance, 1 is most strict and 6 is most permissive
min : 1,
max : 6
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.
The Flux1.1 Pro Ultra is the latest advancement in AI-driven image generation technology, designed to meet the needs of creators seeking high-quality visuals without compromising speed. This innovative model supports up to 4MP image resolutions, delivering remarkable detail and clarity in every output.
4x Higher Resolution: Generate stunning images at up to 4MP resolution, providing exceptional detail and clarity.
Lightning-Fast Generation: Create high-resolution images in just few seconds, perfect for rapid iteration and professional workflows.
The Ultra Mode enhances image generation, ensuring that prompt adherence is not sacrificed. Performance benchmarks indicate that Flux1.1 Pro Ultra is over 2.5 times faster than other high-resolution models, making it an ideal choice for professionals who require both speed and quality.
Raw Mode for Natural Results: This mode captures the genuine feel of candid photography, reducing synthetic artifacts and enhancing the realism of human subjects and nature photography. It provides a less processed, more natural aesthetic.
Prompt Adherence: The model ensures perfect adherence to user prompts, maintaining exceptional quality even at high resolutions
Concept Art: Perfect for artists looking to create high-resolution concept art with intricate details and lifelike textures.
Social Media Content: Create eye-catching visuals for social media campaigns that require crisp and clear imagery to attract attention.
Print Media: Create stunning visuals for posters, magazines, and other printed materials that require high-resolution imagery.
Educational Materials: Produce high-resolution images for textbooks, presentations, and educational resources.
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
Story Diffusion turns your written narratives into stunning image sequences.
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
The SDXL model is the official upgrade to the v1.5 model. The model is released as open-source software