---
title: "Edit a panorama and return the updated panorama"
method: POST
path: "/v1/panoramas/edit"
tags: ["panoramas"]
---

# Edit a panorama and return the updated panorama

`POST /v1/panoramas/edit`

Fetches the panorama behind the source (a request_id / world_id you created, or a panorama_id from a previous edit), applies the prompt + optional reference images, and returns the new panorama. Iterate by passing the returned panorama_id back in as the source; create a world from the final panorama via POST /v1/worlds with input { type: "panorama_id" }.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `source` union, required
    - object
      - `type` string, required
      - `request_id` string, required
    - object
      - `type` string, required
      - `world_id` string, uuid, required
    - object
      - `type` string, required
      - `panorama_id` string, required
  - `prompt` string, required
  - `images` union[]
    - union
      - object
        - `type` string, required
        - `file_id` string, required
      - object
        - `type` string, required
        - `image_url` string, uri, required
      - object
        - `type` string, required
        - `image_base64` string, required

## Response `200`

Edited panorama

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `402` — Insufficient credits
- `403` — Moderation rejected
- `404` — Source not found
- `409` — Source world is not ready yet
- `410` — Source panorama has expired
- `429` — Rate limit exceeded

---

[API](https://skmtc.net/spaitial/apis/spaitial-developer-api.md) · [All operations](https://skmtc.net/spaitial/apis/spaitial-developer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spaitial/spaitial-developer-api/revisions/f8a73c25c812/schema)
