Midjourney /imagine 命令
使用我们的 /diffusion API 掌握 AI 图像生成并将其集成到您的应用程序中。
什么是 /imagine?
/imagine 命令是 Midjourney 从文本提示生成 AI 图像的核心功能。
文本到图像生成
高级参数控制
多种变化
基本用法
/imagine prompt: A beautiful sunset over mountains --v 6 --ar 16:9--v 6: Midjourney 版本 6
--ar 16:9: 16:9 宽高比
使用 /diffusion API
将 Midjourney 的 /imagine 功能直接集成到您的应用程序中。
API 示例
curl --location 'https://api.legnext.ai/api/v1/diffusion' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"text": "A beautiful sunset over the snow mountains --v 7",
"callback": "https://webhook.site/c98cb890-fb92-439f-8d60-42c8a51eb52d"
}'参数
- text: 您的提示
- callback: Webhook URL
响应
返回任务 ID 以跟踪进度
热门用例
将 /imagine 命令用于不同内容类型的常见方式。
/imagine prompt: Futuristic city skyline, cyberpunk style --v 6 --ar 16:9数字艺术
概念艺术和数字插图
/imagine prompt: Professional headshot, corporate style --v 6 --ar 1:1专业照片
营销和演示图像
/imagine prompt: Product mockup, modern smartphone --v 6 --ar 4:3产品可视化
电商和营销模型
/imagine prompt: Fantasy landscape, dragons and castles --v 6 --ar 21:9游戏资产
游戏和娱乐内容