Clipdrop - Image Extender
Extend your images beyond their original borders using Clipdrop's powerful Uncrop technology. This feature is ideal for changing aspect ratios, creating cinematic extensions, or fixing tight crops in your photography.
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Feature type identifier. Must be IMAGE_EXTENDER |
model | string | Yes | AI model identifier. Must be clipdrop |
promptObject | object | Yes | Configuration object containing extension parameters |
Prompt Object Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
imageUrl | string | Yes | URL or internal path of the image to be extended | - |
left | number | No* | Pixels to adjust on the left (-2000 to 2000) | 0 |
right | number | No* | Pixels to adjust on the right (-2000 to 2000) | 0 |
up | number | No* | Pixels to adjust on the top (-2000 to 2000) | 0 |
down | number | No* | Pixels to adjust on the bottom (-2000 to 2000) | 0 |
*At least one of left, right, up, or down must be provided and non-zero. Positive values expand the image, while negative values will crop the image.
Code Examples
Manual Extension
- cURL
- JavaScript
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_EXTENDER",
"model": "clipdrop",
"promptObject": {
"imageUrl": "https://example.com/image.jpg",
"left": 500,
"right": 500
}
}'
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: 'clipdrop',
promptObject: {
imageUrl: 'https://example.com/image.jpg',
left: 500,
right: 500
}
})
})
Interactive Playground
API Playground
https://api.1min.ai/api/featuresURL of the image to extend
Generated cURL Command:
curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_EXTENDER",
"model": "clipdrop",
"promptObject": {
"imageUrl": "https://example.com/image.jpg",
"left": 200,
"right": 200,
"up": 0,
"down": 0
}
}'
Response Format
{
"aiRecord": {
"uuid": "record-uuid-123",
"status": "SUCCESS",
"aiRecordDetail": {
"promptObject": {
"imageUrl": "https://example.com/image.jpg",
"left": 500,
"right": 500
},
"resultObject": [
"https://api.1min.ai/assets/output_uncropped.png"
]
},
"temporaryUrl": "https://api.1min.ai/assets/output_uncropped.png"
}
}