10 codes, all free

ChatGPT secret codes for backgrounds

Upload a photo. Type one short code. ChatGPT moves you to a new place and keeps your face, pose and clothes.

Updated 27 September 2026

What is a ChatGPT secret code?

It is a short prompt that starts with a slash, like /backgroundcafe. You may have seen them in reels about "hidden ChatGPT tricks".

Here is the honest part: they are not hidden. ChatGPT has no list of secret commands. It reads the words inside the code and works out the rest from your photo. So a code works when its words paint a clear picture.

How to use a code

  1. Open ChatGPT.
  2. Upload one clear photo of a person.
  3. Type the code, for example /backgroundcafe, and send it. Nothing else.
  4. Not what you wanted? Generate again, or paste the longer prompt under the code.
The same woman in four places: a café, a rooftop at sunset, a beach and a hotel lobby
The cover is a preview made with GPT Image 2.5 on OpenArt. It is not a code result.

If the code misses

A short code leaves a lot for ChatGPT to guess, so results change from try to try. Run it again, or use the longer prompt under each code. It spells out exactly what you want.

You can also paste the longer prompt into other image tools, for example GPT Image 2.5 or Nano Banana on OpenArt.

Café

Code #1
/backgroundcafe

A cozy café with warm lights.

Longer prompt (back-up)
Keep the person from the uploaded photo exactly the same: face, skin, eyes and body shape. Same pose and outfit. Replace the background with a cozy café, warm lights, coffee cups on the table, soft blur.

Hotel lobby

Code #2
/backgroundhotel

A luxury hotel lobby with marble.

Longer prompt (back-up)
Keep the person from the uploaded photo exactly the same: face, skin, eyes and body shape. Same pose and outfit. Replace the background with a luxury hotel lobby, marble floor, gold details, soft light.

Rooftop

Code #3
/backgroundrooftop

A city rooftop at sunset.

Longer prompt (back-up)
Keep the person from the uploaded photo exactly the same: face, skin, eyes and body shape. Same pose and outfit. Replace the background with a rooftop terrace, city skyline at sunset, warm light on the face.

Beach

Code #4
/backgroundbeach

A sunny beach with blue water.

Longer prompt (back-up)
Keep the person from the uploaded photo exactly the same: face, skin, eyes and body shape. Same pose and outfit. Replace the background with a sunny beach, turquoise water, soft sea breeze in the hair.

City street

Code #5
/backgroundstreet

A real city street behind you.

Longer prompt (back-up)
Keep the person from the uploaded photo exactly the same: face, skin, eyes and body shape. Same pose and outfit. Replace the background with a busy city street, shop windows, natural daylight, soft blur.

Garden

Code #6
/backgroundgarden

A green garden with flowers.

Longer prompt (back-up)
Keep the person from the uploaded photo exactly the same: face, skin, eyes and body shape. Same pose and outfit. Replace the background with a green garden full of flowers, soft daylight.

Office

Code #7
/backgroundoffice

A modern, bright office.

Longer prompt (back-up)
Keep the person from the uploaded photo exactly the same: face, skin, eyes and body shape. Same pose and outfit. Replace the background with a modern bright office, plants and glass walls, soft blur.

Luxury interior

Code #8
/backgroundluxury

An expensive-looking room.

Longer prompt (back-up)
Keep the person from the uploaded photo exactly the same: face, skin, eyes and body shape. Same pose and outfit. Replace the background with a luxury living room, velvet sofa, art on the walls, warm light.

Blurred

Code #9
/backgroundblur

Keeps the place but blurs it, like a pro camera.

Longer prompt (back-up)
Keep the person from the uploaded photo exactly the same: face, skin, eyes and body shape. Same pose and outfit. Keep the same place but blur the background strongly, like an 85mm lens at f/1.4.

Cinematic

Code #10
/backgroundcinematic

A moody, film-like scene behind you.

Longer prompt (back-up)
Keep the person from the uploaded photo exactly the same: face, skin, eyes and body shape. Same pose and outfit. Replace the background with a moody cinematic city at dusk, neon signs, film colour grade.

How to make your own code

A code is a picture squeezed into one word. Name things you can see, not feelings.

PartExamples
Wherecity, café, beach, studio
How big or closegiant, tiny, close-up, full body
What happenssplash, walking, laughing, frozen
How it is shotlow angle, flash, golden hour, black background

Put two or three of these together into one word. Then test your code in a new chat, three times, with a different photo each time. Keep it only if all three look good.

Questions

Are ChatGPT secret codes real hidden commands?

No. ChatGPT has no secret list of codes. A code like /backgroundcafe is just a short prompt with the spaces taken out. ChatGPT reads the words inside it and guesses the rest. That is why a good code is a clear picture in two to four words.

Why does my result look different from the example?

ChatGPT makes a new image every time, and it fills in the details itself. Your photo and even your chat history change the result. If the code misses, run it again, or use the longer prompt under it.

Do these codes work in other AI image tools?

Many image tools send your text straight to the image model, with no chat model in between to read the code. There, the longer prompt is the safer choice.

What photo should I upload?

One sharp, front-facing photo in good light, with the face easy to see. ChatGPT copies what it can see, so a dark or blurry photo gives you a dark or blurry face.

Can I make my own codes?

Yes. Name the picture you want: the place, the size, the light or the style. Every word in a good code describes something you can see. A word like /cool does not, so the results jump around.

Are these codes free?

Yes. Copy them, change them and use the images for your own posts.

More secret codes