zf-kbot/md-me-lama

Public
34 runs

Run zf-kbot/md-me-lama with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
apikey
string
访问密钥。必须与服务端环境变量 " "ME_LAMA_APIKEY 一致;缺失、为空或不匹配都会被拒绝," "且服务端不区分这三种情况。
input_image
string
640x640 不透明 PNG 工作图(RGB 或 RGBA,8 位)。" "裁切、补边与缩放必须由调用方先做完,服务端不会再改尺寸。
mask
string
640x640 二值 PNG 掩码,与 input_image 同尺寸。" "0=保留,255=擦除。非二值、全 0、全 255 都会被拒绝。

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "string",
  "title": "Output",
  "format": "uri"
}