Skip to main content

Stable Image - Image Extender

Extend and expand image borders using Stable Image extension technology.

Endpoint

Request Headers

FieldValueRequired
API-KEY<api-key>Yes
Content-Typeapplication/jsonYes

Request Body

The request must include the following parameters:

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_EXTENDER
modelstringYesAI model identifier. Must be stable-image
promptObjectobjectYesFeature-specific parameters

Prompt Object Parameters

ParameterTypeRequiredDescription
imageUrlstringYesPath to the image to be extended
output_formatstringYesOutput format for the extended image. Supported: png, jpeg
leftnumberYesExtend left
rightnumberYesExtend right
upnumberYesExtend up
downnumberYesExtend down

Example Request

fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'IMAGE_EXTENDER',
model: 'stable-image',
promptObject: {
imageUrl: 'development/images/2025_02_16_14_16_21_627_images.jpeg',
output_format: 'png',
left: 1,
right: 1,
up: 1,
down: 1
}
})
})

Response

Success Response (200)

The API returns an empty object {} upon successful processing.

{}