The API simulates a Zoom button click on the Midjourney channel. A completed image will return an array of buttons which you can subsequently invoke on the image. These buttons are dynamic and a list of buttons you can press are included in every image completion.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
messageId
string
required
The unique identifier you get from your previous image generation request.
button
enum<string>
required
The valid button action for Midjourney. The button value needs be within the "buttons" array in /message endpoint's response. E.g. Zoom Out 2x, Zoom Out 1.5x.
Allowed values:
Zoom Out 1.5xZoom Out 2x
ref
string
optional
The reference metadata which will return as part of the webhook.
webhookOverride
string
optional
The webhook URL which the response will send to, the payload of this webhook is same as our Message endpoint.
Example
{"messageId":"string","button":"Zoom Out 1.5x","ref":"string","webhookOverride":"string"}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.imaginepro.ai/api/v1/nova/button' \
--header'Content-Type: application/json' \
--data-raw''
Responses
🟢200Success
application/json
Body
success
boolean
required
The status of the request.
messageId
string
required
The messageId of the request, which will be used for querying the progress, sending subsequential actions later, etc.