Landscape AI
Take a photo, choose area and style — get a photo-realistic design matched to your city, light, and climate. All placed with AI magic.
To change style
and type
, please use Update Persona endpoint before generation.
POST /v2/generate
Parameters
image
string
Required
URL of the input image. Encode your image url if url have special characters.
mask_image
string
Required
URL of the mask image. Learn more about mask images. Encode your image url if url have special characters.
prompt
string
Optional
Description of desired design. You can use special parameters.
big_data
object
Optional
Additional contextual data for the request. Contains nested properties:
• city
(string): Location name
• sun
(string): Sun exposure description
seed
integer
Optional
For reproducible results
enhance_prompt
string
Optional
If you want to use Prompt Enhance model, use true
value. If you want to continue without Prompt Enhancer don't add enhance_prompt
parameter to your requests.
format
string
Optional
Output format values: jpg
, png
or webp
processing_url
string
Optional
Get process results with same endpoint, alternative to /results
endpoint usage.
Curl Example
curl -X POST https://api.luw.ai/v2/generate \
-H "Authorization: Bearer LUW_API_TOKEN" \
-d "model=landscape" \
-d "image=https://example.com/landscape.jpg" \
-d "mask_image=https://example.com/mask.jpg" \
-d 'big_data={"city":"Antalya","sun":"Partial sun (4 - 6 hours)"}'
Response Example
{
"status": true,
"progress": {
"started_at": "2024-01-04T12:00:00Z",
"state": "processing",
"percent": 45
},
"processing": true,
"processing_url": "abc_123..."
}
✨ Get results using the /results
endpoint.
/results
endpoint.Alternative legacy method: Add &processing_url={url}
to your request.
Last updated