Infery.ai
← All tools

Composite (overlay) images

Image

image.composite

in: imageout: image

Overlay one image on top of another.

Pricing

Price
0.125 cr / request

Prices in credits (1 credit = $0.01).

Composite (Overlay) Images

Overlay one image on top of a base image at a specified gravity and blend mode.

When to use

  • Add a logo or watermark — place a brand mark in a corner of product images.
  • Combine design layers — merge a background with a foreground graphic.
  • Apply a frame or border overlay — superimpose a decorative frame PNG over photographs.

Inputs & outputs

Input modalityImage file (URL)
Output modalityImage file (GCS URL)
Max input size50 MB (base + overlay combined)
Supported formatsJPEG, PNG, WebP

Parameters

ParamRequiredDescription
overlay_urlyesURL of the image to overlay on the base. Must be publicly accessible or a GCS URL.
gravitynoPosition of the overlay — nw, n, ne, w, center (default), e, sw, s, se.
blendnoBlend mode — over (default), multiply, screen, overlay, darken, lighten.

Examples

Logo in bottom-right corner

{
  "type": "image.composite",
  "input": { "image_url": "gs://infery-prod-media/photos/product.jpg" },
  "params": {
    "overlay_url": "gs://infery-prod-media/assets/logo.png",
    "gravity": "se",
    "blend": "over"
  }
}

Screen-blend texture overlay

{
  "type": "image.composite",
  "input": { "image_url": "gs://infery-prod-media/photos/portrait.jpg" },
  "params": {
    "overlay_url": "gs://infery-prod-media/textures/light-leak.png",
    "gravity": "center",
    "blend": "screen"
  }
}

Pricing

Billed per megapixel of output image. See pricing dashboard for current rates.

Related capabilities

  • image.resize — resize overlay to desired dimensions before compositing
  • image.add_alpha_channel — ensure overlay has transparency before blending
  • image.pipeline — chain composite with other ops in a single execution

Examples

Logo bottom-right

{
  "overlay_url": "gs://b/logo.png",
  "gravity": "se",
  "blend": "over"
}