Skip to content

Image

Available Properties

PropertyDescription
image_urlString. HTTP(s) URL of your image. Max 10 MB. Supported: jpeg, png, webp, svg, gif, tiff. Tiff is only supported for Print designs. For Print designs the maximum file size is 500 MB.
image_encodedString. Base64 encoded image. Ignored if image_url is provided
opacityInteger 0–100. Opacity of the image
fitting_typeSee Fitting Type
alignmentSee Alignment
mask_name / mask_propertiesSee Mask
filter_name / filter_propertiesSee Filter
overlay_direction / overlay_color_1 / overlay_color_2See Overlay
shadow_color / shadow_blur / shadow_offset_x / shadow_offset_ySee Shadow
remove_bg / remove_bg_propertiesSee Remove Background
auto_focus / auto_focus_propertiesSee Auto Focus
text_to_image / text_to_image_propertiesSee Text to Image & Inpainting. Ignored if image_url or image_encoded is given

Fitting Type

fitting_type defines how the image fills its bounding box:

  • cover: Fills the area entirely without changing aspect ratio (may crop) — equivalent to CSS object-fit: cover
  • fill: Scales the image to fit entirely within the box (may leave empty space) — equivalent to CSS object-fit: contain

TIP

If you're familiar with CSS, note that Abyssale's fill maps to CSS contain, not CSS fill.

ValueResult
"fitting_type": "fill"Fitting type fill
"fitting_type": "cover"Fitting type cover

Alignment

alignment overrides the default image alignment.

  • One string: top, middle, bottom, left, center, right
  • Two strings: vertical + horizontal, e.g. "top left", "middle right"
ValueResult
cover + alignment: middle centerCover middle center
cover + alignment: middle rightCover middle right
fill + alignment: bottom centerFill bottom center
fill + alignment: middle centerFill middle center

Mask

mask_name applies a shape mask to the image:

ValueDescriptionPreview
circleCircular maskCircle mask
rounded_cornersRounded corners. Requires mask_properties: { "radius": <integer> }Rounded corners mask
blobBlob shapeBlob mask
squircleSquircle shapeSquircle mask
pentagonPentagon shapePentagon mask
hexagonHexagon shapeHexagon mask
parallelogramParallelogram shapeParallelogram mask

Filter

filter_name applies a color filter:

  • grayscale: Converts image to grayscale
  • duotone: Applies a duotone filter. Requires filter_properties: { "name": "<duotone_name>" }

Available duotone names: blue_orange, deep_green_light_green, BrightRed_light_yellow, brown_pale_green, brown_beige, deep_blue_green, deep_blue_red, deep_purple_orange, deep_purple_beige, deep_purple_pale_green, deep_blue_pale_green

FilterPreviewFilterPreviewFilterPreview
OriginalOriginal imagegrayscaleGrayscale filterduotone: blue_orangeDuotone blue orange
duotone: deep_green_light_greenDuotone deep green light greenduotone: BrightRed_light_yellowDuotone BrightRed light yellowduotone: brown_pale_greenDuotone brown pale green
duotone: brown_beigeDuotone brown beigeduotone: deep_blue_greenDuotone deep blue greenduotone: deep_blue_redDuotone deep blue red
duotone: deep_purple_orangeDuotone deep purple orangeduotone: deep_purple_beigeDuotone deep purple beigeduotone: deep_purple_pale_greenDuotone deep purple pale green
duotone: deep_blue_pale_greenDuotone deep blue pale green

Overlay

Adds a monochrome or gradient overlay. All three properties are required:

  • overlay_direction: "horizontal", "vertical", or "diagonal"
  • overlay_color_1: First color (6–8 digit hex)
  • overlay_color_2: Second color (6–8 digit hex). Set both to the same color for a monochrome overlay
ValueResult
Gradient horizontal (overlay_color_1: "#FF000080", overlay_color_2: "#0000FF1A")Overlay gradient horizontal
Gradient verticalOverlay gradient vertical
Gradient diagonalOverlay gradient diagonal
Monochrome (both colors the same)Overlay monochrome

Remove Background

Automatically removes the background from an image using AI.

ParameterTypeDescriptionDefault
remove_bgBooleanActivates background removalfalse
remove_bg_propertiesObjectAdditional settings
remove_bg_cropBooleanTrims edges after removalfalse
modelStringBackground removal model to use, see Models belowbria-rmbg-2-0
json
{
  "remove_bg": true,
  "remove_bg_properties": {
    "remove_bg_crop": true,
    "model": "birefnet"
  }
}
ValueResult
"remove_bg": trueRemove background true
"remove_bg": true + "remove_bg_crop": trueRemove background with crop

Models

ModelDescription
bria-rmbg-2-0BRIA RMBG 2.0 — default model
birefnetBiRefNet
pixelcutPixelcut
imageUtilsImageUtils
ideogramIdeogram

Auto Focus

Automatically detects and focuses on specified objects using AI.

