Skip to main content
POST
Midjourney Imagine

授权

Authorization
string
header
必填

请求头

accept
enum<string>

Midjourney Imagine Param Accept

可用选项:
application/json,
application/x-ndjson

请求体

application/json
mask
string

Midjourney Imagine Mask

mode
enum<string>
默认值:fast

Midjourney Imagine Mode

可用选项:
fast,
relax,
turbo
action
string
默认值:generate

Midjourney Imagine Action

prompt
string

Midjourney Imagine Prompt

示例:

"A cat sitting on a table"

timeout
number
默认值:480

Midjourney Imagine Timeout

image_id
string

Midjourney Imagine Image Id

translation
boolean
默认值:false

Midjourney Imagine Translation

callback_url
string

Midjourney Imagine Callback Url

async
boolean

Midjourney Imagine Async

split_images
boolean
默认值:false

Midjourney Imagine Split Images

version
string

Midjourney Imagine Version

hd
boolean
默认值:false

Midjourney Imagine Hd

quality
string
默认值:1

Midjourney Imagine Quality

style_reference
boolean
默认值:false

Midjourney Imagine Style Reference

moodboard
boolean
默认值:false

Midjourney Imagine Moodboard

响应

Midjourney Imagine Response 200

actions
string[]

Midjourney Imagine Response 200 Actions

success
boolean

Midjourney Imagine Response 200 Success

task_id
string

Midjourney Imagine Response 200 Task Id

image_id
string

Midjourney Imagine Response 200 Image Id

progress
number

Midjourney Imagine Response 200 Progress

image_url
string

Midjourney Imagine Response 200 Image Url

image_width
string

Midjourney Imagine Response 200 Image Width

image_height
string

Midjourney Imagine Response 200 Image Height

raw_image_url
string

Midjourney Imagine Response 200 Raw Image Url

raw_image_width
string

Midjourney Imagine Response 200 Raw Image Width

raw_image_height
string

Midjourney Imagine Response 200 Raw Image Height