typefile
{
"custom_style": "",
"garden_image": "https://replicate.delivery/pbxt/Ng11LP8iwf8RoDuDDIrVOYXMJhM6T3rSqMecozPgygGgrIgD/F1DD612A-220A-4BFD-81AB-4FF4AD67C864_1_105_c.jpeg"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_ZGc**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run andreasjansson/landscaping using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
custom_style: "",
garden_image: "https://replicate.delivery/pbxt/Ng11LP8iwf8RoDuDDIrVOYXMJhM6T3rSqMecozPgygGgrIgD/F1DD612A-220A-4BFD-81AB-4FF4AD67C864_1_105_c.jpeg"
};
const output = await replicate.run("andreasjansson/landscaping", { input });
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_ZGc**********************************
This is your API token. Keep it to yourself.
import replicate
Run andreasjansson/landscaping using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"andreasjansson/landscaping",
input={
"custom_style": "",
"garden_image": "https://replicate.delivery/pbxt/Ng11LP8iwf8RoDuDDIrVOYXMJhM6T3rSqMecozPgygGgrIgD/F1DD612A-220A-4BFD-81AB-4FF4AD67C864_1_105_c.jpeg"
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_ZGc**********************************
This is your API token. Keep it to yourself.
Run andreasjansson/landscaping using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"input": {
"custom_style": "",
"garden_image": "https://replicate.delivery/pbxt/Ng11LP8iwf8RoDuDDIrVOYXMJhM6T3rSqMecozPgygGgrIgD/F1DD612A-220A-4BFD-81AB-4FF4AD67C864_1_105_c.jpeg"
}
}' \
https://api.replicate.com/v1/models/andreasjansson/landscaping/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "835041jjadrm80cs545rwpynjc",
"model": "andreasjansson/landscaping",
"version": "hidden",
"input": {
"custom_style": "",
"garden_image": "https://replicate.delivery/pbxt/Ng11LP8iwf8RoDuDDIrVOYXMJhM6T3rSqMecozPgygGgrIgD/F1DD612A-220A-4BFD-81AB-4FF4AD67C864_1_105_c.jpeg"
},
"logs": "Analyzing garden environment...\n/app/.venv/lib/python3.13/site-packages/coglet/scope.py:36: ExperimentalFeatureWarning: current_scope is an experimental internal function. It may change or be removed without warning.\n warnings.warn(\nGarden analysis: **Analysis:**\n\n**1. Climate Indicators:**\n- Lush, vibrant green grass indicates adequate rainfall\n- Dense deciduous forest backdrop suggests temperate climate\n- Red wooden architecture with tile roofing typical of Northern European/Scandinavian style\n- Soft, diffused lighting suggests higher latitude location\n\n**2. Garden Size & Style:**\n- Large, informal lawn area (approximately 1/4 acre visible)\n- Naturalistic cottage garden style\n- Low-maintenance approach with scattered plantings\n\n**3. Plant Types & Condition:**\n- Healthy, thick turf grass\n- Mixed deciduous trees in excellent condition\n- Young fruit trees or ornamental trees with protective guards\n- Informal shrub borders\n- Wild/naturalized areas at lawn edges\n\n**4. Architectural Features:**\n- Traditional red wooden house with clay tile roof\n- Blue awning/canopy\n- Outbuildings visible\n- Gravel driveway\n\n**5. Soil & Growing Conditions:**\n- Rich, fertile soil (evidenced by grass quality)\n- Good drainage with moisture retention\n- Partial shade from mature trees\n- Protected, sheltered location\n\n**Geographic Assessment:**\nThis appears to be **Northern European**, most likely **Scandinavian** (Sweden, Norway, or Denmark) or possibly **Northern Germany**. The combination of red wooden architecture, temperate forest vegetation, growing conditions, and overall aesthetic strongly indicates a cool-temperate maritime climate zone typical of these regions.\nGenerating contextual garden styles...\nGenerated styles:\nSTYLE1: Nordic Woodland Garden|Transform the large lawn into a naturalistic woodland garden with meandering gravel paths through drifts of Astilbe chinensis, Hosta sieboldiana, and Brunnera macrophylla. Plant native birch (Betula pendula) and rowan (Sorbus aucuparia) as specimen trees. Create understory layers with Viburnum opulus, elderberry (Sambucus canadensis), and Corylus avellana. Edge plantings include Heuchera, wild ginger (Asarum europaeum), and ferns like Dryopteris filix-mas. Maintain the informal cottage style while embracing the forest backdrop.\n\nSTYLE2: Scandinavian Minimalist Garden|Redesign with clean geometric lines featuring rectangular raised beds of weathered steel or concrete. Plant structural perennials like Miscanthus sinensis, Pennisetum alopecuroides, and Calamagrostis x acutiflora in mass plantings. Add architectural shrubs including Taxus baccata spheres, Buxus sempervirens hedging, and Hydrangea arborescens. Ground cover areas of Pachysandra terminalis and Vinca minor. Reduce lawn to precise geometric shapes with gravel mulch and stepping stone paths for modern Nordic aesthetic.\n\nSTYLE3: Heritage Kitchen Garden|Convert the space into productive cottage garden with raised vegetable beds using reclaimed wood, espaliered apple trees (Malus domestica) along south-facing boundaries, and herb spirals featuring thyme, sage, rosemary, and chives. Plant soft fruit bushes including Ribes nigrum, Ribes rubrum, and Vaccinium corymbosum. Create cutting garden areas with dahlias, sweet peas (Lathyrus odoratus), and cosmos. Maintain cottage charm with traditional picket fencing and gravel paths lined with lavender (Lavandula angustifolia) and catmint (Nepeta).\n\nSTYLE4: Alpine Meadow Garden|Transform lawn into naturalistic meadow using native wildflower mix including Leucanthemum vulgare, Centaurea cyanus, and Papaver rhoeas. Create rockery features using local stone with alpine plants like Sedum spectabile, Sempervivum, and Dianthus deltoides. Plant mountain ash (Sorbus aucuparia), juniper (Juniperus communis), and pine (Pinus sylvestris) as structural elements. Edge with heather (Calluna vulgaris), bilberry (Vaccinium myrtillus), and ornamental grasses including Festuca glauca and Deschampsia cespitosa for authentic Nordic highland character.\n\nSTYLE5: Perennial Border Paradise|Design flowing herbaceous borders around maintained central lawn using season-long interest perennials. Spring layer includes Helleborus orientalis, Pulmonaria, and Primula veris. Summer features Phlox paniculata, Monarda, Echinacea purpurea, and Rudbeckia fulgida. Late season interest from Sedum spectabile, Aster novi-belgii, and ornamental grasses. Structural backbone of Hydrangea paniculata, Spiraea japonica, and roses including Rosa rugosa. Edge with Alchemilla mollis, Geranium macrorrhizum, and seasonal bulbs for traditional English cottage garden adapted to Nordic climate.\nFinal styles to generate: ['Nordic Woodland Garden', 'Scandinavian Minimalist Garden', 'Heritage Kitchen Garden', 'Alpine Meadow Garden', 'Perennial Border Paradise']\nStarting 5 garden design generations in parallel...\nStarted: Nordic Woodland Garden\nStarted: Scandinavian Minimalist Garden\nStarted: Heritage Kitchen Garden\nStarted: Alpine Meadow Garden\nStarted: Perennial Border Paradise\nWaiting for: Nordic Woodland Garden\nCompleted: Nordic Woodland Garden -> garden_design_nordic_woodland_garden.jpg\nWaiting for: Scandinavian Minimalist Garden\nCompleted: Scandinavian Minimalist Garden -> garden_design_scandinavian_minimalist_garden.jpg\nWaiting for: Heritage Kitchen Garden\nCompleted: Heritage Kitchen Garden -> garden_design_heritage_kitchen_garden.jpg\nWaiting for: Alpine Meadow Garden\nCompleted: Alpine Meadow Garden -> garden_design_alpine_meadow_garden.jpg\nWaiting for: Perennial Border Paradise\nCompleted: Perennial Border Paradise -> garden_design_perennial_border_paradise.jpg\nAll garden designs completed!",
"output": [
"https://replicate.delivery/xezq/42angDPMbnY3L5uOqQokPaZq6PIEtc7z1x6wPl9pqpPbtxUF/garden_design_nordic_woodland_garden.jpg",
"https://replicate.delivery/xezq/oL7Ti0e8dGyTVqn29AccBYNZNv0R2j495jCuTDvICUT2ajpKA/garden_design_scandinavian_minimalist_garden.jpg",
"https://replicate.delivery/xezq/evuMoTUYrpXRe0JrSB605PyWADQaXAt5K6XJRZMX3Lgs1GTVA/garden_design_heritage_kitchen_garden.jpg",
"https://replicate.delivery/xezq/fskF6ZleRWucjUxJsTUN1mD0ZRBk9p9x6XjqrVFTMDWs1GTVA/garden_design_alpine_meadow_garden.jpg",
"https://replicate.delivery/xezq/DJVheEmSSlQiOaAcqxzgCfAOkOFxSTMiww3dZr5JkyLs1GTVA/garden_design_perennial_border_paradise.jpg"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-09-08T11:17:11.891Z",
"started_at": "2025-09-08T11:17:12.427816Z",
"completed_at": "2025-09-08T11:18:04.474763Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/835041jjadrm80cs545rwpynjc/cancel",
"children": "https://api.replicate.com/v1/predictions/835041jjadrm80cs545rwpynjc/children",
"get": "https://api.replicate.com/v1/predictions/835041jjadrm80cs545rwpynjc",
"root": "https://api.replicate.com/v1/predictions/835041jjadrm80cs545rwpynjc",
"stream": "https://stream.replicate.com/v1/files/bcwr-j7vcyjt2iyme5zd52dptqlfjdjnplrmhj4heefwgtppzns27v6uq",
"web": "https://replicate.com/p/835041jjadrm80cs545rwpynjc"
},
"metrics": {
"predict_time": 52.046947074,
"total_time": 52.583763
}
}




