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
const axios = require('axios');
const fs = require('fs');
const path = require('path');
async function toB64(imgPath) {
const data = fs.readFileSync(path.resolve(imgPath));
return Buffer.from(data).toString('base64');
}
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/qwen-image-edit-plus-multiple-angle";
const data = {
"prompt": "Turn the camera to a top-down view.",
"image_1": "toB64('https://segmind-resources.s3.amazonaws.com/input/474905fc-5396-4472-b9c2-4baf7a3a805a-cozy-living-room-sofa-against-an-empty-white-brick-wall-modern-home-decor-indoor-setting-minimalist-style-free-photo.jpg')",
"image_2": "toB64('null')",
"image_3": "toB64('null')",
"lora": "multiple_angle",
"aspect_ratio": "match_input_image",
"seed": 87568756,
"image_format": "webp",
"quality": 95,
"base64": false
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();Describe the desired image transformation. Use detailed prompts for specific angles or artistic effects.
Primary image input to base edits or generate variations. Use high-resolution images for best results.
Optional secondary image for enhanced blending. Contrast images for creative blends.
Optional third image to add complexity. Choose another perspective for more depth.
Select a predefined LoRA model for edits. Use 'multiple_angle' for varied perspectives.
Allowed values:
URL of an extra LoRA model for additional effects. Ideal for specific stylistic preferences.
URL for a third LoRA model for complex transformations. Useful for experts in multilayer editing.
Determine the output image's aspect ratio. Match input or choose based on display needs.
Allowed values:
Define seed for result reproducibility. Use -1 for new variations.
min : -1,
max : 2147483647
Choose output format for saved image. WebP is optimal for web use.
Allowed values:
Set quality of the output image (1-100). High quality suits detailed graphics.
min : 1,
max : 100
Return the image as a base64 string for easy web embedding.
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.
Qwen-Edit-2509-Multiple-Angles is an advanced image-to-image editing model that brings cinematic camera control to AI-powered image transformation. Built on Qwen/Qwen-Image-Edit-2509 and enhanced with LoRA (Low-Rank Adaptation) technology, this model enables photographers, designers, and content creators to manipulate camera perspectives dynamically—moving forward, backward, sideways, rotating angles, and switching between wide-angle and close-up views—all without requiring trigger words or complex setups.
Unlike traditional image editing tools that require manual adjustments, this model uses natural language prompts to generate professional-grade perspective shifts. Whether you're creating product mockups, architectural visualizations, or storytelling content, Qwen-Edit-2509 delivers stable, high-quality results with minimal technical overhead.
E-commerce & Product Photography: Generate multiple product angles from a single photo—show front, side, and three-quarter views without reshooting.
Architecture & Real Estate: Transform architectural renderings by adjusting camera height, distance, and perspective to showcase spaces from buyer-preferred angles.
Game Development & Concept Art: Rapidly prototype environment concepts by exploring different camera positions and focal lengths.
Social Media Content: Create dynamic visual variations for A/B testing—test wide-angle drama versus intimate close-ups.
Film Pre-visualization: Explore shot compositions and camera movements before committing to expensive production setups.
Be descriptive with spatial intent: Instead of "edit this image," try "move the camera 10 feet backward and slightly upward to capture the full building facade."
Combine perspective with style: Merge camera instructions with artistic direction—"rotate camera 45 degrees clockwise, cinematic lighting, golden hour atmosphere."
Leverage multi-image inputs: Use image_1 as your base, image_2 for reference perspective, and image_3 for lighting or texture guidance.
Optimize quality settings: Set quality to 90-95 for final outputs; lower to 70-80 for rapid iteration during creative exploration.
Control randomness strategically: Use fixed seeds when refining a specific output; use seed=-1 when exploring creative variations.
Is Qwen-Edit-2509-Multiple-Angles open-source?
Yes, it's built on the open-source Qwen/Qwen-Image-Edit-2509 base model and uses the Diffusers library, making it accessible for both commercial and personal projects.
How is it different from other image editing models?
Unlike models that require trigger words or complex parameter tuning, Qwen-Edit-2509 focuses specifically on camera perspective manipulation through natural language, with built-in stability from LoRA fine-tuning.
What parameters should I tweak for best results?
Start with the default "multiple_angle" LoRA and a detailed prompt. Adjust aspect_ratio to match your target platform, set seed for consistency, and increase quality to 95 for production outputs.
Can I use custom LoRA models?
Absolutely. Use lora_2_url and lora_3_url to load additional LoRA adapters for specialized effects or artistic styles beyond the bundled options.
What image resolution works best?
High-resolution inputs (1080p or higher) yield the most detailed perspective transformations. The model intelligently scales output based on your chosen aspect ratio.
Does it work with illustrations and 3D renders?
Yes. While optimized for photographic content, the model effectively handles illustrations, concept art, and 3D-rendered scenes, making it versatile across creative workflows.