Sample photo for Replace the sky in your photo in PictorX

Open a photo with a sky, or use the sample, then click Start. Pick a sky; the clouds, edge and light change at once.

More about AI models

Replace the sky in your photo

Sky replacement finds the sky with an AI model that runs on your device, so the photo is not uploaded. Pick a blue sky, sunset, golden hour, dusk, night or storm, set the clouds and the edge, and the landscape is relit to match the new light. The result opens as two layers, the new sky and the landscape, so you can keep editing either one. Open a photo with a sky, or use the sample, then click Start. Pick a sky; the clouds, edge and light change at once.

How it works

  1. Open a photo with some sky in it, such as a landscape, a skyline or a building, or use the sample.
  2. Click Start. On-device AI finds the sky and refines its edge around trees, wires and rooftops.
  3. Pick a sky, set Clouds, Cloud size, Edge softness and Relight, then save the picture or open it in the editor as layers.

The sky is found on your device

A sky segmentation model (U²-Net, MIT licence) runs in your browser with WebGPU or WebAssembly. Its mask is then refined on the photo itself with a guided filter, so leaves, branches, power lines and the outline of a roof keep their detail. The old sky's colour is taken out of the edge pixels, so no grey or white halo is left around the landscape. The sky is found once: changing the sky, the clouds or the light afterwards is instant.

A new sky, and the light to match

Blue sky, Clear sky, Cloudy, Sunset, Golden hour, Dusk, Night and Storm each paint a sky with its own gradient, a cloud layer seen in perspective, and a sun, moon or stars. Clouds sets how many clouds there are and Cloud size how big they are. Custom uses your own Top color and Horizon color. Relight tints and darkens the landscape towards the new sky, so a sunset sky gives a warm scene and a night sky a dark, cool one. Apply in the editor adds the sky and the landscape as two separate layers.

Frequently asked questions

How do I replace the sky in a photo?

Open a photo with some sky in it and click Start. On-device AI finds the sky and replaces it with a new one. Try the Blue sky, Sunset, Golden hour, Dusk, Night and Storm presets, set the clouds and the light, then save the picture. The same tool is in the editor under AI → Background → Sky replacement.

How do I get a clean edge around trees and buildings?

The edge is refined on the photo itself, and the old sky's colour is taken out of the edge pixels, so most photos need nothing more. Edge softness sets the transition: lower it for crisp rooftops and towers, raise it for dense leaves or hair-thin branches against a bright sky.

What photos work best?

Landscapes, skylines, buildings, beaches and street scenes with a visible sky. Flat grey, white or overexposed skies are the classic case. Fine detail such as tree branches and wires is kept by the edge refinement; Edge softness makes the transition softer or harder.

What does Relight do?

Relight tints the landscape towards the colour of the new sky and darkens it for dusk and night skies, so the scene looks lit by the new sky. Set it to 0 to keep the landscape exactly as it was.

Can I edit the sky and the landscape separately?

Yes. Apply in the editor, or the pencil on this page, gives two layers: the new sky and the landscape with the old sky cut out. Move, blur or recolour the sky, or put your own photo of a sky under the landscape.

Ready to try it?

Open PictorX in your browser — no install, no credit card required to start.

Go to Editor