Actions20
Imagine
AI-generatedSummary
Post prompt to Midjourney /imagine endpoint
Inputs
- prompt (required) — Required prompt text
- webhook_url — Optional callback URL
- webhook_type — Allowed values: progress, result
- callback_id — Optional callback identifier (max 72 chars)
- account_hash — Optional Discord account hash. If omitted, available accounts are rotated to distribute load.
- is_disable_prefilter — Disable prefilter
Output shape
Each execution returns an array of items; every item contains { json: API response, pairedItem: { item: number } }.
The operation sends a POST to /midjourney/v2/imagine with the prompt and optional parameters. Webhook fields are attached if a webhook URL is provided. Empty optional parameters are omitted from the request body.
Examples
Example 1: Basic prompt execution
Provide a prompt; all other parameters use their defaults.