Zum Hauptinhalt springen
POST
/
midjourney
/
tasks
Operate the tasks on the generated image.
curl --request POST \
  --url https://api.acedata.cloud/midjourney/tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "": [
    "<string>"
  ],
  "id": "<string>",
  "action": "generate"
}
'
{
  "id": "42b2ab0f-5676-453b-bd23-9ee001b888ae",
  "_id": "65ede215550a4144a5fcebac",
  "mode": "turbo",
  "email": "melbamohammadz@hotmail.com",
  "request": {
    "mode": "turbo",
    "action": null,
    "prompt": "A cat sitting on a table",
    "stream": false,
    "timeout": null,
    "version": "1.0",
    "image_id": null,
    "trace_id": "b0a683a4-aecc-450d-849e-c9f0730826a2",
    "check_image": null,
    "retry_times": null,
    "translation": null,
    "callback_url": null,
    "check_prompt": null,
    "image_origin": null,
    "application_id": "e2ee38ba-19ea-4da9-9f3f-4f8567d19feb"
  },
  "duration": 15.029000043869019,
  "response": {
    "actions": [
      "upscale1",
      "upscale2",
      "upscale3",
      "upscale4",
      "reroll",
      "variation1",
      "variation2",
      "variation3",
      "variation4"
    ],
    "success": true,
    "task_id": "42b2ab0f-5676-453b-bd23-9ee001b888ae",
    "image_id": "1216425082772131840",
    "progress": 100,
    "image_url": "https://midjourney.cdn.acedata.cloud/attachments/1219474225119887443/1216425082772131840/melbamohammadz_A_cat_sitting_on_a_table_id0206976_084a762e-2051-4489-9ab9-acb4d8ca284a.png?ex=66005723&is=65ede223&hm=9e9f65469e79805c6933aedb1ab49a0574fa501ca1cc8ba6add5d9297986906e&width=1024&height=1024",
    "image_width": 1024,
    "image_height": 1024,
    "raw_image_url": "https://midjourney.cdn.acedata.cloud/attachments/1219474225119887443/1216425082772131840/melbamohammadz_A_cat_sitting_on_a_table_id0206976_084a762e-2051-4489-9ab9-acb4d8ca284a.png?ex=66005723&is=65ede223&hm=9e9f65469e79805c6933aedb1ab49a0574fa501ca1cc8ba6add5d9297986906e&",
    "raw_image_width": 2048,
    "raw_image_height": 2048
  },
  "created_at": 1710088725.063,
  "started_at": 1710088725.069,
  "finished_at": 1710088740.098,
  "application_id": "e2ee38ba-19ea-4da9-9f3f-4f8567d19feb"
}

Autorisierungen

Authorization
string
header
erforderlich

Header

accept
enum<string>

Specifies the format of the response from the server.

Verfügbare Optionen:
application/json

Body

application/json
string[]
id
string

The ID of the midjourney task.

action
enum<string>
Standard:generate

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

Verfügbare Optionen:
retrieve,
retrieve_batch

Antwort

Operation performed successfully.

id
string

The ID of the midjourney task.

request
object

The request of the midjourney task.

response
object

The response of the midjourney task.