🎉 New Year Sale: Get 20% OFF on all plans — Use code NEWYEAR2026.

Upgrade now
OutPainting thumbnail

ModelsLab/OutPainting

extend-image-outpainting
Seamlessly expand images with intelligent edge-blending, supporting various aspect ratios and maintaining original detail.
API PlaygroundAPI Documentation

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 NameParameterTechnical Description
promptpromptText description of the image you want to generate
ImageimageImage URL or base64 data (data:image/jpeg;base64,...)
Negative Promptnegative_promptThings you do not want in the generated image
WidthwidthWidth of the generated image
HeightheightHeight of the generated image
base64base64 Whether the image is base64 encoded. Default: false
seedseedSeed for reproducible results
overlap_widthoverlap_widthWidth of the mask overlap area
num_inference_stepsnum_inference_stepsNumber of denoising steps
guidance_scaleguidance_scaleHow closely to follow the prompt
webhookwebhookURL to receive POST API call when complete
track_idtrack_idCustom ID to track requests