v47

latestOpenAPI 3.0.2raw.githubusercontent.com2026-08-01360485.4 KB
Image Projects

AI QR Code Generator

Create an AI QR code. Each QR code costs 0 credits.

post/v1/ai-qr-code-generator

Request body

namestring

Give your image a custom name for easy identification.

contentstring required

The content of the QR code.

Example request

{
  "name": "My Qr Code image",
  "content": "https://magichour.ai",
  "style": {
    "art_style": "Watercolor"
  }
}

Response

Success

idstring required

Unique ID of the image. Use it with the Get image Project API to fetch status and downloads.

credits_chargedinteger required

The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.

If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.

Example response

{
  "id": "cuid-example"
}