Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

How to generate the first AI image by calling Midjourney via UserAPI.ai?

2025-08-25 1.5 K
Link directMobile View
qrcode

Complete instructions from registration to generation

Generating the first image using UserAPI.ai involves five key steps:

  1. 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.
  2. 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.
  3. 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"}'
  4. Task tracking: Poll the /status interface with the returned task ID (e.g., cecb48b8...) or set up the Webhook to automatically receive completion notifications
  5. 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.

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish