API介绍
Stable Difussion母公司
API调试台
登录后,探索更多精彩功能! 点击登录
API列表 (16)
| API描述 | 接口地址 | 请求方法 | 稳定性 | 参数说明 |
|---|---|---|---|---|
Fast Upscale(快速图片放大) | POST | 稳定 | 查看详情 | |
文档详情 我们的快速放大服务使用预测性和生成式AI将图像分辨率提高4倍。这种轻量级且快速的服务(处理时间约1秒)非常适合提升压缩图像的质量,使其适用于社交媒体帖子和其他应用。 请求参数 Header参数Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Acceptstring可选 示例值: image/*Body参数 multipart/form-dataimagestring可选 Supported Formats: jpeg/png/webp output_formatstring可选 Enum: jpeg png webp | ||||
Creative Upscale(创意图片放大) | POST | 稳定 | 查看详情 | |
文档详情 这个工具可以将从 64x64 到 1 百万像素之间的图像一键放大到 4K 分辨率。它的特点是在保持原有图像质量的基础上,将图像放大约 20-40 倍,有时还能提升图像质量。最适合处理质量受损严重的图像,不建议用于处理 1 百万像素及以上的照片,因为会进行大量的重新构想(根据创意比例进行控制)。 请求参数 Header参数Content-Typestring必需 示例值: multipart/form-dataAuthorizationstring可选 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-dataimagestring必需 The image you wish to upscale. promptstring必需 What you wish to see in the output image. A strong, descriptive prompt that clearly defines elements, colors, and subjects will lead to better results. negative_promptstring可选 seedstring可选 示例值: 0creativitynumber可选 示例值: 0.3 | ||||
Conservative Upscale(保守图片放大) | POST | 稳定 | 查看详情 | |
文档详情 将图像从64x64像素到1百万像素之间放大到4K分辨率。更广泛地说,它可以将图像缩放约20-40倍,同时保持所有方面的细节。保守放大尽量减少对图像的改变,不应用于重新想象图像。 请求参数 Header参数Content-Typestring必需 示例值: multipart/form-dataAuthorizationstring可选 示例值: Bearer {{YOUR_API_KEY}}Acceptstring可选 示例值: image/*Body参数 multipart/form-dataimagestring必需 The image you wish to upscale. promptstring必需 What you wish to see in the output image. A strong, descriptive prompt that clearly defines elements, colors, and subjects will lead to better results. negative_promptstring可选 creativitynumber可选 Controls the likelihood of creating additional details not heavily conditioned by the init image. 示例值: 0.35seednumber可选 | ||||
Fetch Creative Upscale(超级图片放大) | GET | 稳定 | 查看详情 | |
文档详情 这个工具可以将从 64x64 到 1 百万像素之间的图像一键放大到 4K 分辨率。它的特点是在保持原有图像质量的基础上,将图像放大约 20-40 倍,有时还能提升图像质量。最适合处理质量受损严重的图像,不建议用于处理 1 百万像素及以上的照片,因为会进行大量的重新构想(根据创意比例进行控制)。 请求参数 Path参数idstring必需 Header参数Authorizationstring可选 示例值: Bearer {{YOUR_API_KEY}}Acceptstring可选 示例值: image/*Body参数 multipart/form-dataobject | ||||
Erase(物体消除) | POST | 稳定 | 查看详情 | |
文档详情 Erase服务通过图像掩码技术,可以移除不必要的物体,比如肖像中的瑕疵或桌面上的杂物。 请求参数 Header参数Content-Typestring必需 示例值: multipart/form-dataAcceptstring必需 示例值: image/*Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-dataimagestring必需 maskstring必需 需要擦除的区域 seednumber可选 | ||||
Inpaint(图片修改) | POST | 稳定 | 查看详情 | |
文档详情 智能地通过根据mask图像的内容,填充或替换指定区域的图像。 请求参数 Header参数Content-Typestring必需 示例值: multipart/form-dataAcceptstring必需 示例值: image/*Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-dataimagestring必需 The image you wish to inpaint. promptstring必需 What you wish to see in the output image. A strong, descriptive prompt that clearly defines elements, colors, and subjects will lead to better results. maskstring必需 The image passed to this parameter should be a black and white image that represents, at any pixel | ||||
Outpaint(图片扩展) | POST | 稳定 | 查看详情 | |
文档详情 Outpaint 服务可以在图像中以各种方向填充额外内容,相比其他自动或手动方法,Outpaint 服务能够最大程度地减少瑕疵,使得编辑后的原始图像迹象不易察觉。 请求参数 Header参数Content-Typestring必需 示例值: multipart/form-dataAcceptstring必需 示例值: image/*Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-dataimagestring必需 leftinteger必需 rightinteger必需 upinteger必需 downinteger必需 | ||||
Search-and-replace(内容替换) | POST | 稳定 | 查看详情 | |
文档详情 搜索替换服务是修图的特殊方式,不需要蒙版。用户可以通过搜索提示用简单语言标识要替换的目标。该服务会自动识别并用搜索提示中指定的目标替换图像中的对象。 请求参数 Header参数Content-Typestring必需 示例值: multipart/form-dataAcceptstring必需 示例值: image/*Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-dataimagestring必需 promptstring必需 search_promptstring必需 | ||||
Search-and-recolor(内容重着色) | POST | 稳定 | 查看详情 | |
文档详情 搜索和重新着色服务提供了使用提示更改图像中特定对象颜色的功能。这项服务是修复绘画的一个特定版本,不需要遮罩。搜索和重新着色服务将自动分割对象,并使用提示中要求的颜色对其进行重新着色。 请求参数 Header参数Content-Typestring必需 示例值: multipart/form-dataAcceptstring必需 示例值: image/*Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-dataimagestring必需 promptstring必需 select_promptstring必需 | ||||
Remove-background(背景消除) | POST | 稳定 | 查看详情 | |
文档详情 Remove Background 服务准确地将图像中的前景分隔出来,并实施和移除背景。 请求参数 Header参数Content-Typestring必需 示例值: multipart/form-dataAcceptstring必需 示例值: image/*Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-dataimagestring必需 | ||||
Sketch(草图转图片) | POST | 稳定 | 查看详情 | |
文档详情 Sketch 服务为那些需要频繁头脑风暴及迭代的设计项目提供了完美的解决方案。它能够把粗略的手绘草图转化为精细的输出,实现精确调控。对于非草图类的图片,该服务还能利用图片内的轮廓线和边缘,进行深入细致的视觉调整。 请求参数 Header参数Acceptstring必需 示例值: image/*Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-dataimagestring必需 promptstring必需 What you wish to see in the output image | ||||
Structure(以图生图) | POST | 稳定 | 查看详情 | |
文档详情 Structure服务能够在维持原始图像结构的前提下生成新图像,因此在如重现具体场景或基于模型渲染角色等高级内容创作领域显得尤为重要。 请求参数 Header参数Acceptstring必需 示例值: image/*Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-dataimagestring必需 promptstring必需 What you wish to see in the output image | ||||
Style(风格一致性) | POST | 稳定 | 查看详情 | |
文档详情 这项服务从输入图像(控制图像)中提取风格元素,并使用它来指导基于提示词创建输出图像。结果是一张与控制图像风格相同的新图像。 请求参数 Header参数Acceptstring必需 示例值: image/*Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-dataimagestring必需 promptstring必需 What you wish to see in the output image | ||||
Stable-Fast-3D(图片转3D模型) | POST | 稳定 | 查看详情 | |
文档详情 将图片快速转换为3D模型 请求参数 Header参数Authorizationstring可选 示例值: Bearer {{YOUR_API_KEY}}Content-Typestring可选 示例值: multipart/form-dataBody参数 multipart/form-dataimagestring必需 The image to generate a 3D model from. texture_resolutionstring可选 1024/2048/512 示例值: 1024foreground_rationumber可选 [ 0.1 … 1 ] 示例值: 0.85remeshstring可选 none/triangle 示例值: none | ||||
Stable-Point-3D(图片转3D模型新版) | POST | 稳定 | 查看详情 | |
文档详情 使用点云法,将图片转换为3D模型,介绍:https://stability.ai/news/stable-point-aware-3d 请求参数 Header参数Authorizationstring可选 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-dataimagestring必需 The image to generate a 3D model from. texture_resolutionstring可选 1024/2048/512 示例值: 1024foreground_rationumber可选 [ 1 … 2 ] 示例值: 1.3remeshstring可选 none/triangle/quad 示例值: nonetarget_typestring可选 none/face/vertex 示例值: nonetarget_countnumber可选 [ 100 … 20000 ] 示例值: 1000guidance_scalenumber可选 [ 1 … 10 ] 示例值: 3seednumber可选 [ 0 … 4294967294 ] | ||||
Style-Transfer(风格迁移) | POST | 稳定 | 查看详情 | |
文档详情 风格迁移是将参考风格图像的视觉特征应用到目标图像上。而风格引导是从输入图像(控制图像)中提取风格元素,并利用这些元素来引导基于提示词生成输出图像;风格迁移则是在保留原始构图的同时,专门转换现有内容。此工具可帮助在多个素材中创建一致的内容。 请求参数 Header参数Acceptstring必需 示例值: image/*Authorizationstring必需 示例值: Bearer {{YOUR_API_KEY}}Body参数 multipart/form-datainit_imagestring必需 An image containing the subject you wish to restyle. style_imagestring必需 An image containing the new style. promptstring可选 What you wish to see in the output image style_strengthnumber可选 示例值: 1 | ||||
API价格表
| 模型 | 说明 | 302.AI价格 |
|---|
Fast Upscale | 快速图片放大 |
|
Creative Upscale | 创意图片放大 |
|
Conservative Upscale | 保守图片放大 |
|
Fetch Creative Upscale | 超级图片放大 |
|
Erase | 物体消除 |
|
Inpaint | 图片修改 |
|
Outpaint | 图片扩展 |
|
Search-and-replace | 内容替换 |
|
Search-and-recolor | 内容重着色 |
|
Remove-background | 背景消除 |
|
Sketch | 草图转图片 |
|
Structure | 以图生图 |
|
Style | 风格一致性 |
|
Stable-Fast-3D | 图片转3D模型 |
|
Replace-Background | 更换背景 |
|
Stable-Point-3D | 图片转3D模型新版 |
|
Style-Transfer | 风格迁移 |
|
猜你喜欢
Vectorizer.AI
Stability.ai
起









