---
name: atelier151a
description: Submit authorized video generation, continuation and upscale jobs individually or in batches, check or cancel waiting orders, and download results from the Atelier 151A workbench.
---

## 00N shooting briefs

The account flag `prompt_policy.smart_writer_included` indicates whether the quoted video price covers automatic layout assistance. Only explicit smart submission and an explicitly marked imported shot are eligible. Layout assistance can label paragraphs but cannot change their words, sequence, dialogue or supplied roles. Include this disclosure when offering that mode. If the flag is off, the order does not invoke the external writer.

When the user asks to write or expand a prompt, use the [Comera 00N prompt-writing skill](https://43.155.26.44/agent/comera-00n-prompt-writing/SKILL.md) for 00N jobs. Its [complete ZIP](https://43.155.26.44/agent/comera-00n-prompt-writing.zip) includes both referenced guides.

## Reference-aware prompts

When submitting a delivered draft without editing its text or context, pass the organizing receipt as `--preparation-id` (API and MCP `preparation_id`). The service checks its owner, original draft contents, selected assets, roles and settings, and links the video to the existing fee.

CLI 1.4.1 and MCP expose `organize`. Start with a free quote, passing the same shot text, selected references, roles, aspect and duration as the intended order. CLI example: `Atelier151A organize --prompt-file shot.txt --image hall.png --image-role scene --json`. When the member requests a draft and the quote returns `enabled: true` and `points: 0`, pass `--max-points 0` (MCP: `max_points: 0`). This calls the writing service without a separate point charge. For a positive quote, obtain approval for that amount before continuing. Keep the same request ID for interrupted calls and read the existing draft. Organizing alone does not create a video.

Normal submissions preserve the author's original words and roles. Explicit `prompt_mode: smart` (CLI `--prompt-mode smart`) checks for known external additions when enabled by `account.prompt_policy`. Mark `confirm_node_template: true` only if you know the node appended the detected template; matching words alone do not establish their source. If a declared scene is mapped as a person, verify the role from the author or upstream node. Keep the user's dialogue, negations and selected reference identities unchanged; missing media must be supplied or removed from the brief. The owner can retrieve the submitted model text from order status under `prompt_review.final_prompt`.

For a paid standalone draft, use the quote's `request_id` as its attempt ID. Preserve it after timeouts. An unchanged quote may report `retry_of` if the prior attempt definitively failed. Obtain approval for a new attempt at the quoted price, then return the new `request_id`, `retry_of` and `max_points` (CLI `--retry-of OLD_ID`). An ambiguous result never authorizes a fresh attempt.

For a video order, `order_preparation_released` means the writer failed before order acceptance. The author may discard the draft or submit with the same nonce and `prompt_mode: original`. With CLI use `submit --resume RECEIPT --recover-original`, or `batch --resume RECEIPT --recover-original POSITION`. With MCP repeat the exact original arguments including request ID, adding `recover_original: true` only after approval. During `preparation_pending` keep querying the same submission.

A shot brief may be in Chinese, another language, or a format used by another video model. Keep the visual intent, spoken lines and intended on-screen words in their original language. When drafting new text, put production notes, proofreading translations and asset tables outside the model prompt. When the user supplies a finished script, send it verbatim. In the preview, confirm any quoted lines whose purpose is unclear. For example, a Japanese spoken line stays Japanese even when the crew supplies a Chinese working translation. A voice sample supplies timbre; it does not identify the words to speak. Use the existing H3 expansion only when adaptation is wanted and review the draft before ordering.

`Atelier151A expand --prompt ...` drafts from text alone. For a shot with media, use the reference controls in the workbench, or POST the actual order fields to `/hk-api/prompt-expand` with the existing website Agent authorization. Include `operation`, `aspect`, `seconds`, `prompt`, and only the enabled asset IDs under `references.images`, `references.audio` and `references.video`. For continuation include the ready `parent_id`. Independent audio follows the video soundtrack when `references.use_video_audio` is true. Optional `reference_roles` maps each active asset ID to its role (for example `first`, `appearance`, `voice` or `motion`).

Before submitting, POST those same fields to `/hk-api/prompt-preview`. Show the returned `prompt`, `references`, `notes`, `issues` and `warnings` to the user. Resolve missing slots and unclear dialogue. Submit the user-approved text unchanged, with the same references in the same order. Reference roles are metadata. Never append role instructions, templates, or translations. Expansion is optional and requires the user to select the draft. Use a separate optional `title` for the shot name. If a warning concerns aspect or duration, get the user's choice before using `confirmed_settings: true` or CLI `--confirmed-settings`. A preview or expansion creates no video order.

# Atelier151A

1. Check `Atelier151A --version`. If the CLI is missing, use the Windows PowerShell or Linux command under [手动安装 CLI](https://43.155.26.44/agent#install). Those installers use Python 3.10 or newer and verify the downloaded CLI against its release manifest.
2. Run `Atelier151A account --json`. If login is needed, use `Atelier151A login "path/to/atelier-agent.json"` with the local file the user provides. The user can download it from 「Agent 接入」 in the workbench. Keep the configuration private. Check `generation` for permission to submit. Show `dispatch.message` for current availability. Keep the original order ID when service is busy or unavailable. Checking the account is free.
3. With the user's request and confirmed inputs, use `Atelier151A submit`, `continue`, or `upscale` with optional `--title`. Check the [workbench guide](https://43.155.26.44/agent#jobs) for arguments and the JSON batch format. `Atelier151A batch shots.json --json` submits the confirmed shots in the input order and reports each ID as it is confirmed in the local batch receipt. If interrupted, resume with the same subcommand and `--resume RECEIPT`.
4. Keep the local submission receipt and the accepted order ID. Print any `storage_notice.message` from the account or submission. Starting with CLI 1.3.0, submit, continue, upscale and batch return the receipt right away and start collecting confirmed orders in the background. The CLI saves verified MP4s to `~/Downloads/Atelier151A`; MCP saves inside the selected media directory. Use `--download-dir PATH` to choose a CLI folder or `--no-download` if your own script handles delivery.
5. Use `Atelier151A orders --active --json` for active orders. Use `status ORDER_ID --json` to check one, including its download deadline and `local_downloads`. Report a local result only when the pickup state is `saved`. Automatic pickup requires the client computer to be on and online before the deadline. New renders are downloadable for six hours after completion. After a restart or a 24-hour wait, run `Atelier151A pickups --json` to resume collection of known orders. On older clients use `download ORDER_ID [PATH]` when ready. To cancel a waiting order with permission, use `cancel ORDER_ID` and query the current status on HTTP 409.

For direct HTTP calls, save each shot's own nonce and complete request before POSTing to `/hk-api/orders`. POST the same body and nonce again after a dropped reply. GET `/hk-api/orders` returns active orders and recent history. POST `{}` to `/hk-api/orders/ORDER_ID/cancel` to cancel an order still waiting.

For 00N, the one-hour generation clock starts when that order begins generating. Each shot in a batch has its own clock.

Installation and the account check only set up access.

## 工作台 MCP

CLI 1.2.1 起内置本地 stdio 服务。在 MCP 客户端把 command 设为本机 Python 3.10+ 可执行文件的绝对路径，args 逐项填写已安装的 `atelier151a.py` 完整路径、`mcp`、`--media-dir` 和用户选定的现有素材目录。服务复用本机已登录的工作台配置，首次连接先发现工具并调用 `account`。Windows 默认脚本为 `%LOCALAPPDATA%\Atelier151A\cli\atelier151a.py`，请把环境变量展开为实际路径。

工作台提供 `account`、`orders`、`status`、`generate`、`continue`、`upscale` 和 `download`。后三种下单操作各使用一个持久的 `request_id`，重试时使用原工具、原标识和原参数。有订单号时调用 `status`。续拍和独立 Relay 必须指定用户选中的 `parent_id`。图片、音频、视频及下载文件名均使用授权素材目录内的相对路径。订单回执由 CLI 在账号配置旁管理。批量提交沿用 CLI 的 `batch`。

## 工作流版本和续拍

心摄绘 Comera 00N TLR 支持文字或参考素材拍摄。每条 5–15 秒，可选三个清晰度、七种画幅和种子。新镜头可只提交文字。CLI 1.2.0 支持 `--sound-mode 有台词` 或 `--sound-mode 无台词`，可与参考素材一起使用。选了视频可用 `--video-skip` 跳过开头帧、用 `--video-frames` 指定取用帧数；默认从头自动取用。其他版本沿用账号当下返回的能力。

接续时查用户选中的父订单，保留原订单号。只有期限有效且后台允许续拍才提交 `continue 父订单号`。下载和续拍各有期限。原订单无法续拍时，告诉用户还能执行哪些操作，不用另一片代替父段。Relay 另走 `upscale 父订单号`，成片和父片各有订单号。

## Error recovery

On CLI 1.1.1 or newer, inspect `code`, `http_status` and `receipt` in `--json` output when present. For `network_interrupted` during submission, resume the original receipt. If an order ID is known, query it directly. A polling timeout does not establish that generation failed. For `prompt_has_notes` or `prompt_needs_review`, use prompt-preview and resolve the indicated text. For `settings_conflict`, check the actual aspect and duration. For `order_already_claimed`, query the order. If the result is `needs_review`, retain the order ID for the operator; starting a replacement could generate the same shot twice. For `nonce_conflict`, compare the saved request with the original before taking further action.

Canvas nodes use a separate bearer key issued at /api-access. Import /agent/canvas-openapi.json. Check /hk-api/wallet for available points and current rates. A positive available balance admits one order even when its hold takes the balance below zero. At zero or below, stop the batch on HTTP 402; resume after the available balance becomes positive. Reuse the same nonce after a timeout.
