Submit a Midjourney image generation task. Supports standard Midjourney prompts including parameters like --ar, --v, --style, etc. Poll /v1/midjourney/task/{task_id} for the result.
Request
Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Body Params application/jsonRequired
Example
{"prompt":"A futuristic city at sunset --ar 16:9 --v 6","webhook":"string"}
Request Code 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.ccapi.ai//v1/midjourney/imagine' \
--header'Authorization: <api-key>' \
--header'Content-Type: application/json' \
--data-raw'{
"prompt": "A futuristic city at sunset --ar 16:9 --v 6",
"webhook": "string"
}'