Proposed Forum Topic
Title:
Removing Unwanted Road Markings in AI-Generated Backgrounds with Photoroom v2
Hi Photoroom Community,
We’re integrating Photoroom’s /v2/edit endpoint into our dealership stock-photo system to automatically generate ultra-photorealistic backgrounds behind vehicle cutouts. Overall it’s working well, but we’re seeing unwanted white line markings on what should be a clean, unmarked asphalt surface—something our dealers immediately notice and that breaks the illusion of reality.
What We’ve Tried
-
API endpoint:
/v2/edit -
Prompt:
A bright, clean outdoor area with an even black bitumen large carpark in the foreground, free of clutter and perfectly maintained. Not a road. The background features a Melbourne city skyline and green trees. No rough roads. No road markings. Straight lines only. No rough edges. No gravel edges. No fences. No rails. No guard rails. It is daylight bathing the scene in soft, natural light with gentle shadows. The atmosphere is calm, serene, and ultra photorealistic. -
Result:
• Smooth bitumen texture
• White lines (road markings) still appear
What We’d Like to Achieve
-
A perfectly uniform black asphalt surface with zero line markings or stray white artifacts.
-
Background should look indistinguishable from reality—even on close inspection.
Questions for the Community
-
Prompt Tweaks:
-
How might we tighten the prompt to completely eliminate road markings?
-
Are there negative prompts or syntax conventions in Photoroom that explicitly suppress lines, stripes, or road-marking artifacts?
-
-
API Parameters / Settings:
-
Does Photoroom v2 offer any mask-refinement, “inpaint strength,” or “edge smoothing” options we’re not currently using that could help here?
-
Any undocumented headers or payload flags that control texture uniformity?
-
-
Workflow Suggestions:
-
Would a two-step process (e.g. first remove existing lines via a mask, then regenerate background) be more reliable?
-
Best practices for masking out unwanted features before background replacement?
-
-
Examples & References:
- If you’ve solved similar issues, could you share example prompts or payload snippets?
Environment Details
-
Backend: PHPon AWS EC2, processing via AWS SQS + PHP workers
-
Integration: Photoroom
/v2/editendpoint with default settings (no custom mask) -
Use Case: Dealership stock-photo backgrounds for online car listings
Thanks in advance for any insights or sample configurations you can share! We’re keen to make these backgrounds line-marking-free so our dealers can have the most realistic imagery possible.