mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-13 00:23:03 -04:00
editimage command
This commit is contained in:
parent
3d6233a0a7
commit
f35586fe89
7 changed files with 51 additions and 4 deletions
|
@ -17,6 +17,7 @@ const Api = Object.freeze({
|
|||
GOOGLE_VISION_WEBDETECTION: '/google/vision/webdetection',
|
||||
|
||||
IMAGE_DEEPDREAM: '/image/deepai/deepdream',
|
||||
IMAGE_IMAGEEDITOR: '/image/deepai/imageedit',
|
||||
IMAGE_SUPERRESOLUTION: '/image/deepai/superresolution',
|
||||
IMAGE_TEXT2IMAGE: '/image/deepai/text2image',
|
||||
IMAGE_WAIFU2X: '/image/deepai/waifu2x',
|
||||
|
|
|
@ -222,6 +222,13 @@ module.exports.deepdream = async function(context, url){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.imageedit = async function(context, url, prompt){
|
||||
return await request(Api.IMAGE_IMAGEEDITOR, "GET", {}, {
|
||||
url: url,
|
||||
prompt: prompt
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.waifu2x = async function(context, url){
|
||||
return await request(Api.IMAGE_WAIFU2X, "GET", {}, {
|
||||
url: url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue