ApyHub

Change Background of Images API

Compose a subject image onto a new background using files or URLs. Returns PNG downloads or signed links for product shots and social assets. Change Image…

Media & content#photography

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Compose a subject image onto a new background using files or URLs. Returns PNG downloads or signed links for product shots and social assets.

Change Image Background lets you place a subject image onto a new background and get back a PNG. Send either a multipart upload or image URLs, then choose a solid background color or a background image, along with optional sizing, rotation, opacity, and placement settings.

Use the multipart endpoints when you already have the files in hand, or the URL endpoints when your images live elsewhere. The request schemas support a foreground image plus either background_color or a background image input. You can also adjust image_size, image_angle, image_opacity, image_position, background_size, and background_opacity to control the final composition.

Authenticate every request with your ApyHub token in the apy-token header. Documentation: https://apyhub.com/utility/image-processor-change-background

Endpoints 4

  • POSTChange image background/apyhub/change-image-background/multi-part/downloadUpload a subject image and a background image to generate a composited image download.
  • POSTChange image background/apyhub/change-image-background/multi-part/linkUpload a subject image and an optional background image to generate a new composite, returning a signed URL for the result.
  • POSTChange image background/apyhub/change-image-background/url/downloadGenerate a composed image from a foreground image URL and a background image URL, then optionally name the output with a query parameter.
  • POSTChange image background/apyhub/change-image-background/url/linkGenerate a PNG from an image URL and place it on a background image.

API details

Base URL
https://api.eu.apyhub.com
Authentication
An API key in the apy-token header
Operations
4 operations on 4 pathsPOST 4
Response formats
application/json
Description format
OpenAPI 3.0.3, API version 1.0.0

How to test the Change Background of Images API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Change Background of Images API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the apy-token header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Change image background” (POST /apyhub/change-image-background/multi-part/download), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Change Background of Images API?

Compose a subject image onto a new background using files or URLs. Returns PNG downloads or signed links for product shots and social assets. Change Image… It is listed under Media & content and has 4 endpoints.

Who publishes the Change Background of Images API?

It is listed from ApyHub's public API description (an OpenAPI document), not published by ApyHub on Swastik Codes. Anyone who controls apyhub.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Change Background of Images API?

Requests go to https://api.eu.apyhub.com. Endpoint paths are added to this base URL.

How do I authenticate with the Change Background of Images API?

With an API key in the apy-token header.

How many endpoints does the Change Background of Images API have?

4 operations on 4 paths (4 POST).

Is forking the Change Background of Images API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.