- Supported regions: China North 2 (Beijing) only. Use an API key created in that region and
https://cn-beijing.maas.qwencloudapi.com. - Get an API key and set it as an environment variable first. To use an SDK, install the SDK.
| Function | function value | Description |
|---|---|---|
| Whole-image stylization | stylization_all | Apply a style to the whole image |
| Local stylization | stylization_local | Apply a style to part of the image |
| Instruction editing | description_edit | Edit the image from a text description |
| Mask editing | description_edit_with_mask | Precise editing within a mask |
| Watermark removal | remove_watermark | Remove a watermark from the image |
| Outpainting | expand | Extend the canvas in four directions |
| Super resolution | super_resolution | Increase image resolution |
| Colorization | colorization | Add color to a black-and-white image |
| Doodle-to-image | doodle | Generate an image from a doodle |
| Cartoon feature control | control_cartoon_feature | Cartoonize while preserving the subject's features |
Authorizations
string
header
required
QwenCloud API key. See Get an API key.
Header Parameters
enum<string>
default"enable"
required
Enable asynchronous processing. Must be set to enable. HTTP requests support only asynchronous calls; omitting this header returns an error.
enable