🚀 Z-Image Turbo Image-to-Image is Live — Unlimited Generations for Premium Users

Try Now
Skip to main content
Out Painting thumbnail

ModelsLab/Out Painting

outpainting
Expand images seamlessly beyond borders with **outpainting AI** for images; supports 128-2048px dims (div by 64), strength 0-1, 1-100 steps, blur for smooth transitions.[1][2][3]
API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v8/images/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": null,
"overlap_width": "32",
"num_inference_steps": "15",
"guidance_scale": "8.0",
"webhook": null,
"track_id": null,
"model_id": "outpainting",
"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
model_idmodel_idModel to use for generation