---
title: "Beeble SwitchX Image Edit API & Playground - Comfy"
description: "Beeble SwitchX Image Edit: Swaps an image's background, lighting, or costume from a reference image or prompt while preserving the subject."
canonical: https://comfy.org/hub/models/beeble-switchx-image-edit/
lang: en
index: https://comfy.org/llms.txt
---

[Models](https://comfy.org/hub/models/)

Beeble

[Edit images](https://comfy.org/hub/models/?useCase=edit-images)

# Beeble SwitchX Image Edit

Swaps an image's background, lighting, or costume from a reference image or prompt while preserving the subject.

- Use via API
- [Open in Cloud](https://stagingcloud.comfy.org/)

Cost depends on your settings.

- [relighting](https://comfy.org/hub/models/?q=relighting)
- [compositing](https://comfy.org/hub/models/?q=compositing)
- [image-to-image](https://comfy.org/hub/models/?q=image-to-image)

## Playground

Input

Alpha matte

Provide a matte URI when Transparency mode is custom or select.

Select or drop an image PNG, JPEG, WEBP ·  up to 25 MiB

Prompt

Describe the result, or provide a Style reference.

Style reference

Provide a reference image URI to guide the style; Prompt can be left empty.

Select or drop an image PNG, JPEG, WEBP ·  up to 25 MiB

Source image or video

Provide the image or video to transform as a URL, upload URI or data URI.

-

Transparency mode

Choose how transparency is determined for the input.

Resolution

Output

![Beeble SwitchX Image Edit: Studio to neon alley](https://media.comfy.org/website/workshop/beeble/switchx-image-edit/studio-to-neon-alley.png)

Example

## Try an example

-

## Call this model from your code

Sends your Playground inputs to Comfy Router.

[API docs (opens in a new tab)](https://docs.comfy.org/development/comfy-router/models#beeble)

1. ### Get an API key

  Needs a paid Cloud plan with credits.

  [Get an API key (opens in a new tab)](https://platform.comfy.org/profile/api-keys?onboarding=models&model=beeble--switchx-image-edit--edit-images)
2. ### Install the SDK

  Python 3.10+. Also on npm as @comfyorg/sdk.

  pip install comfy-sdk==0.2.0
3. ### Run it

  Calls Comfy Router at this endpoint with your COMFY_API_KEY.

  POST /v2/models/beeble/switchx

Fill in the Playground inputs to generate a request.

## More from Beeble

Compare Beeble's other models. Price is the default setting; resolution and duration show the full range each model offers.

| Model | Price | Resolution | Duration |
| --- | --- | --- | --- |
| [Beeble SwitchX Video Edit](https://comfy.org/hub/models/beeble-switchx-video-edit/) | — | — | — |
