Before & After Image
before_after_imageFree (no credits): one comparison image from a before and an after photo of the same place — e.g. an empty room and its virtual staging, a daylight shot and its dusk version, a room before and after a restyle. Side by side, stacked, or split by a line; original shape, square, 4:5 or 9:16. Write the labels in the user's language. Returns a finished image at once.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aspect | No | Shape of the image: original (follows the photos), 1:1 square, 4:5 Instagram post, 9:16 Stories/Reels. | original |
| labels | No | Show the Before / After labels. | |
| layout | No | side = next to each other, stack = one above the other, vsplit = one frame split by a vertical line, diagonal = split by a slanted line. | side |
| listingId | No | A property folder (from list_listings or create_listing) to put the result in. Results of a photo that is already in a folder go there by themselves. | |
| afterLabel | No | Label text for the after photo, in the user's language (default "After"). | |
| afterR2Path | No | Storage path of the after photo — the alternative to afterImageUrl. | |
| beforeLabel | No | Label text for the before photo, in the user's language (default "Before"). | |
| beforeR2Path | No | Storage path of the before photo — the alternative to beforeImageUrl. For a Pixly result, its original photo is the job's source. | |
| afterImageUrl | No | The AFTER photo (e.g. the staged room, the dusk version). Public https URL or data: URI; or afterR2Path. | |
| beforeImageUrl | No | The BEFORE photo (e.g. the empty room, the daylight shot). Public https URL or data: URI; or beforeR2Path. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobs | No | Several jobs at once (get_job with jobIds, or a plan's steps): each one's jobId, status and results | |
| note | No | ||
| type | No | ||
| error | No | ||
| jobId | Yes | Pass to get_job to poll | |
| quote | No | Present when status is "awaiting_confirmation": nothing ran and nothing was charged yet — the price and settings the user is asked to confirm | |
| status | Yes | pending | processing | completed | failed — anything not completed/failed is still running | |
| createdAt | No | ||
| resultUrls | No | Present when completed; valid 7 days | |
| completedAt | No | ||
| resultPaths | No | Storage path of each result — pass one as r2Path (or beforeR2Path, a photos[] item) to run another tool on this result | |
| creditsCharged | No |