- 价格
- 起 $0.0404
- 模态
- 图像
UNI-1 简介
UNI-1 是 Luma 的统一图像模型,既能生成图像,也能编辑图像。它接收文字提示词和源图,支持多张参考图,并提供基于 seed 的可复现性。Luma 称它是一个自回归模型,先推理意图再渲染。它是标准版本;UNI-1 Max 是质量优先的版本。
擅长的任务
- 文生图和按指令编辑用同一个模型完成。
- Luma 文档称最多可用九张参考图来引导风格或构图。
- 能响应镜头角度、距离和光线方向方面的指令。
- 支持 seed,调整提示词时结果可以保持可复现。
什么情况换别的模型
- 要出细节最高的最终图,Luma 针对完成度调优的是 UNI-1 Max。
- Luma 并未把它定位为文字渲染或矢量工具,含大量文字的平面设计可能需要专门的模型。
快速上手
创建 API 密钥
在 Console 生成一把密钥,平台上的模型都能用。
发送第一个请求
复制你所用语言的示例代码,向该端点发起请求。
图像编辑文生图TokenLab 端点POST/v1/images/generationscurl -X POST "https://api.tokenlab.sh/v1/images/generations" \ -H "Authorization: Bearer sk-xxx" \ -H "Content-Type: application/json" \ -d '{ "operation": "image-to-image", "model": "uni-1", "prompt": "A minimalist product photo of matte black headphones on a soft blue background.", "image_url": "https://example.com/source.png" }'
参数
图像编辑
| 参数 | 可选值与限制 | 默认值 | 说明 |
|---|---|---|---|
height | 1248, 1440, 1504, 1696, 2048, 2464, 2784, 2912, 3360 | 2048 | Use an integer. Use a listed width and height pair: 3360x1248 (3k, 3:1), 2912x1440 (3k, 2:1), 2784x1504 (3k, 16:9), 2464x1696 (3k, 3:2), 2048x2048 (3k, 1:1), 1696x2464 (3k, 2:3), 1504x2784 (3k, 9:16), 1440x2912 (3k, 1:2), 1248x3360 (3k, 1:3). |
image | 未提供 | 未提供 | Alias of the combined images input. See input_limits.images for the total input image count. |
image_url | 未提供 | 未提供 | Alias of the combined images input. See input_limits.images for the total input image count. |
image_urls | 未提供 | 未提供 | Alias of the combined images input. See input_limits.images for the total input image count. |
images | 输入数量:≥ 1, ≤ 9 | 未提供 | Limits apply when this input is supplied. Image aliases are combined into one input image list; the limit applies to the combined list. |
n | 1 | 1 | Use an integer. |
operation必填 | 未提供 | 未提供 | 未提供 |
output_format | jpeg, png, webp | 未提供 | Default encoding is shared by these equivalent values: jpg, jpeg. |
prompt | 未提供 | 未提供 | Minimum length: 2 characters. Maximum length: 6000 characters. |
width | 1248, 1440, 1504, 1696, 2048, 2464, 2784, 2912, 3360 | 2048 | Use an integer. Use a listed width and height pair: 3360x1248 (3k, 3:1), 2912x1440 (3k, 2:1), 2784x1504 (3k, 16:9), 2464x1696 (3k, 3:2), 2048x2048 (3k, 1:1), 1696x2464 (3k, 2:3), 1504x2784 (3k, 9:16), 1440x2912 (3k, 1:2), 1248x3360 (3k, 1:3). |
文生图
| 参数 | 可选值与限制 | 默认值 | 说明 |
|---|---|---|---|
height | 1248, 1440, 1504, 1696, 2048, 2464, 2784, 2912, 3360 | 2048 | Use an integer. Use a listed width and height pair: 3360x1248 (3k, 3:1), 2912x1440 (3k, 2:1), 2784x1504 (3k, 16:9), 2464x1696 (3k, 3:2), 2048x2048 (3k, 1:1), 1696x2464 (3k, 2:3), 1504x2784 (3k, 9:16), 1440x2912 (3k, 1:2), 1248x3360 (3k, 1:3). |
images | 未提供 | 未提供 | Text-to-image does not accept source images. Do not send this field for that operation. Use one of this model's declared image operations for source-image requests. |
n | 1 | 1 | Use an integer. |
operation必填 | 未提供 | 未提供 | 未提供 |
output_format | jpeg, png, webp | 未提供 | Default encoding is shared by these equivalent values: jpg, jpeg. |
prompt | 未提供 | 未提供 | Minimum length: 2 characters. Maximum length: 6000 characters. |
width | 1248, 1440, 1504, 1696, 2048, 2464, 2784, 2912, 3360 | 2048 | Use an integer. Use a listed width and height pair: 3360x1248 (3k, 3:1), 2912x1440 (3k, 2:1), 2784x1504 (3k, 16:9), 2464x1696 (3k, 3:2), 2048x2048 (3k, 1:1), 1696x2464 (3k, 2:3), 1504x2784 (3k, 9:16), 1440x2912 (3k, 1:2), 1248x3360 (3k, 1:3). |
Fields outside this contract are rejected.
价格
Verified 价格用于 Verified,多数模型更便宜;Official 价格是模型厂商公布的价格,用于更稳定的 Official。Auto 按最终完成请求的线路计价。
图像编辑
每张图片- Official 价格
- $0.0404
- Verified 价格
- —
- 折扣
- —
文生图
每张图片- Official 价格
- $0.0404
- Verified 价格
- —
- 折扣
- —
| Official 价格每张图片 | Verified 价格每张图片 | 折扣 | |
|---|---|---|---|
| 图像编辑 | $0.0404 | — | — |
| 文生图 | $0.0404 | — | — |
用量与动态
成功率是请求完成的比例;延迟是拿到一次完整响应要花的时间,P95 表示 95% 的请求都在这个时间内完成。
用量与可用性
最近 24 小时- 请求
- 成功率
- P95 延迟
- 总 token 数
数据来自汇总的用户请求,不含状态检查。
直接在 Console 里试
UNI-1 已在 Console 备好,提示词已填好,可以直接修改或发送。
帮我用 uni-1 完成一次 image-edit 图片创作,接口是 /v1/images/edits。返回生成结果、费用和需要注意的限制。
使用场景
适用场景- 文生图
按指令编辑图像
用一句日常语言的指令,改变源照片的光线、背景或物体。
参考图引导风格
提供几张参考图,再加一段对新场景的文字描述,来贴合固定的风格。
分镜与漫画
Luma 强调漫画和条漫创作是它的长处,角色在多个画格间保持一致。
提示词示例
把这张照片的时间改成日落,让建筑投下长长的影子。
一张电影感的剧照:一名骑行者独自走在海边公路上,低机位,逆光,胶片颗粒。
参考这三张图,画一格条漫:一个女孩推开一扇神秘的门。
FAQ
Luma UNI-1 是什么模型?
Luma 用于生成和编辑的统一图像模型。你可以用文字提示、修改已有图片,或用参考图引导。Luma 称它在作画前会先推理意图。
可以用多少张参考图?
Luma 文档称每次请求最多九张参考图,可以引导风格、构图或主体。可用于风格迁移,或让角色形象在多张图里保持一致。
结果可以复现吗?
可以,UNI-1 支持 seed,相同输入可以得到相同的图,方便你只改动提示词的某一部分。
和 UNI-1 Max 有什么区别?
API 和能力相同,但 UNI-1 Max 针对更高的输出质量调优,适合细节更重要的场合。草稿和探索阶段用普通 UNI-1。
UNI-1 的费用是多少?
在 TokenLab 上,UNI-1 的价格为 $0.0404 每张图片。完整明细见上方价格表。 价格因计费单位、规格和用量而异。请在模型的详细定价中对比相同条件下的费率;单一费率不代表总价。
UNI-1 应该使用哪个端点?
UNI-1 使用 https://api.tokenlab.sh/v1/images/edits。代码写法见下方的请求示例。
UNI-1 支持哪些操作?
UNI-1 支持 图像编辑, 文生图。选了操作,上面会显示对应的端点和请求示例。
UNI-1 对比
资料来源
审阅于 2026年10月2日