Faster Creative Iterations
Generate multiple background variants (transparent, color, gradient) from a single source image programmatically and speed up review cycles.
Deliver campaign assets faster by automating background cleanup and producing brand-ready images at scale.
Ad campaigns require many variations of a single hero image — different crops, backgrounds, and aspect ratios for channels like Facebook, Instagram, and display networks.
Manually creating dozens of variants per asset slows down time-to-market and increases costs from design iterations and agency fees.
A/B testing is vital in digital advertising. To find the winning creative, marketers need to rapidly prototype the same subject against various backdrops, gradients, and thematic settings. Doing this manually creates a bottleneck that stifles data-driven marketing campaigns and ultimately lowers ROAS (Return on Ad Spend).
Generate multiple background variants (transparent, color, gradient) from a single source image programmatically and speed up review cycles.
Use simple scripts to create channel-specific crops and backgrounds automatically, reducing manual design time.
Flat per-image pricing makes budgeting for campaigns straightforward — no hidden fees for extra variants.
This example shows generating a white-background and a gradient-brand version for ad channels.
import requests
API_KEY = "YOUR_API_KEY"
files = {'image': open('hero.jpg','rb')}
# White background
resp = requests.post('https://fapihub.com/v2/rembg/color/', headers={'token': API_KEY}, files=files, data={'background_color':'255,255,255'})
open('hero_white.png','wb').write(resp.content)
# Gradient brand
resp2 = requests.post('https://fapihub.com/v2/rembg/gradient/', headers={'token': API_KEY}, files=files, data={'top_color':'255,0,0','bottom_color':'255,200,200'})
open('hero_gradient.png','wb').write(resp2.content)