Midjourney Pan
Extend existing images in a single specified direction with precise directional expansion using our /pan API.
What is Pan?
Extend your images in one specific direction (up, down, left, or right) while maintaining visual continuity.
Use /pan API
Integrate Midjourney's pan functionality directly into your applications.
API Example
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" }'
Parameters
- jobId: Original image generation task ID
- imageNo: Image number to extend (0-3)
- direction: Extension direction (0-3)
- scale: Extension ratio (1.1-3.0)
- remixPrompt: Text prompt for extended area
- callback: Webhook URL
Response
Returns job ID, status, and up to 4 extended image URLs
Direction Values
0
Down1
Right2
Up3
Left