Car Background AI
v1.0.3Replace car photo backgrounds, hide license plates and add dealer logos for vehicle listings.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_backgrounds List backgrounds
List the background scenes available for car photos: built-in studios, showrooms and outdoor settings, plus the workspace's own custom backgrounds (`custom: true`, made with create_background or in the app). Call this first to pick a scene: each entry has a preview image, an example with a car, and the `id` that generate_background takes as `background_id` (custom ones also go to refine_background and delete_background). Read-only and free; takes no parameters and returns every scene in one response. For logos use list_logos instead.
create_background Create custom background
Create a new reusable background scene for the workspace, such as the dealer's own showroom, a branded studio or a specific outdoor setting. Use it when none of the scenes in list_backgrounds fits; it does not edit a car photo (that is generate_background), and to adjust a custom background that already exists use refine_background instead of creating another. Give a `description`, `reference_image_urls`, or both; add `base_background_id` to start from a built-in scene and describe only what to change. Renders a preview with a demo car and returns it as an image plus the new background's `id`,…
| Parameter | Type | Description |
|---|---|---|
base_background_id | string | A built-in background `id` to start from; the description then says what to change. |
description | string | The scene: walls, floor, lighting, setting. E.g. 'A bright showroom with light oak flooring and floor-to-ceiling windows'. |
name | string | Display name. Suggested if omitted. |
reference_image_urls | array | Up to three public image URLs of the place or style to recreate. |
refine_background Refine custom background
Adjust a custom background that already exists and render a new preview, e.g. after create_background when the preview is close but not right. `description` is only the change to make ('make the floor darker and the lighting warmer'); everything else in the scene is kept, and `reference_image_urls` can show the look to move towards. The background is updated in place under the same `id` and name, so later generate_background calls use the refined scene; photos already generated are not changed. Works on custom backgrounds only, not built-in ones; to start a different scene use create_backgroun…
| Parameter | Type | Description |
|---|---|---|
background_id * | string | The `id` of a custom background. |
description * | string | What to change. |
reference_image_urls | array |
delete_background Delete custom background
Permanently delete one of the workspace's custom backgrounds, e.g. a scene the user no longer wants in their list. It cannot be undone through this server; a deleted scene has to be made again with create_background. Photos already generated with it are not affected, and no credits are charged or refunded. Only custom backgrounds (`custom: true` in list_backgrounds) can be deleted, never built-in ones. To change a scene instead of removing it, use refine_background. Returns the `id` with `deleted: true`, or `not_found` for an unknown id.
| Parameter | Type | Description |
|---|---|---|
background_id * | string | The `id` of a custom background. |
generate_background Replace photo background
Replace the background of one car photo with a chosen scene: the main tool for turning a phone photo into a listing photo. The car is kept as photographed and gets shadows, lighting and reflections that match the scene. Works on exterior, interior and detail shots. Pick `background_id` with list_backgrounds first and use the same one for every photo of a car. In the same call it can hide the plate (`hide_license_plate`, with `license_plate_style` and, for `logo`, a `license_plate_logo` from list_logos), draw a dealer `logo`, reframe to an `aspect_ratio`, centre the car or show it washed. To hi…
| Parameter | Type | Description |
|---|---|---|
background_id * | string | A background `id` from list_backgrounds. |
image_url * | string | Public HTTPS URL of the car photo (JPEG, PNG or WebP). |
aspect_ratio | string | Output aspect ratio. Omit to keep the photo's own. |
center_car | boolean | Experimental: centre, enlarge and level the car like a listing photo. |
clean_car | boolean | Experimental: show the car freshly washed. |
hide_license_plate | boolean | Hide a legible license plate (exterior photos). |
license_plate_logo | object | Required with license_plate_style `logo`. |
license_plate_style | string | With hide_license_plate: `plain` (default) replaces it with a blank plate, `blur` blurs it, `logo` shows the dealer's plate logo (set license_plate_logo). |
logo | object | Draw one of the workspace's logos on the result. |
hide_license_plates Hide license plates
Hide the license plates in a car photo without changing anything else, for privacy before publishing a listing. Use this when the background should stay as it is; when the background is being replaced as well, set `hide_license_plate` on generate_background instead of calling both. `style` chooses a blur (default) or a solid `block`, and `block_color` sets the block's colour. Uses no credits: it is included with an active subscription, up to a fair-use monthly limit, and returns `subscription_required` for a workspace without one. The source photo is not modified; the result is returned as an…
| Parameter | Type | Description |
|---|---|---|
image_url * | string | Public HTTPS URL of the car photo (JPEG, PNG or WebP). |
block_color | string | Hex colour of the block, e.g. #FFFFFF. Default black. |
style | string | Blur the plate (default) or cover it with a block. |
get_credits Get credit balance
Read the workspace's current credit balance, returned as `balance`. One credit is one photo from generate_background or one preview from create_background or refine_background; hide_license_plates uses none. Call it before a batch to check there are enough credits, or after an insufficient-credits error. Read-only and free; takes no parameters. It does not show plans or prices: when the balance is too low, use list_plans, then create_checkout (no subscription yet) or change_plan (existing subscription).
list_logos List logos
List the logos stored for the workspace, to get the `id` that other tools need. `type` selects which set is returned: `logo` (default) for dealer logos drawn on finished photos, passed as `logo.id` to generate_background, or `plate` for designs shown on the license plate, passed as `license_plate_logo.id`. Each entry has `id`, `type`, `image_url` and `created_at`. Also call it before delete_logo, or before upload_logo to see whether the logo is already stored. Read-only and free. For background scenes use list_backgrounds instead.
| Parameter | Type | Description |
|---|---|---|
type | string | `logo` (default): logos drawn on finished photos. `plate`: designs put on the license plate. |
upload_logo Upload logo
Store a logo for the workspace so it can be put on photos later. It does not change any photo by itself: pass the returned `id` to generate_background as `logo.id`, or as `license_plate_logo.id` for a `plate` logo. The file is fetched from `image_url` once and a copy is kept (PNG, WebP or JPEG up to 5 MB; a transparent background works best). `type` is `logo` (default) for dealer logos or `plate` for license plate designs, where `background` sets the plate colour behind a transparent logo. Up to seven per type: when full, remove one with delete_logo first. Check list_logos before uploading to…
| Parameter | Type | Description |
|---|---|---|
image_url * | string | Public HTTPS URL of the logo. |
background | string | Plate logos only: hex colour behind a transparent logo. Default white. |
type | string | `logo` (default): logos drawn on finished photos. `plate`: designs put on the license plate. |
delete_logo Delete logo
Permanently delete one of the workspace's stored logos, e.g. an outdated logo or to free one of the seven slots before upload_logo. It cannot be undone through this server; the logo has to be uploaded again to restore it. Photos already generated keep the logo they were made with, and later generate_background calls can no longer use this `id`. Get the `id` from list_logos, and pass the same `type` the logo was listed under (`logo` by default, or `plate`). Free. Returns the `id` with `deleted: true`, or `not_found` when the id is unknown for that type.
| Parameter | Type | Description |
|---|---|---|
id * | string | A logo `id` from list_logos. |
type | string | `logo` (default): logos drawn on finished photos. `plate`: designs put on the license plate. |
list_plans List subscription plans
List the subscription plans on offer, to quote prices or to get the `price_id` that create_checkout (workspace without a subscription) and change_plan (existing subscription) take. Each plan has its monthly photo allowance (`credits`), billing interval and price: `unit_amount` is in the smallest unit of `currency` (USD), and `currency_options` lists the fixed local prices whose keys create_checkout accepts as `currency`. Read-only and free; takes no parameters and is the same for every caller. It does not show the workspace's own balance: use get_credits for that.
create_checkout Create checkout link
Start a first subscription for a workspace that has none, e.g. when get_credits shows too few credits. Take `price_id` from list_plans; `currency` picks one of that plan's fixed local prices and `buyer` decides VAT handling for EU and UK buyers. This call charges nothing: it returns a Stripe checkout `url` for the user to open and pay, and the plan's photos are added once the payment completes. For a workspace that already subscribes it returns `already_subscribed`; use change_plan there instead. Needs an OAuth sign-in: with an API key it returns an error pointing to the app.
| Parameter | Type | Description |
|---|---|---|
price_id * | string | A `price_id` from list_plans. |
buyer | string | EU and UK buyers: `business` collects a VAT number (reverse charge), `personal` adds VAT. |
currency | string | A key of the plan's `currency_options` (e.g. `eur`) to pay the fixed local price. Omit for USD. |
change_plan Change subscription plan
Change the plan of a workspace that already has a subscription, to a `price_id` from list_plans. Always call it first with `confirm: false`, which for an upgrade returns a preview of the prorated charge and charges nothing, and get the user's agreement to that amount. With `confirm: true` an upgrade charges the payment method on file immediately and adds the photos at once, while a smaller plan charges nothing now and is booked to start at the next renewal. For a workspace without a subscription it returns `no_active_subscription`; use create_checkout there instead. It cannot cancel a subscrip…
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | false previews an upgrade; true applies the change. |
price_id * | string | A `price_id` from list_plans. |