Qwen Add Background
Image editing
Starting price $0.06 / megapixel
Turn one product photo and the measurements you enter into a square dimension image with callout lines, labels and an optional weight or capacity badge.
bria/product-dimensionsQuote 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": "bria/product-dimensions",
"input": {
"image": "https://example.com/input.png",
"dimensions": [
{
"name": "height",
"value": 1,
"unit": "mm"
}
],
"style": "default"
}
}'
# 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": "bria/product-dimensions", "quote_id": "QUOTE_ID", "input": {"image":"https://example.com/input.png","dimensions":[{"name":"height","value":1,"unit":"mm"}],"style":"default"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
title_position | string (enum) | Title placement along the top. |
proportional_lines | boolean | Scale dimension line lengths by measurement. |
sync | boolean | When true, return generated images directly as base64 instead of CDN URLs. |
imagerequired | string (image URL) | Source product image as a public URL or raw base64-encoded image bytes. |
dimensionsrequired | array of objects | Dimension callouts to render. At least one entry is required. |
stylerequired | string (enum) | Rendering style. |
title | string | Optional headline above the product. |
output_size | integer | Square output edge length in pixels. |
output_format | string (enum) | Controls the rendered response: png, jpeg, or dual composite plus transparent overlay. |
background | string | Hex color or one of: white, cream, charcoal. |
units_display | string (enum) | How labels display primary and secondary units when both are provided. |
weight | object | Optional weight badge below the product. |
capacity | object | Optional capacity badge below the product. |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
Upload a product photo and add at least one measurement: height, top width or bottom width, each with its value and unit. The model draws the callout lines and labels around the product; it does not measure anything itself.
You choose a style, a background color, an optional title and how units are shown when you give two of them. A weight or capacity badge can sit below the product, and the output can be PNG, JPEG or a composite with a transparent overlay.
Compare the result with your source, especially object boundaries, fine text, faces and shadows.