Generate Background API

Create hundreds of new images from your existing images in seconds with Generative AI
These brands rely on PhotoRoom’s API

Upgrade your catalog branding

Create professional grade images, saving staff time and photographer costs. Our AI-powered image editing platform upgrades your visual assets by dynamically changing image backgrounds in seconds.

Seamlessly create pristine mockups

Develop multiple realistic images from a single photo. Try out different mockups for your next product launch or various seasonal promotions. Test multiple image ideas that can be shared with marketing and creative teams – all in seconds.

Boost conversion rates

Save on photography costs and accelerate your time to market for product and marketing campaign launches. Optimal backgrounds can increase conversion rates by as much as 30%.

Integrate our API, hassle-free

The Generate Background API is easy to implement on websites and native apps using your language of choice.
curl -X GET "https://beta-sdk.photoroom.com/v1/instant-backgrounds?imageUrl=&prompt=&negativePrompt=" \ -H "accept: image/jpg" \ -H "x-api-key: " curl -X POST "https://beta-sdk.photoroom.com/v1/instant-backgrounds" \ -H "accept: image/jpg" \ -H "Content-Type: application/json" \ -H "x-api-key: " \ -d "{\"imageUrl\":\"\",\"prompt\":\"\",\"negativePrompt\":\"\"}"

The Cool Republic uses the PhotoRoom API to transform its raw factory images

Ready to get started?

Explore the PhotoRoom API documentation, or create an account instantly and enable your API key to send an API request.


You can read our tutorial for more details on how to integrate the API.

Integrate the API

Pricing

Get a monthly credit package

1 credit = 1 processed full image
Please note: This pricing is for our beta period only. Prices are subject to change after the beta period ends.
Build for free
Free plan
$0
10 images/month
  • No credit card required (Requires signing in with Google)
  • Ideal for prototyping
Most popular
Monthly subscription
From $0.02*
Credits per monthPrice per image
  • 60 ($9)$5$0.08
  • 100 ($15)$8$0.08
  • 200 ($30)$15$0.08
  • 500 ($70)$35$0.07
  • 1,000 ($130)$65$0.07
  • 2,000 ($260)$130$0.07
  • Downgrade, upgrade or cancel any time
  • Unused credits roll over as long as you're subscribed (up to 6x your monthly budget)
Attribution
Partners plan
$0.01
From 100k images/month
  • For consumer-facing apps
  • Requires attribution

*Offer expires on 5th December, 2023 at 23:59 (Eastern time). Offer for 50% off the monthly PhotoRoom API subscription for first 3 months, for first time customers only. Each code is limited to one redemption per PhotoRoom API account. PhotoRoom reserves the right to modify, revoke or cancel the offer at any time. This offer cannot be combined with any other offer. Void where prohibited, not redeemable for cash and non-transferable.