Create QR Art

Create QR Art

Generate AI Image

POST https://pub-api.mojo.vn/srv/publish/api/art_qr/generate

Headers

Name
Type
Description

Content-Type*

application/json

Authorization*

Bearer apikey

Your API Key

Request Body

Name
Type
Description

prompt*

String

Image description

ar*

String

Image Ratio

style*

String

Art Style Name (Get from API Get Art Style)

content

Your URL

shortlink

Boolean

This choice will short the URL

padding

0 to 9

Space between the image margin and the QR code

{
    "success": true,
    "id": "QRImageID",
    "queue_type": "fast"
}

curl --location 'https://pub-api.mojo.vn/srv/publish/api/art_qr/generate' --header 'Authorization: Bearer apikey,API_KEY' --header 'Content-Type: application/json' --data '{ "content": "https://mojo.vn", "qr_w": 1.3, "prompt": "The girl and sun flower", "shortlink": false, "style": "Square", "style_v5": "Photographic", "padding": 4}'

style_v5 in lists: ["Photographic", "Fantasy Art", "Digital Art", "Neon Punk", "Graffiti", "Disco"]

  • Shortlink: If your content contains an extensive URL, it is advisable to select the "Short link" = TRUE option. This choice will condense the URL, improving the QR code's scan-ability.

  • QR Weight: QR Weight is a parameter that determines the equilibrium between the 'artistic' and 'clarity' elements of a QR code within an image.

  • Create QR Art : The information in this API includes:

    content: The content the QR code will return when scanned (URL)

    prompt: Your description of the image

    padding: Space between the image margin and the QR code

  • Style (QR Style): QR code style get from Get QR Style

Last updated