{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-expansion-xyz789",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-expansion-xyz789"
}
}
}Extends images in any direction (up, down, left, right) with prompt-guided generation, ideal for panorama, background extension, and canvas expansion.
{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-expansion-xyz789",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-expansion-xyz789"
}
}
}Documentation Index
Fetch the complete documentation index at: https://docs.modellix.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
Note: All four expansion ratio parameters are required. Set to 0.0 for directions that do not need expansion. This model does NOT support: negative_prompt, aspect_ratio, resolution, image_fidelity, image_reference, or human_fidelity parameters.
Original image (URL or Base64 encoded, do not include 'data:' prefix for Base64). Supported formats: .jpg, .jpeg, .png. Maximum size: 10MB. Minimum dimensions: 300x300px
1"https://example.com/original.jpg"
Upward expansion ratio, based on original image height. Range: 0.0-2.0
0 <= x <= 20.5
Downward expansion ratio, based on original image height. Range: 0.0-2.0
0 <= x <= 20.5
Leftward expansion ratio, based on original image width. Range: 0.0-2.0
0 <= x <= 20.5
Rightward expansion ratio, based on original image width. Range: 0.0-2.0
0 <= x <= 20.5
Positive prompt to guide content generation in expanded areas
2500"Extend with natural landscape elements"
Number of images to generate per request
1 <= x <= 91