Artistic QR Generation API
POSThttps://api.acedata.cloud/qrart/generate

This API can generate artistic QR codes by inputting painting descriptions and QR code content to create artistic QR codes.

Request Headers

acceptstring
Specify the response format returned by the server.
Please select
authorizationstring
Bearer token

Request Body

typestringRequired parameter
The content types of QR codes, such as `link` (link), `text` (text), `email` (email), `phone` (phone), `sms` (SMS), etc.
contentstring
The content of the QR code, such as link addresses, text content, etc.
content_image_urlstring
The URL of the image containing the real content of the QR code, the system will recognize and extract the QR code content from that image.
promptstringRequired parameter
Prompt words. Used to describe the background style of the generated artistic QR code, it is strongly recommended to use English. Specific writing can refer to the Stable Diffusion official website (https://stablediffusionweb.com).
callback_urlstring
Callback URL. The address used to receive task results. If this parameter is provided, the task will be executed asynchronously, and the results will be returned via this URL.
asyncboolean
Whether to process in asynchronous mode. When set to `true`, the interface immediately returns `task_id`, without the need to provide `callback_url`, and then the result can be obtained by polling the corresponding task query interface; if `callback_url` is also provided, the result will be pushed to that callback address.
Please select
patternstring
The pixel pattern of the QR code. The default is `custom`, which means the pattern is automatically generated based on the content. For more details, see https://stablediffusionweb.com/patterns
Please select
presetstring
Preset background style. Used to specify the visual style of the QR code background, such as surreal style, neon effect, hand-drawn style, etc.
Please select
stepsnumber
The number of iterative steps for drawing. The larger the value, the stronger the artistic QR code style generated. The range is 10–20, with a default of 16.
qrwnumber
QR code weight. The greater the weight, the closer the generated image is to a real QR code, but the artistic style will correspondingly weaken. The range of values is 1.5–3, with a default of 1.5.
seednumber
Random seed. Used to generate artistic QR codes with random styles; the same seed will generate QR codes with the same style. The value range is 0–9007199254740991.
rawurlboolean
Whether to keep the original link. When `true`, the original link will be retained; by default, the input link will be shortened to a short link to improve the scanning rate. The default value is `false`.
Please select
padding_levelnumber
The inner margin level of the QR code. The optional values are `0`, `5`, `10`, `15`, `20`, with a default of `5`.
Please select
aspect_ratiostring
Aspect ratio for generating images. Default is `1:1`.
Please select
positionstring
The position of the QR code in the image. The default is `center`, which means it is displayed in the center.
Please select
pixel_stylestring
The styles of QR code pixel points, such as `square`, `rounded`, `dot`, etc. The default is `square`.
Please select
marker_shapestring
The shape of the main positioning point (corner marker) of the QR code. The default is `square`.
Please select
sub_markerstring
The style of the QR code sub-location points. The default is `square`.
Please select
rotatenumber
The rotation angle of the QR code. The default is `0`, which means no rotation. Optional values are `0`, `90`, `180`, `270`.
Please select
eclstring
The error correction level of the QR code. The default is H, which is the highest error correction level. For more details, see https://www.qrcode.com/en/about/error_correction.html
Please select
padding_noisenumber
The noise intensity of the inner margin area of the QR code. The optional values are `0`, `0.25`, `0.5`, `0.75`, `1`, with a default of `0`.
Please select

Response

Art QR Code Generation
Allow Use General Balance

When 'Allow General Balance' is enabled, the general balance is used automatically if an app's balance is insufficient.

Shell

Python

JavaScript

Java

Go

PHP

Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.