Model API

Qwen Image Edit Plus Lora Gallery

Blend products into backgrounds with automatic perspective and lighting correction

Model id

Use this in every request
qwen-image-edit-plus-lora-gallery/integrate-product

Run it

Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen-image-edit-plus-lora-gallery/integrate-product",
  "input": {
    "image_urls": [
      "https://example.com/input.png"
    ],
    "prompt": "A red ceramic cup on a wooden table, soft morning light"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "qwen-image-edit-plus-lora-gallery/integrate-product", "quote_id": "QUOTE_ID", "input": {"image_urls":["https://example.com/input.png"],"prompt":"A red ceramic cup on a wooden table, soft morning light"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Input

Input fields for qwen-image-edit-plus-lora-gallery/integrate-product
NameTypeDescription
image_urlsrequiredarray of image URLs
The URL of the image with product to integrate into background.
image_sizestring (enum)
The size of the generated image. If not provided, the size of the final input image will be used.

Default: square_hd

One of: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9

guidance_scalenumber
The CFG (Classifier Free Guidance) scale. Controls how closely the model follows the prompt.

Default: 1

num_inference_stepsinteger
The number of inference steps to perform.

Default: 6

accelerationstring (enum)
Acceleration level for image generation. 'regular' balances speed and quality.

Default: regular

One of: none, regular

negative_promptstring
The negative prompt for the generation

Default:

seedinteger
Random seed for reproducibility. Same seed with same prompt will produce same result.
sync_modeboolean
If `True`, the media will be returned as a data URI and won't be saved in history.

Default: false

output_formatstring (enum)
The format of the output image

Default: png

One of: png, jpeg, webp

num_imagesinteger
Number of images to generate

Default: 1

promptstring
Describe how to blend and integrate the product/element into the background. The model will automatically correct perspective, lighting and shadows for natural integration.

Default: Blend and integrate the product into the background

lora_scalenumber
The scale factor for the LoRA model. Controls the strength of the LoRA effect.

Default: 1

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]

Pricing

  • 1 megapixel$0.06/ megapixel

The exact charge for your input comes from a quote. How charges settle