Complete instructions from registration to generation
Generating the first image using UserAPI.ai involves five key steps:
- Account Registration: After visiting the official website and completing the email registration, get the exclusive key (e.g. 3fb0b6d9-6e1b...) on the 'API Keys' page of the dashboard.
- Discord association: Get the Discord Token in the browser developer tools and add it to the UserAPI.ai account system to complete the Midjourney service authorization.
- API call: Send a POST request to the /imagine interface using cURL or any programming language, example:
curl -X POST https://api.userapi.ai/midjourney/v2/imagine -H "api-key: [your key]" -d '{" prompt": "Twilight Beach, 4K Ultra HD"}' - Task tracking: Poll the /status interface with the returned task ID (e.g., cecb48b8...) or set up the Webhook to automatically receive completion notifications
- Getting results: When the status changes to done, extract the CDN image link from the response and download it directly.
Special Note: First time users are recommended to start from the free package, the generation time is usually 30-60 seconds, complex prompt words may take longer. All operations do not need to install any local software, pure Web way to complete.
This answer comes from the articleUserAPI.ai: Integration of Midjourney image generation API interfaceThe