Hi Eliot. It could be linked.In my case, I have decided to omit the background.expandPrompt.modefield entirely. That is how I understood the request should be configured to NOT have any expandPrompt behaviour.
In the documentation it says:
background.expandPrompt
If ai.auto, a pre-processing step is applied to expand the prompt into a longer form.
auto and never are legacy values that will be removed in the next major version.
There is no mention of background.expandPrompt.mode nor any mention of ai.never.
But if you changed the default behaviour when no parameter is passed in, then that may have caused the issue.
I’ve also verified, it seems, that passing no parameter gives the same output as passing “ai.never”.
But my results has deteriorated.
Below is the full request:
2025-09-27T05:09:06.473864255Z [Info] 🔍 Complete HTTP Request to PhotoRoom:
2025-09-27T05:09:06.473865880Z
2025-09-27T05:09:06.473866588Z [Info] URL: ``https://image-api.photoroom.com/v2/edit
2025-09-27T05:09:06.473867380Z
2025-09-27T05:09:06.473868088Z [Info] Method: POST
2025-09-27T05:09:06.473868796Z
2025-09-27T05:09:06.473873213Z [Info] Headers: {
2025-09-27T05:09:06.473874005Z “x-api-key”: “[REDACTED]”,
2025-09-27T05:09:06.473874963Z “pr-ai-background-model-version”: “background-studio-beta-2025-03-17”
2025-09-27T05:09:06.473875963Z }
2025-09-27T05:09:06.473876671Z
2025-09-27T05:09:06.473891046Z [Info] Form Data Parameters: {
2025-09-27T05:09:06.473902255Z “imageFile”: “[File: IMG-20250804-WA0000.jpg]”,
2025-09-27T05:09:06.473904171Z “export.format”: “jpeg”,
2025-09-27T05:09:06.473905088Z “background.color”: “white”,
2025-09-27T05:09:06.473905963Z “removeBackground”: “true”,
2025-09-27T05:09:06.473906880Z “scaling”: “fit”,
2025-09-27T05:09:06.473908005Z “shadow.mode”: “ai.soft”,
2025-09-27T05:09:06.473908796Z “export.dpi”: “300”,
2025-09-27T05:09:06.473909546Z “padding”: “0.075”,
2025-09-27T05:09:06.473959588Z “margin”: “0.05”,
2025-09-27T05:09:06.473965421Z “outputSize”: “1200x800”,
2025-09-27T05:09:06.473966296Z “horizontalAlignment”: “center”,
2025-09-27T05:09:06.473967171Z “verticalAlignment”: “center”,
2025-09-27T05:09:06.473968796Z “background.prompt”: “A high-end, spacious car photography studio. The floor is a reflective, high-gloss gray epoxy. The background is a large, clean, dark gray cyclorama wall. The lighting is bright and diffused, On the back wall, to the side, there is a blank space for a logo. No car in the shot. High resolution, photorealistic.”,
2025-09-27T05:09:06.473971713Z “background.seed”: “55994449”,
2025-09-27T05:09:06.473972546Z “segmentation.prompt”: “Segment the main salient car in the image”
2025-09-27T05:09:06.473973463Z }
2025-09-27T05:09:06.473974171Z
2025-09-27T05:09:11.431388674Z [Info] 📥 PhotoRoom Response Status: 200