Downloads ยท 30 days
0
OpenTrouter/Trouter-Imagine-1
Trouter-Imagine-1 is a text-to-image model from OpenTrouter. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as apache-2.0.
Downloads ยท 30 days
0
Access
Public
Updated Nov 3, 2025
Repo size
2.6 MB
Likes
3
Public
Click a slice to open those files.
.png195 KB ยท 56%
From the Hugging Face model README

High-quality text-to-image generation powered by advanced diffusion models
๐ Quick Start โข ๐ Documentation โข ๐ก Examples โข ๐ฏ Features
Trouter-Imagine-1 is a high-quality text-to-image generation model based on diffusion architecture, licensed under Apache 2.0. This model transforms natural language descriptions into detailed, photorealistic images across a wide variety of styles and subjects.
Based on latent diffusion model architecture with the following specifications:
Creative Content Generation
Professional Applications
Educational & Research
from diffusers import StableDiffusionPipeline
import torch
# Load the model
model_id = "OpenTrouter/Trouter-Imagine-1"
pipe = StableDiffusionPipeline.from_pretrained(
model_id,
torch_dtype=torch.float16,
safety_checker=None
)
pipe = pipe.to("cuda")
# Generate an image
prompt = "a serene mountain landscape at sunset, oil painting style, highly detailed"
negative_prompt = "blurry, low quality, distorted"
image = pipe(
prompt=prompt,
negative_prompt=negative_prompt,
num_inference_steps=30,
guidance_scale=7.5,
height=1024,
width=1024
).images[0]
image.save("output.png")
from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler
import torch
model_id = "OpenTrouter/Trouter-Imagine-1"
pipe = StableDiffusionPipeline.from_pretrained(
model_id,
torch_dtype=torch.float16
)
# Use DPM-Solver for faster inference
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
pipe = pipe.to("cuda")
# Enable memory optimizations
pipe.enable_attention_slicing()
pipe.enable_vae_slicing()
# Generate with custom seed for reproducibility
generator = torch.Generator("cuda").manual_seed(42)
prompt = "futuristic cyberpunk city at night, neon lights, rainy streets, cinematic"
negative_prompt = "daytime, sunny, bright, washed out, overexposed"
image = pipe(
prompt=prompt,
negative_prompt=negative_prompt,
num_inference_steps=25,
guidance_scale=8.0,
height=768,
width=768,
generator=generator,
num_images_per_prompt=1
).images[0]
image.save("cyberpunk_city.png")
import torch
from diffusers import StableDiffusionPipeline
model_id = "OpenTrouter/Trouter-Imagine-1"
pipe = StableDiffusionPipeline.from_pretrained(
model_id,
torch_dtype=torch.float16
).to("cuda")
prompts = [
"a majestic lion in the savanna",
"a cozy cabin in the snowy mountains",
"a vibrant coral reef underwater scene",
"a steampunk airship in the clouds"
]
for i, prompt in enumerate(prompts):
image = pipe(
prompt=prompt,
num_inference_steps=30,
guidance_scale=7.5
).images[0]
image.save(f"batch_output_{i}.png")
import requests
from PIL import Image
import io
API_URL = "https://api-inference.huggingface.co/models/OpenTrouter/Trouter-Imagine-1"
headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.content
image_bytes = query({
"inputs": "astronaut riding a horse on mars, photorealistic, 4k",
"parameters": {
"negative_prompt": "cartoon, anime, low quality",
"num_inference_steps": 30,
"guidance_scale": 7.5
}
})
image = Image.open(io.BytesIO(image_bytes))
image.save("astronaut_mars.png")
| Parameter | Type | Default | Description |
|---|---|---|---|
prompt | string | required | The text description of the desired image |
negative_prompt | string | "" | What to avoid in the generation |
num_inference_steps | int | 30 | Number of denoising steps (20-50 recommended) |
guidance_scale | float | 7.5 | How strictly to follow the prompt (5.0-15.0) |
width | int | 512 | Output image width (64-1024, multiples of 8) |
height | int | 512 | Output image height (64-1024, multiples of 8) |
seed | int | random | Random seed for reproducibility |
Inference Steps:
Guidance Scale:
Resolution:
Good prompt structure:
[Subject] + [Action/Setting] + [Style/Quality] + [Details]
Examples:
โ Bad: "a dog"
โ
Good: "a golden retriever puppy playing in a flower field, spring afternoon, soft lighting, professional photography"
โ Bad: "castle"
โ
Good: "medieval stone castle on a cliff overlooking the ocean, dramatic sunset, fantasy art style, highly detailed"
โ Bad: "portrait"
โ
Good: "portrait of an elderly wizard with a long white beard, wise expression, wearing purple robes, oil painting style, rembrandt lighting"
Quality Modifiers:
Style Keywords:
Lighting:
Camera/Composition:
Common negative prompt additions:
blurry, low quality, distorted, deformed, ugly, bad anatomy,
extra limbs, mutation, disfigured, bad proportions, watermark,
signature, text, oversaturated, underexposed
# For GPUs with limited VRAM
pipe.enable_attention_slicing()
pipe.enable_vae_slicing()
pipe.enable_sequential_cpu_offload()
# Or use model CPU offloading
pipe.enable_model_cpu_offload()
from diffusers import DPMSolverMultistepScheduler
# Use faster scheduler
pipe.scheduler = DPMSolverMultistepScheduler.from_config(
pipe.scheduler.config
)
# Reduce inference steps
image = pipe(prompt, num_inference_steps=20).images[0]
# Use float32 for better quality (if VRAM allows)
pipe = StableDiffusionPipeline.from_pretrained(
model_id,
torch_dtype=torch.float32
)
# Increase steps and guidance
image = pipe(
prompt,
num_inference_steps=50,
guidance_scale=9.0
).images[0]
This model should not be used to generate:
| Metric | Score |
|---|---|
| FID Score | 12.3 |
| IS Score | 28.5 |
| CLIP Score | 0.31 |
| User Preference | 7.8/10 |
@misc{trouter-imagine-1,
title={Trouter-Imagine-1: Open Source Text-to-Image Generation},
author={OpenTrouter Team},
year={2025},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/OpenTrouter/Trouter-Imagine-1}},
}
This model is released under the Apache License 2.0.
You are free to:
Conditions:
See the LICENSE file for full details.
For questions, issues, or collaboration opportunities:
Built on the foundation of open-source diffusion research and the Hugging Face ecosystem. Thanks to the AI research community for advancing generative models.
Version: 1.0
Last Updated: November 2025
Status: Production Ready