SwitchX Image

Beeble relighting and compositing: transfers an object, background, or light from text, one reference, and an optional mask onto the source photo with physically consistent lighting instead of generating from scratch. 720p and 1080p.

Cost

from 6 tokens

ImageProvider: Beeble
Run generation
curl -X POST https://api.givon.ai/api/v1/generations \
  -H "Authorization: Bearer $GIVON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"image","model":"switchx-image","input":{"prompt":"studio portrait of a red corgi, soft light","aspectRatio":"9:16","imageSize":"720p","sourceImage":"asset://asset_...","referenceAssetUris":["asset://asset_..."]}}'

Input fields

* required
prompt*prompt

Image description.

Type
string
Default
Allowed
string
aspectRatioaspectRatio
Type
string
Default
9:16
Allowed
9:16, 16:9, 1:1, 4:3, 3:4, 2:3, 3:2, 21:9
imageSizeimageSize
Type
string
Default
720p
Allowed
720p, 1080p
Source imagesourceImage

Asset used as the source image for image editing.

Type
string
Default
Allowed
image · asset, https, data
Mask imagemaskImage

Optional mask image for region editing. Requires sourceImage.

Type
string
Default
Allowed
image · asset, https, data
Reference imagesreferenceAssetUris

Optional reference images as asset:// URIs, HTTPS URLs, or data URIs.

Type
array
Default
Allowed
image · up to 1 · asset, https, data

Cost

from 6 tokens
720pdefault6 tokens
1080p18 tokens

The variant is selected automatically from request fields, so you do not need to send it.

Capabilities

Modestext_to_imageimage_editimage_reference
Asset slotssourceImage:imagemaskImage:imagereferenceAssetUris:image[]<=1

Run SwitchX Image

Get an API key and the same request shape will work across every model in the catalog.

SwitchX Image API - image generation · Givon AI