huoshan/huoshan.ts

21 lines
617 B
TypeScript
Raw Normal View History

2024-10-02 17:35:29 +08:00
export default {
image: {
text2image,
image2image,
2024-10-13 11:55:28 +08:00
readImage,
base64
2024-10-02 17:35:29 +08:00
}
}
2024-10-13 11:55:28 +08:00
//about image
2024-10-02 17:35:29 +08:00
function text2image(prompt:string, option?:Object):string {return ""}
2024-10-13 11:55:28 +08:00
// image2image
// image able with base64, bin(byte[], what you get from "readImage"), urlurl must be written in an array like ["your url"]
function image2image(image, prompt:string, option?:Object):string {return ""}
2024-10-02 17:35:29 +08:00
function readImage(path:string):string {return ""}
2024-10-13 11:55:28 +08:00
// base64 written-in base64 functionyou can use what you want
// data give what you want to give
function base64(data):string {return ""}