Vai al contenuto principale
POST
/
qrart
/
tasks
Operate the tasks on the Artistic QR code.
curl --request POST \
  --url https://api.acedata.cloud/qrart/tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "ids": [
    "<string>"
  ],
  "action": "generate"
}
'
{
  "id": "953df7c1-b051-40d7-bd71-f4fd38fb3b33",
  "_id": "662a6554550a4144a559bced",
  "request": {
    "ecl": "H",
    "qrw": 1.5,
    "seed": 1,
    "type": "text",
    "ratio": null,
    "steps": 16,
    "preset": "sunset",
    "prompt": "generate a big Christmas tree with a lot of presents under the tree, the Christmas tree is in the front yard next to a decorated house, and Santa and his sleigh flying over the decorated house, with a full moon in the night sky.",
    "rotate": "0",
    "content": "12314",
    "pattern": "custom",
    "timeout": null,
    "position": "center",
    "trace_id": "8112402d-8051-4c15-b60d-0b9c234a2ed8",
    "sub_marker": "square",
    "pixel_style": "square",
    "aspect_ratio": "1:1",
    "callback_url": null,
    "image_origin": null,
    "marker_shape": "square",
    "padding_level": "5",
    "padding_noise": "0",
    "negative_prompt": null,
    "content_image_url": null
  },
  "response": {
    "seed": 1,
    "success": true,
    "image_url": "https://qrart.cdn.acedata.cloud/attachments/1132182283529494652/1233058673824108684/germey_main_2024-04-25__662a65566e552f29fce50a64.png?ex=662bb6e0&is=662a6560&hm=28e9c2be1fdd094c1fb9682272a6f5741e81d33bf165f3e32f1a38581b20b4c0&",
    "image_width": 768,
    "image_height": 768
  }
}

Autorizzazioni

Authorization
string
header
obbligatorio

Intestazioni

accept
enum<string>

Specifies the format of the response from the server.

Opzioni disponibili:
application/json

Corpo

application/json
id
string

The ID of the qrart task.

ids
string[]

The IDs of the qrart tasks.

action
enum<string>
predefinito:generate

Operation type. Use 'retrieve' to get the generated image, and 'retrieve_batch' to get the batch of generated images.

Opzioni disponibili:
retrieve,
retrieve_batch

Risposta

Operation performed successfully.

id
string

The ID of the qrart task.

request
object

The request of the qrart task.

response
object

The response of the qrart task.