## Basic model info - Model name: qwen/qwen qwen-image-edit-multiple-angles - Model description: Generates same scene from different angles (azimuth/elevation) with Qwen Image Edit 2511. - Endpoint name: image-to-image ## Model schema The model schema is defined in the OpenAPI schema: [OpenAPI Schema](https://oapi.sunra.ai/main/qwen/qwen-image-edit-multiple-angles/latest.json) ### Model input schema The model input schema is: ```json { "description": "Input model for Qwen Image Edit Multiple Angles - generates same scene from different camera angles.", "properties": { "aspect_ratio": { "anyOf": [ { "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4" ], "type": "string" }, { "type": "null" } ], "description": "Aspect ratio of the output image. If not set, uses the input image size.", "title": "Aspect Ratio", "x-sr-order": 404 }, "guidance_scale": { "default": 4.5, "description": "The CFG (Classifier Free Guidance) scale.", "maximum": 20, "minimum": 1, "title": "Guidance Scale", "type": "number", "x-sr-order": 406 }, "seed": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "Random seed for reproducibility.", "title": "Seed", "x-sr-order": 410 }, "negative_prompt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Content to avoid in the generated image.", "title": "Negative Prompt", "x-sr-order": 201 }, "acceleration": { "default": "regular", "description": "Acceleration level for image generation.", "enum": [ "none", "regular" ], "title": "Acceleration", "type": "string", "x-sr-order": 408 }, "additional_prompt": { "description": "Additional text to append to the automatically generated prompt.", "title": "Additional Prompt", "type": "string", "x-sr-order": 409 }, "horizontal_angle": { "default": 0, "description": "Horizontal rotation angle around the object in degrees. 0=front, 90=right, 180=back, 270=left, 360=front.", "maximum": 360, "minimum": 0, "title": "Horizontal Angle", "type": "number", "x-sr-order": 401 }, "images": { "description": "The URL of the image to adjust camera angle for.", "items": { "anyOf": [ { "format": "uri", "maxLength": 2083, "minLength": 1, "type": "string" }, { "type": "string" } ] }, "maxItems": 1, "minItems": 1, "title": "Images", "type": "array", "x-sr-order": 200 }, "lora_scale": { "default": 1, "description": "The scale factor for the LoRA model.", "maximum": 4, "minimum": 0, "title": "Lora Scale", "type": "number", "x-sr-order": 405 }, "num_inference_steps": { "default": 28, "description": "The number of inference steps to perform.", "maximum": 50, "minimum": 1, "title": "Num Inference Steps", "type": "integer", "x-sr-order": 407 }, "output_format": { "default": "png", "description": "Output image format.", "enum": [ "png", "jpeg", "webp" ], "title": "Output Format", "type": "string", "x-sr-order": 411 }, "vertical_angle": { "default": 0, "description": "Vertical camera angle in degrees. -30=low-angle, 0=eye-level, 30=elevated, 60=high-angle, 90=bird's-eye.", "maximum": 90, "minimum": -30, "title": "Vertical Angle", "type": "number", "x-sr-order": 402 }, "zoom": { "default": 5, "description": "Camera zoom/distance. 0=wide shot, 5=medium shot, 10=close-up.", "maximum": 10, "minimum": 0, "title": "Zoom", "type": "number", "x-sr-order": 403 } }, "required": [ "images" ], "title": "ImageToImageInput", "type": "object" } ``` ### Model output schema The model output schema is: ```json { "properties": { "images": { "items": { "properties": { "content_type": { "description": "The mime type of the file.", "title": "Content Type", "type": "string" }, "file_name": { "description": "The name of the file. It will be auto-generated if not provided.", "title": "File Name", "type": "string" }, "file_size": { "description": "The size of the file in bytes.", "title": "File Size", "type": "integer" }, "url": { "description": "The URL where the file can be downloaded from.", "title": "Url", "type": "string" } }, "required": [ "content_type", "file_name", "file_size", "url" ], "title": "SunraFile", "type": "object" }, "title": "Images", "type": "array" } }, "required": [ "images" ], "title": "ImagesOutput", "type": "object" } ``` ## Example inputs and outputs Use the following example inputs and outputs to understand the model. ### Input example ```json { "aspect_ratio": null, "guidance_scale": 4.5, "seed": null, "negative_prompt": null, "acceleration": "regular", "additional_prompt": "", "horizontal_angle": 0, "images": [ ], "lora_scale": 1, "num_inference_steps": 28, "output_format": "png", "vertical_angle": 0, "zoom": 5 } ``` ### Output example ```json { } ``` ## Model code examples ### JavaScript ```javascript import { sunra } from "@sunra/client"; const result = await sunra.subscribe("qwen/qwen-image-edit-multiple-angles/image-to-image", { input: { images: [], negative_prompt: null, horizontal_angle: 0, vertical_angle: 0, zoom: 5, aspect_ratio: null, lora_scale: 1, guidance_scale: 4.5, num_inference_steps: 28, acceleration: 'regular', additional_prompt: '', seed: null, output_format: 'png' }, logs: true, onQueueUpdate: (update) => { console.log(`Status Update: ${update.status}, Request ID: ${update.request_id}`); }, }); console.log(result.data); console.log(result.requestId); ``` ### Python ```python import sunra_client result = sunra_client.subscribe( "qwen/qwen-image-edit-multiple-angles/image-to-image", arguments={ "images": [], "negative_prompt": None, "horizontal_angle": 0, "vertical_angle": 0, "zoom": 5, "aspect_ratio": None, "lora_scale": 1, "guidance_scale": 4.5, "num_inference_steps": 28, "acceleration": "regular", "additional_prompt": "", "seed": None, "output_format": "png" }, with_logs=True, on_enqueue=print, on_queue_update=print, ) print(result) ``` ### Java ```java import ai.sunra.client.*; import java.util.Map; import com.google.gson.JsonObject; var client = SunraClient.withEnvCredentials(); var response = client.subscribe( "qwen/qwen-image-edit-multiple-angles/image-to-image", SubscribeOptions.builder() .input(Map.of( "images", , "negative_prompt", null, "horizontal_angle", 0, "vertical_angle", 0, "zoom", 5, "aspect_ratio", null, "lora_scale", 1, "guidance_scale", 4.5, "num_inference_steps", 28, "acceleration", "regular", "additional_prompt", "", "seed", null, "output_format", "png")) .resultType(JsonObject.class) .onQueueUpdate(update -> System.out.printf( "\nStatus Update: %s, Request ID: %s%n", update.getStatus(), update.getRequestId() )) .logs(true) .build() ); System.out.println("Completed!"); System.out.println(response.getData()); ``` ### Kotlin ```kotlin import ai.sunra.client.kt.* import com.google.gson.JsonObject val client = createSunraClient() val response = client.subscribe( endpointId = "qwen/qwen-image-edit-multiple-angles/image-to-image", input = mapOf( "images" to , "negative_prompt" to null, "horizontal_angle" to 0, "vertical_angle" to 0, "zoom" to 5, "aspect_ratio" to null, "lora_scale" to 1, "guidance_scale" to 4.5, "num_inference_steps" to 28, "acceleration" to "regular", "additional_prompt" to "", "seed" to null, "output_format" to "png"), options = ai.sunra.client.kt.SubscribeOptions(logs = true), onUpdate = { update -> println("\nStatus Update: ${update.status}, Request ID: ${update.requestId}") } ) println("Completed!") println(response.data) ``` ### Curl ```bash curl --request POST \ --url https://api.sunra.ai/v1/queue/qwen/qwen-image-edit-multiple-angles/image-to-image \ --header "Authorization: Key $SUNRA_KEY" \ --header "Content-Type: application/json" \ --data '{"images":[],"negative_prompt":null,"horizontal_angle":0,"vertical_angle":0,"zoom":5,"aspect_ratio":null,"lora_scale":1,"guidance_scale":4.5,"num_inference_steps":28,"acceleration":"regular","additional_prompt":"","seed":null,"output_format":"png"}' ``` ## Model readme >