Skip to content

Image Generation with Flux Models (Coming Soon)

⚠️ This guide is for preview only! Flux image generation models will be available in the near future.

Generate awesome images with flux-realistic or flux-illustrate.

Example: Realistic Image

import requests
url = "https://api.deeprequest.io/v1/images/generations"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY"
}
data = {
"model": "flux-realistic",
"prompt": "A city skyline at dusk.",
"n": 1,
"size": "1024x1024"
}
response = requests.post(url, json=data, headers=headers)
print(response.json()["data"][0]["url"])

Example: Stylized Illustration

import requests
url = "https://api.deeprequest.io/v1/images/generations"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY"
}
data = {
"model": "flux-illustrate",
"prompt": "A magical forest with glowing mushrooms",
"n": 1,
"size": "1024x1024",
"style": "fantasy" # Options: realistic, anime, fantasy, etc.
}
response = requests.post(url, json=data, headers=headers)
print(response.json()["data"][0]["url"])

Customize It

  • Change size parameter for different image dimensions (e.g., “512x512”, “1024x1024”)
  • Adjust n parameter to generate multiple images at once
  • Use detailed prompts for better results
  • Add negative prompts with negative_prompt parameter to specify what to avoid