Car Background AI

v1.0.3
ai.carbackground/carbackground Checked 3 days ago Published 4 days ago

Replace 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`,…

ParameterTypeDescription
base_background_idstringA built-in background `id` to start from; the description then says what to change.
descriptionstringThe scene: walls, floor, lighting, setting. E.g. 'A bright showroom with light oak flooring and floor-to-ceiling windows'.
namestringDisplay name. Suggested if omitted.
reference_image_urlsarrayUp 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…

ParameterTypeDescription
background_id *stringThe `id` of a custom background.
description *stringWhat to change.
reference_image_urlsarray

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.

ParameterTypeDescription
background_id *stringThe `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…

ParameterTypeDescription
background_id *stringA background `id` from list_backgrounds.
image_url *stringPublic HTTPS URL of the car photo (JPEG, PNG or WebP).
aspect_ratiostringOutput aspect ratio. Omit to keep the photo's own.
center_carbooleanExperimental: centre, enlarge and level the car like a listing photo.
clean_carbooleanExperimental: show the car freshly washed.
hide_license_platebooleanHide a legible license plate (exterior photos).
license_plate_logoobjectRequired with license_plate_style `logo`.
license_plate_stylestringWith 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).
logoobjectDraw 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…

ParameterTypeDescription
image_url *stringPublic HTTPS URL of the car photo (JPEG, PNG or WebP).
block_colorstringHex colour of the block, e.g. #FFFFFF. Default black.
stylestringBlur 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.

ParameterTypeDescription
typestring`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.

ParameterTypeDescription
price_id *stringA `price_id` from list_plans.
buyerstringEU and UK buyers: `business` collects a VAT number (reverse charge), `personal` adds VAT.
currencystringA 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…

ParameterTypeDescription
confirm *booleanfalse previews an upgrade; true applies the change.
price_id *stringA `price_id` from list_plans.