POST
/
v1
/
ai-qr-code-generator
curl --request POST \
  --url https://api.magichour.ai/v1/ai-qr-code-generator \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Qr Code image",
  "content": "https://magichour.ai",
  "style": {
    "art_style": "Watercolor"
  }
}'
{
  "id": "clx7uu86w0a5qp55yxz315r6r",
  "frame_cost": 20
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Body
content
string
required

The content of the QR code.

Example:

"https://magichour.ai"

style
object
required
name
string
default:Qr Code - dateTime

The name of image

Example:

"Qr Code image"

Response

200
application/json

Success

id
string
required

Unique ID of the image. This value can be used in the get image project API to fetch additional details such as status

Example:

"clx7uu86w0a5qp55yxz315r6r"

frame_cost
integer
required

The frame cost of the image generation

Example:

20