Editing
AI-edit an existing generation
Edits an existing generation and saves the result as a new generation (the source is never modified). One synchronous model call; costs credits like a fresh generation (generate_* by output resolution).
Modes
| Mode | How |
|---|---|
| Plain-text edit | instructions only — "make the sky stormy" |
| Product placement | action: "bring" + reference_id — the reference's product is placed into the scene at true real-world scale, relit to match, worn/held/placed naturally |
| Swap/add specific items | action: "bring" + reference_id + items (names from GET /v1/detections) |
| Recolor items | action: "recolor" + reference_id + optional items |
| Remove items | action: "remove" + items (no reference needed). { "name": "person" } removes every person; { "id": 2 } (a detection id from GET /v1/detections on the base) removes only that one, located by its box |
| Add subjects to scene | action: "add" + reference_id + optional blend_level 0-100 |
| Merge two images | action: "merge" + reference_id + merge_bias (0 = reference dominates, 100 = base dominates) + merge_scope scene|items |
| Art-style transfer | action: "style" + reference_id + style_intensity 0-100 |
reference_id accepts an asset or generation you own.
The base photo is generation_id or asset_id (an image uploaded with POST /v1/assets), never both. An asset base is only read: the result is a new generation with parent_id: null that records the asset as its source, and the upload is never changed or copied.
post/v1/restyle
Request
- Base URL: https://nanostudiopro.com/api
- URL: https://nanostudiopro.com/api/v1/restyle
- Auth: HTTP bearer
Request body
Response
Edit complete; the new generation with a signed image URL.
Changes
No recorded changes to this operation across all 2 revisions of this API.