---
title: "POST /v1/stories/{id}/panels"
method: POST
path: "/v1/stories/{id}/panels"
tags: ["stories"]
---

# POST /v1/stories/{id}/panels

`POST /v1/stories/{id}/panels`

## Request

- Base URL: `https://api.mangii.ai`
- URL: `https://api.mangii.ai/v1/stories/{id}/panels`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string, required

## Request body

- ContinueStoryRequest
  - `prompt` string, required
  - `quality` 'standard' | 'hd' | 'ultra'
  - `identity_panel_id` string: Override Image 1 (identity) with this panel id from GET /v1/stories/{id}/panels.
  - `identity_image` string: Override Image 1 with an https URL or data URI. Do not also send identity_panel_id.
  - `reference_image` string: Alias for identity_image on continue and regenerate.
  - `continuity_panel_id` string: Override Image 2 (scene) with this panel id. Do not also send continuity_image.
  - `continuity_image` string: Override Image 2 with an https URL or data URI.
  - `context_panel_ids` string[]: Legacy [identity, scene] list. Ignored when named identity_* or continuity_* fields are set.
  - `async` boolean

## Response `200`

Sync completion (opt-in, long-timeout host only)

- GenerationResult
  - `credits_charged` integer, required
  - `credits_remaining` integer, required
  - `quality` string, required
  - `request_id` string, required
  - `job_id` string
  - `story_id` string
  - `panel_id` string
  - `image_url` string: HTTPS URL of the finished panel.
  - `next_step` string: What to call next.

## Other responses

- `202`: Job accepted
- `402`: Uniform error
- `409`: Idempotency-Key is already in flight (idempotency_in_progress — retry the same key) or was reused with a different body (idempotency_conflict — pick a new key).
- `429`: Per-key rate limit exceeded for the current minute bucket. Every /v1 operation shares one per-key limiter, so any of them can return this.

---

[API](https://skmtc.dev/mangii/apis/mangii-headless-api.md) · [All operations](https://skmtc.dev/mangii/apis/mangii-headless-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mangii/apis/mangii-headless-api/revisions/40aba1e6eae0?raw)
