Novita.ai
  1. 案例 API
Novita.ai
  • Novita.ai
  • 账户接口
    • 配置s3配置
      POST
    • 查询s3配置
      GET
    • 删除 s3 配置
      DELETE
    • 用户信息
      GET
  • 基本 API
    • 文字转图像
      POST
    • 图像到图像
      POST
    • 进步
      GET
    • 广告商
      POST
  • 基础 API V3
    • 使用 lcm 将文本转为图像
    • 使用 lcm 进行图像到图像
    • 获取异步任务结果
    • 文字转图像
    • 图像到图像
  • 模型 API
    • 同步 civitai 模型
    • 查询 civitai 模型
    • 查询模型
  • 案例 API
    • Upscale
      POST
    • 清除
      POST
    • 外画
      POST
    • 删除背景
      POST
    • 删除文字
      POST
    • 重新想象
      POST
    • 涂鸦
      POST
    • 混合姿势
      POST
    • 替换背景
      POST
    • 替换天空
      POST
    • 恢复面容
      POST
    • 创建图块
      POST
    • 去除水印
      POST
    • 合并面
      POST
    • 替换对象
      POST
    • 图片提示
      POST
    • 制作照片
      POST
    • 要遮罩的图像
      POST
  • 培训 API
    • 获取图片网址
    • 接受学科培训
    • 创建学科培训
    • 创建风格训练
    • 接受风格培训
    • 列出训练任务
  • 视频 API
    • 图像转视频 API
    • 图像到视频运动 API
    • 文本转视频 API
  1. 案例 API

Upscale

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/upscale
提高稳定扩散生成的图像质量不可或缺的工具。您可以在此处获取指导:https://novita.ai/get-started/UseCase_ImageEnhancement.html#_15-upscale。
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/upscale' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "image": "{{base64 encoded image}}",
  "upscaler_1": "R-ESRGAN 4x+",
  "resize_mode": 1,
  "upscaling_resize": null,
  "upscaling_resize_w": 1024,
  "upscaling_resize_h": 1024,
  "upscaling_crop": true,
  "upscaler_2": "R-ESRGAN 4x+",
  "extras_upscaler_2_visibility": 0.5,
  "gfpgan_visibility": 0.5,
  "codeformer_visibility": 0.5,
  "codeformer_weight": 0.5,
  "img_expire_ttl": null
}'
响应示例响应示例
{
  "code": null,
  "msg": "",
  "data": {
    "task_id": "",
    "warn": ""
  }
}

请求参数

Header 参数

Body 参数application/json

示例

返回响应

🟢200成功
application/json
Body

修改于 2024-02-06 06:18:05
上一页
查询模型
下一页
清除
Built with