Qwen Image 2.1
Generate or edit an image with up to ten public HTTPS references, 1K or 2K output and optional transparent PNG or WebP.
Supported modes
Request rules: auto follows the first reference image; without images it renders 1:1. enhance_prompt defaults to true without images and false with images. A transparent background requires png or webp, not jpeg. Reference example URLs are placeholders; replace them with accessible HTTPS images. These examples describe the saved public contract, not completed model calls.
Async flow: Create the task, save data.id, then poll the Task with GET /v1/tasks/{task_id}. On succeeded, read data.output.media. On failed, read data.error_code and data.error_message, then follow the error and retry policy.
Using a local file? upload a local input first and pass the returned data.url.
Authentication
Send your API key as Authorization: Bearer <BEATAPI_API_KEY>.
Headers
Request
Must be qwen-image-2.1.
Generation or reference-editing instructions, from 1 to 5000 characters.
auto follows the first reference image; without images it renders 1:1.
Rewrites the prompt before rendering. Defaults to true without images and false with images; no unconditional default.
One to ten public HTTPS image URLs. Omit for text-to-image.
Output file format. Use png or webp with transparent background; jpeg cannot retain alpha.
Optional integer from 0 to 2147483647; no -1 value and no documented default.
Response
Contract example only, not an executed task or generated result. The 1K example amount comes from the bundled Qwen price catalogue; actual usage is returned by the task.

