Midjourney Pan

使用我们的 /pan API 在单个指定方向上扩展现有图像,具有精确的方向扩展。

什么是 Pan

在特定方向(上、下、左或右)扩展您的图像,同时保持视觉连续性。

使用 /pan API

将 Midjourney 的 pan 功能直接集成到您的应用程序中。

API 示例

curl --location 'https://api.legnext.ai/api/v1/pan' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
    "jobId": "job_12345",
    "imageNo": 0,
    "direction": 1,
    "scale": 1.5,
    "remixPrompt": "Continue the forest path to the right",
    "callback": "https://your-domain.com/webhook"
}'

参数

  • jobId: 原始图像生成任务 ID
  • imageNo: 要扩展的图像编号 (0-3)
  • direction: 扩展方向 (0-3)
  • scale: 扩展比例 (1.1-3.0)
  • remixPrompt: 扩展区域的文本提示
  • callback: Webhook URL

响应

返回任务 ID、状态和最多 4 个扩展图像 URL

方向值

0
向下
1
向右
2
向上
3
向左

准备好扩展图像了吗?

立即开始使用我们的 /pan API。