ParameterTypeDescriptionDefault
auto_focusBooleanActivates auto-focusfalse
auto_focus_propertiesObjectAdditional settings
modelString"generic", "people", or "face""generic"
focus_objectsArray of stringsObjects to focus on (generic model only). Uses Open Images Dataset labels
focus_framingStringpeople model only: "face", "head", "shoulders", "full_body""face"
focus_zoomStringpeople model only: "off", "low", "medium", "max""max"
focus_targetStringpeople model only: "largest", "left", "middle", "right", "all""all"

Generic model example:

json
{
  "auto_focus": true,
  "auto_focus_properties": {
    "model": "generic",
    "focus_objects": ["Woman", "Car"]
  }
}
ValueResult
auto_focus: falseAuto focus disabled
model: "generic"Auto focus generic
model: "face"Auto focus face
focus_objects: ["man"]Auto focus man
focus_objects: ["woman"]Auto focus woman
focus_objects: ["boy"]Auto focus boy
focus_objects: ["woman", "boy"]Auto focus woman and boy

People model example:

json
{
  "auto_focus": true,
  "auto_focus_properties": {
    "model": "people",
    "focus_framing": "shoulders",
    "focus_zoom": "low",
    "focus_target": "right"
  }
}
ValueResult
people, shoulders, low zoom, rightAuto focus people shoulders right
people, shoulders, low zoom, leftAuto focus people shoulders left
people, head, max zoom, leftAuto focus people head left

Text to Image & Inpainting

Generates an image from a text description using AI, or edits an existing image with AI (inpainting). Only available for asynchronous generation. Ignored if image_url or image_encoded is provided.

ParameterTypeDescriptionDefault
text_to_imageBooleanActivates AI image generationfalse
text_to_image_propertiesObjectGeneration settings
promptStringDescription of the image to generate, or of the edit to apply in inpainting modeRequired
modelStringModel to use, see Models belownano-banana-2
ratioStringAspect ratio or size of the output. Allowed values depend on the model — see ModelsModel-dependent
qualityStringOutput quality/resolution. Only supported by some models — see ModelsModel-dependent
inpaint_imagesArray of stringsURL(s) of the image(s) to edit. When provided, switches generation to inpainting mode instead of pure text-to-image

Text to image

Without inpaint_images, a new image is generated purely from the prompt:

json
{
  "text_to_image": true,
  "text_to_image_properties": {
    "prompt": "A sleek, modern glass villa situated in the middle of a minimalist lavender field. Sharp lines, reflection of the blue sky in the windows, wide-angle shot, architectural photography style, hyper-realistic.",
    "model": "nano-banana-2",
    "ratio": "16:9",
    "quality": "2K"
  }
}
Result
Text to image result

Inpainting

With inpaint_images, the model edits the provided image(s) according to the prompt instead of generating from scratch:

json
{
  "text_to_image": true,
  "text_to_image_properties": {
    "prompt": "enhance the product by adding a background decoration to highlight the product",
    "model": "gpt-image-2",
    "ratio": "square_hd",
    "quality": "low",
    "inpaint_images": [
      "https://production-banners.s3-eu-west-1.amazonaws.com/.../v2_2e4388e8-161d-4b15-a5b6-895fcebe2943.jpeg"
    ]
  }
}
Reference image (inpaint_images)Result
Inpainting reference imageInpainting result

Models

Both text-to-image generation and inpainting use the same models. ratio accepts either aspect-ratio values (e.g. "16:9"), named sizes (e.g. "square_hd"), or pixel dimensions (e.g. "1024x1024") depending on the model. Models marked Not supported for quality ignore the quality parameter if it is provided.

Modelratio valuesDefault ratioquality valuesDefault quality
gemini-3-pro1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 5:4, 4:51:11K, 2K, 4K1K
kling-image-o31:1, 8:1, 4:1, 21:9, 16:9, 3:2, 4:3, 5:4, 4:5, 3:4, 2:3, 9:16, 1:4, 1:81:11K, 2K, 4K1K
wan-2.7square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9square_hdNot supported
gpt-image-1.51024x1024, 1536x1024, 1024x15361024x1024low, medium, highmedium
flux-2-prosquare_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9square_hdNot supported
qwen-2511square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9square_hdNot supported
nano-banana21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:161:1Not supported
nano-banana-2 (default model)1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 5:4, 4:5, 4:1, 1:4, 8:1, 1:81:10.5K, 1K, 2K, 4K1K
nano-banana-pro21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:161:11K, 2K, 4K1K
seedream-4.5square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9, auto_2K, auto_4Ksquare_hdNot supported
gpt-image-2square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9square_hdlow, medium, highhigh
grok-imagine2:1, 20:9, 19.5:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:19.5, 9:20, 1:22:11k, 2k1k
flux-2-klein-9bsquare_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9square_hdNot supported
gemini-2.5-flash21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:1621:9Not supported
gemini-3.1-flash1:1, 8:1, 4:1, 21:9, 16:9, 3:2, 4:3, 5:4, 4:5, 3:4, 2:3, 9:16, 1:4, 1:81:10.5K, 1K, 2K, 4K1K