Skip to main content
POST
/
vendors
/
midjourney
/
v1
/
tob
/
diffusion
Text to Image
curl --request POST \
  --url https://api.mulerun.com/vendors/midjourney/v1/tob/diffusion \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "A delicious-looking molten chocolate lava cake that has been cut open."
}'
{
  "task_info": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "succeeded",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}
This API is compatible with Midjourney’s format.

Authorizations

Authorization
string
header
required

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

Body

application/json

Text to Image generation request body

prompt
string
required

Text prompt for image generation. Must be between 1 and 8192 characters. This prompt is compatible with Midjourney's format.

Required string length: 1 - 8192

Response

202 - application/json

Task accepted and queued for processing

task_info
object
required
I