画幅扩展
- 扩展与平移都走 /mj/submit/action
- 方向写在 customId 里
- 父任务必须是放大后的单图
认证
所有接口均使用 Bearer Token 进行认证。获取 API Key:访问控制台 创建。请求时在请求头中添加:
All endpoints authenticate with a Bearer token. Create a key in the console and add it to the request header:
请求参数
动作标识,从父任务 buttons 里取,例如 MJ::JOB::upsample::1::UUID。
父任务 ID,必须是 SUCCESS 状态。
回调地址。
自定义透传字段,原样带回。
为 true 时返回官方链接,默认 false。
是否启用 remix 模式(变体时可改提示词),默认 false。
Action identifier from the parent task's buttons, e.g. MJ::JOB::upsample::1::UUID.
Parent task ID; it must be in SUCCESS.
Callback URL.
Opaque value echoed back unchanged.
Return official links; default false.
Enable remix mode (edit the prompt on a variation); default false.
扩展与平移的按钮
| 按钮 | 效果 |
|---|---|
Zoom Out 2x | 画幅扩到 2 倍,原图居中 |
Zoom Out 1.5x | 画幅扩到 1.5 倍 |
Pan Left / Right / Up / Down | 向指定方向平移,另一侧补画 |
平移动作的 customId 里已经包含方向,不需要额外传方向字段。
| Button | Effect |
|---|---|
Zoom Out 2x | Doubles the frame with the original centered |
Zoom Out 1.5x | Grows the frame 1.5x |
Pan Left / Right / Up / Down | Shifts and paints in the opposite side |
The direction is baked into the customId; there's no separate direction field.
连续扩展
同方向的平移可以连续做,把每次的结果当作下一次的父任务,就能拼成长图。每次扩展都会重新生成一张完整图片,不是简单的画布拼接。
Panning the same direction repeatedly, each time using the last result as the parent, builds a long image. Every step regenerates a full image rather than stitching canvases.
错误码
| HTTP | 含义 |
|---|---|
| 200 | 已受理,看 code |
| 401 | Token 缺失或无效 |
| 429 | 触发限流 |
常见失败:父任务还是四宫格(没先放大);customId 已过期。
| HTTP | Meaning |
|---|---|
| 200 | Accepted; check code |
| 401 | Token missing or invalid |
| 429 | Rate limit hit |
Common failures: the parent is still a grid (upscale first); an expired customId.
使用示例
对放大后的单图执行 Zoom Out 2x 得到更大画幅;用 Pan Left 这类按钮只往一个方向扩。
Run Zoom Out 2x on an upscaled image for a larger frame, or a Pan button to extend in one direction.