ModelsLab/OutPainting
extend-image-outpaintingSeamlessly expand images with intelligent edge-blending, supporting various aspect ratios and maintaining original detail.
API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v6/image_editing/outpaint
API Authentication
Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.
Integration Examples
Production-ready code samples for API integration
{"prompt": "middle of the street, buildings in the background","image": "https://assets.modelslab.com/generations/e3d918c7-a596-4139-a920-9e6d1d3e9cc7","negative_prompt": "dull background, text, characters, symbols, unrealistic, repetitive background, boring background, bad, low quality, black background","width": "1024","height": "512","base64": "false","seed": "0","overlap_width": "32","num_inference_steps": "15","guidance_scale": "8.0","webhook": null,"track_id": "0","key": "YOUR_API_KEY"}
SDKs
Official SDKs
Production-ready SDKs and client libraries for all major programming languages
API Parameters
Technical specifications for API request parameters.
| Field Name | Parameter | Technical Description |
|---|---|---|
| prompt | prompt | Text description of the image you want to generate |
| Image | image | Image URL or base64 data (data:image/jpeg;base64,...) |
| Negative Prompt | negative_prompt | Things you do not want in the generated image |
| Width | width | Width of the generated image |
| Height | height | Height of the generated image |
| base64 | base64 | Whether the image is base64 encoded. Default: false |
| seed | seed | Seed for reproducible results |
| overlap_width | overlap_width | Width of the mask overlap area |
| num_inference_steps | num_inference_steps | Number of denoising steps |
| guidance_scale | guidance_scale | How closely to follow the prompt |
| webhook | webhook | URL to receive POST API call when complete |
| track_id | track_id | Custom ID to track requests |