Authorization: Bearer ********************
{
"model": "rmbg-2.0",
"image": "https://oss.ffire.cc/files/kling_watermark.png", // 支持base64与url
"response_format": "url" // 枚举值:Literal["url", "b64_json"]
}
curl --location -g --request POST '{{YOUR_BASE_URL}}/aitools/v1/images/edits' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "rmbg-2.0",
"image": "https://oss.ffire.cc/files/kling_watermark.png", // 支持base64与url
"response_format": "url" // 枚举值:Literal["url", "b64_json"]
}'
{
"created": 1737109906346,
"data": [
{
"b64_json": null,
"revised_prompt": null,
"url": "https://v3.fal.media/files/koala/PXas6CAwU75VV2LwIE-rH.png"
}
],
"image": null,
"metadata": null,
"timings": {
"inference": 4.444052457809448
}
}