Stable Image - Image Extender
Extend and expand image borders using Stable Image extension technology.
Endpoint
Request Headers
Field | Value | Required |
---|---|---|
API-KEY | <api-key> | Yes |
Content-Type | application/json | Yes |
Request Body
The request must include the following parameters:
Parameter | Type | Required | Description |
---|---|---|---|
type | string | Yes | Feature type identifier. Must be IMAGE_EXTENDER |
model | string | Yes | AI model identifier. Must be stable-image |
promptObject | object | Yes | Feature-specific parameters |
Prompt Object Parameters
Parameter | Type | Required | Description |
---|---|---|---|
imageUrl | string | Yes | Path to the image to be extended |
output_format | string | Yes | Output format for the extended image. Supported: png , jpeg |
left | number | Yes | Extend left |
right | number | Yes | Extend right |
up | number | Yes | Extend up |
down | number | Yes | Extend down |
Example Request
- JavaScript
- cURL
- Python
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
}
})
})
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"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
}
}'
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"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 = requests.post(url, headers=headers, json=data)
Response
Success Response (200)
The API returns an empty object {}
upon successful processing.
{}