AI智能绘图v2修改说明

517 阅读35分钟

修改功能

基础风格精简

基础模型精简为5个,去除以下模型:

image.png

因为接下来有270余种风格可以大大的增强补足各种效果。仅保留最好的基础大模型即可。

接口修改

接口说明: 做了极大的简化。

{
    "prompt": "a cat in room,这里是提示词",
    "negative_prompt": "",
    "style_selections": ["Fooocus V2","Fooocus Enhance","其他选中的样式key放这里"],
    "base_model_name": "juggernautXL_v8Rundiffusion.safetensors,基础模型改变后请改变这里",
    "aspect_ratios_selection": "分辨率, 默认 '1152*896'",
    "image_number": "1,生成的数量",
    "async_process": 异步还是同步
}

同步模式样例:

{
    "prompt": "a cat in room",
    "negative_prompt": "",
    "style_selections": ["Fooocus V2","Fooocus Enhance"],
    "base_model_name": "juggernautXL_v8Rundiffusion.safetensors",
    "aspect_ratios_selection": "1152*896",
    "image_number": "1"
}

不再返回base64,而是返回图片的url,下载时使用192.168.202.29替换127.0.0.1

image.png

异步模式样例:

{
    "prompt": "a cat in room",
    "negative_prompt": "",
    "style_selections": ["Fooocus V2","Fooocus Enhance"],
    "base_model_name": "juggernautXL_v8Rundiffusion.safetensors",
    "aspect_ratios_selection": "1152*896",
    "image_number": "1",
    "async_process": "True"
}

会立即返回一个jobid,然后使用查询任务接口来获取图片。

更详细的接口请看下面的接口说明。

分辨率修改

1、修改1:1的分辨率,从512 X 512 到 1024 X 1024;

2、增加2个高清分辨率

  • 1920*1080;
  • 1920*1280;

对应模型修改

基础模型****对应模型****
通用juggernautXL_v8Rundiffusion.safetensors
动漫animagineXLV31_v31.safetensors
中国风SDXLRonghua_v40.safetensors
3D动漫samaritan3dCartoon_v40SDXL.safetensors
奇幻CGdreamshaperXL_v2TurboDpmppSDE.safetensors

基础风格切换时更改示例提示词

当用户切换基础风格时,在提示词输入框更改提示词

基础模型****修改的提示词****
通用天空,云,阳光,灯塔,蓝天,史诗云,(最佳画质,8K,高分辨率,极致细节,杰出构图:1.4),杰里米·曼艺术,射线,戏剧性的光,(富氧空气和遮蔽的气氛,雪景,硬边绘画美学:0.1)
动漫美丽的女孩,超现实主义的水,幻想,迷人的动漫人物,闪闪发光,中国龙,史诗云,极致细节,射线,戏剧性的光
中国风用白色的天空和巨大的中国山脉创作一幅画,山上有古塔和寺庙。
3D动漫1个开心的小男孩抱着小猫,黑头发,圆脸,穿运动服,欢快,户外,戴着红色的帽子
奇幻CG1个瓶子里的微缩景观,超高分辨率,微缩建筑,中国建筑,复杂的细节,照明

增加功能

风格样式功能

  • 1、用户可选择风格样式,增益基础模型的出图效果;
  • 2、可搜索风格样式(因为样式比较多);
  • 3、可展示样式预览图,供用户有个直观的认识;
  • 4、选择风格样式后,附加提示词到原有的提示词尾部;
  • 5、UI前端按以下的UI设计改造;
  • 6、"效果V2"、"效果增强"为默认选中;

风格样式UI设计

允许用户多选风格。 一共有270余风格样式:

image.png

界面UI表现形式可以是“简洁多选形式”或者“图文多选形式”

1、简洁多选形式:

其中"效果V2"、"效果增强"为默认选中。 当鼠标经过时,展示效果的预览图。

image.png

2、图文多选形式(参看“堆友”的自由模式的“增益效果”)

多选效果:

image.png

多选效果:

image.png

风格样式清单

- "Key": "中文描述",

  • "Fooocus V2": "效果V2",
  • "Fooocus Enhance": "效果增强",
  • "Fooocus Sharp": "清晰",
  • "Fooocus Masterpiece": "杰作",
  • "Fooocus Cinematic": "电影",
  • "Fooocus Photograph": "摄影",
  • "SAI 3D Model": "SAI 3D模型",
  • "SAI Analog Film": "SAI 模拟胶片",
  • "SAI Anime": "SAI 动漫",
  • "SAI Cinematic": "SAI 电影画面",
  • "SAI Comic Book": "SAI 漫画书",
  • "SAI Craft Clay": "SAI 手工粘土",
  • "SAI Digital Art": "SAI 数字艺术",
  • "SAI Enhance": "SAI 增强",
  • "SAI Fantasy Art": "SAI 幻想艺术",
  • "SAI Isometric": "SAI 等角透视",
  • "SAI Line Art": "SAI 线条艺术",
  • "SAI Lowpoly": "SAI 低多边形",
  • "SAI Neonpunk": "SAI 霓虹朋克",
  • "SAI Origami": "SAI 折纸",
  • "SAI Photographic": "SAI 摄影",
  • "SAI Pixel Art": "SAI 像素艺术",
  • "SAI Texture": "SAI 纹理",
  • "MRE Cinematic Dynamic": "MRE 电影动态",
  • "MRE Spontaneous Picture": "MRE 自发的图片",
  • "MRE Artistic Vision": "MRE 艺术视觉",
  • "MRE Dark Dream": "MRE 黑暗梦境",
  • "MRE Gloomy Art": "MRE 阴郁的艺术",
  • "MRE Bad Dream": "MRE 噩梦",
  • "MRE Underground": "MRE 地下",
  • "MRE Surreal Painting": "MRE 超现实的画",
  • "MRE Dynamic Illustration": "MRE 动态插图",
  • "MRE Undead Art": "MRE 不死的艺术",
  • "MRE Elemental Art": "MRE 元素艺术",
  • "MRE Space Art": "MRE 太空艺术",
  • "MRE Ancient Illustration": "MRE 古代插图",
  • "MRE Brave Art": "MRE 勇敢的艺术",
  • "MRE Heroic Fantasy": "MRE 英雄幻想",
  • "MRE Dark Cyberpunk": "MRE 黑暗赛博朋克",
  • "MRE Lyrical Geometry": "MRE 抒情几何",
  • "MRE Sumi E Symbolic": "MRE 墨水画 象征性",
  • "MRE Sumi E Detailed": "MRE 墨水画 细节",
  • "MRE Manga": "MRE 漫画",
  • "MRE Anime": "MRE 动漫",
  • "MRE Comic": "MRE 漫画书",
  • "Ads Advertising": "广告 广告",
  • "Ads Automotive": "广告 汽车",
  • "Ads Corporate": "广告 企业",
  • "Ads Fashion Editorial": "广告 时尚编辑",
  • "Ads Food Photography": "广告 食品摄影",
  • "Ads Gourmet Food Photography": "广告 美食摄影",
  • "Ads Luxury": "广告 奢侈品",
  • "Ads Real Estate": "广告 房地产",
  • "Ads Retail": "广告 零售",
  • "Artstyle Abstract": " 艺术风格 抽象",
  • "Artstyle Abstract Expressionism": " 艺术风格 抽象表现主义",
  • "Artstyle Art Deco": " 艺术风格 装饰艺术",
  • "Artstyle Art Nouveau": " 艺术风格 新艺术",
  • "Artstyle Constructivist": " 艺术风格 建设主义",
  • "Artstyle Cubist": " 艺术风格 立体主义",
  • "Artstyle Expressionist": " 艺术风格 表现主义",
  • "Artstyle Graffiti": " 艺术风格 涂鸦",
  • "Artstyle Hyperrealism": " 艺术风格 超现实主义",
  • "Artstyle Impressionist": " 艺术风格 印象派",
  • "Artstyle Pointillism": " 艺术风格 点画",
  • "Artstyle Pop Art": " 艺术风格 波普艺术",
  • "Artstyle Psychedelic": " 艺术风格 迷幻",
  • "Artstyle Renaissance": " 艺术风格 文艺复兴",
  • "Artstyle Steampunk": " 艺术风格 蒸汽朋克",
  • "Artstyle Surrealist": " 艺术风格 超现实主义",
  • "Artstyle Typography": "艺术风格 排版艺术",
  • "Artstyle Watercolor": "艺术风格 水彩",
  • "Futuristic Biomechanical": "未来派 生物机械",
  • "Futuristic Biomechanical Cyberpunk": "未来派 生物机械赛博朋克",
  • "Futuristic Cybernetic": "未来派 赛博",
  • "Futuristic Cybernetic Robot": "未来派 赛博机器人",
  • "Futuristic Cyberpunk Cityscape": "未来派 赛博朋克城市风景",
  • "Futuristic Futuristic": "未来派 未来派",
  • "Futuristic Retro Cyberpunk": "未来派 复古赛博朋克",
  • "Futuristic Retro Futurism": "未来派 复古未来主义",
  • "Futuristic Sci Fi": "未来派 科幻",
  • "Futuristic Vaporwave": "未来派 蒸汽波",
  • "Game Bubble Bobble": "游戏 泡泡龙",
  • "Game Cyberpunk Game": "游戏 赛博朋克游戏",
  • "Game Fighting Game": "游戏 格斗游戏",
  • "Game Gta": "游戏 侠盗飞车",
  • "Game Mario": "游戏 超级马里奥",
  • "Game Minecraft": "游戏 我的世界",
  • "Game Pokemon": "游戏 宝可梦",
  • "Game Retro Arcade": "游戏 复古街机",
  • "Game Retro Game": "游戏 复古游戏",
  • "Game Rpg Fantasy Game": "游戏 角色扮演奇幻游戏",
  • "Game Strategy Game": "游戏 策略游戏",
  • "Game Streetfighter": "游戏 街头霸王",
  • "Game Zelda": "游戏 塞尔达传说",
  • "Misc Architectural": "杂项 建筑风格",
  • "Misc Disco": "杂项 迪斯科",
  • "Misc Dreamscape": "杂项 梦幻风景",
  • "Misc Dystopian": "杂项 反乌托邦",
  • "Misc Fairy Tale": "杂项 童话",
  • "Misc Gothic": "杂项 哥特风格",
  • "Misc Grunge": "杂项 垃圾摇滚风格",
  • "Misc Horror": "杂项 恐怖",
  • "Misc Kawaii": "杂项 可爱风",
  • "Misc Lovecraftian": "杂项 洛夫克拉夫特风格恐怖",
  • "Misc Macabre": "怪诞风格",
  • "Misc Manga": "漫画风格",
  • "Misc Metropolis": "大都市风格",
  • "Misc Minimalist": "极简风格",
  • "Misc Monochrome": "单色风格",
  • "Misc Nautical": "航海风格",
  • "Misc Space": "太空风格",
  • "Misc Stained Glass": "彩色玻璃风格",
  • "Misc Techwear Fashion": "科技服装风格",
  • "Misc Tribal": "部落风格",
  • "Misc Zentangle": "曼陀罗风格",
  • "Papercraft Collage": "拼贴风格",
  • "Papercraft Flat Papercut": "平面剪纸风格",
  • "Papercraft Kirigami": "切纸风格",
  • "Papercraft Paper Mache": "纸浆风格",
  • "Papercraft Paper Quilling": "纸卷风格",
  • "Papercraft Papercut Collage": "剪纸拼贴风格",
  • "Papercraft Papercut Shadow Box": "剪纸影箱风格",
  • "Papercraft Stacked Papercut": "层叠剪纸风格",
  • "Papercraft Thick Layered Papercut": "厚层剪纸风格",
  • "Photo Alien": "外星风格摄影",
  • "Photo Film Noir": "电影黑色风格摄影",
  • "Photo Glamour": "魅力风格摄影",
  • "Photo Hdr": "高动态范围摄影",
  • "Photo Iphone Photographic": "iPhone摄影",
  • "Photo Long Exposure": "长时间曝光摄影",
  • "Photo Neon Noir": "霓虹黑色风格摄影",
  • "Photo Silhouette": "剪影风格摄影",
  • "Photo Tilt Shift": "移轴摄影",
  • "Cinematic Diva": "电影-高光时刻",
  • "Abstract Expressionism": "抽象表现主义",
  • "Action Figure": "动作人偶",
  • "Adorable 3D Character": "可爱的3D角色",
  • "Adorable Kawaii": "可爱迷人",
  • "Art Deco": "艺术装饰",
  • "Art Nouveau": "新艺术",
  • "Astral Aura": "星体光环",
  • "Avant Garde": "前卫派",
  • "Baroque": "巴洛克",
  • "Bauhaus Style Poster": "包豪斯风格海报",
  • "Blueprint Schematic Drawing": "工程蓝图",
  • "Caricature": "漫画",
  • "Cel Shaded Art": "渐变阴影艺术",
  • "Character Design Sheet": "角色设计表",
  • "Classicism Art": "古典主义艺术",
  • "Color Field Painting": "色块绘画",
  • "Colored Pencil Art": "彩色铅笔艺术",
  • "Conceptual Art": "概念艺术",
  • "Constructivism": "建构主义",
  • "Cubism": "立体主义",
  • "Dadaism": "达达主义",
  • "Dark Fantasy": "黑暗幻想",
  • "Dark Moody Atmosphere": "黑暗情绪氛围",
  • "Dmt Art Style": "DMT艺术风格",
  • "Doodle Art": "涂鸦艺术",
  • "Double Exposure": "双重曝光",
  • "Dripping Paint Splatter Art": "滴落的颜料飞溅艺术",
  • "Expressionism": "表现主义",
  • "Faded Polaroid Photo": "褪色的宝丽来照片",
  • "Fauvism": "野兽派",
  • "Flat 2d Art": "扁平2D艺术",
  • "Fortnite Art Style": "堡垒之夜艺术风格",
  • "Futurism": "未来主义",
  • "Glitchcore": "故障核心",
  • "Glo Fi": "发光低保真",
  • "Googie Art Style": "Googie艺术风格",
  • "Graffiti Art": "涂鸦艺术",
  • "Harlem Renaissance Art": "哈莱姆文艺复兴艺术",
  • "High Fashion": "高级时装",
  • "Idyllic": "田园诗般的",
  • "Impressionism": "印象主义",
  • "Infographic Drawing": "信息图绘制",
  • "Ink Dripping Drawing": "滴墨绘画",
  • "Japanese Ink Drawing": "日本墨画",
  • "Knolling Photography": "排列摄影",
  • "Light Cheery Atmosphere": "轻松愉快的氛围",
  • "Logo Design": "Logo设计",
  • "Luxurious Elegance": "豪华优雅",
  • "Macro Photography": "微距摄影",
  • "Mandola Art": "曼多拉艺术",
  • "Marker Drawing": "马克笔绘画",
  • "Medievalism": "中世纪主义",
  • "Minimalism": "极简主义",
  • "Neo Baroque": "新巴洛克",
  • "Neo Byzantine": "新拜占庭",
  • "Neo Futurism": "新未来主义",
  • "Neo Impressionism": "新印象主义",
  • "Neo Rococo": "新洛可可",
  • "Neoclassicism": "新古典主义",
  • "Op Art": "视觉艺术",
  • "Ornate And Intricate": "华丽和复杂",
  • "Pencil Sketch Drawing": "铅笔素描",
  • "Pop Art 2": "波普艺术",
  • "Rococo": "洛可可",
  • "Silhouette Art": "剪影艺术",
  • "Simple Vector Art": "简单矢量艺术",
  • "Sketchup": "Sketchup设计",
  • "Steampunk 2": "蒸汽朋克",
  • "Surrealism": "超现实主义",
  • "Suprematism": "至上主义",
  • "Terragen": "Terragen景观",
  • "Tranquil Relaxing Atmosphere": "宁静放松的氛围",
  • "Sticker Designs": "贴纸设计",
  • "Vibrant Rim Light": "活跃边缘光",
  • "Volumetric Lighting": "体积光",
  • "Watercolor 2": "水彩",
  • "Whimsical And Playful": "异想天开和俏皮",
  • "Mk Chromolithography": "MK 彩色石版印刷",
  • "Mk Cross Processing Print": "MK 交叉处理印刷",
  • "Mk Dufaycolor Photograph": "MK 杜菲色彩摄影",
  • "Mk Herbarium": "MK 植物标本馆",
  • "Mk Punk Collage": "MK 朋克拼贴",
  • "Mk Mosaic": "MK 马赛克",
  • "Mk Van Gogh": "MK 梵高",
  • "Mk Coloring Book": "MK 绘画书",
  • "Mk Singer Sargent": "MK 辛格·萨金特",
  • "Mk Pollock": "MK 波洛克",
  • "Mk Basquiat": "MK 巴斯奇亚特",
  • "Mk Andy Warhol": "MK 安迪·沃霍尔",
  • "Mk Halftone Print": "MK 半调印刷",
  • "Mk Gond Painting": "MK 贡德绘画",
  • "Mk Albumen Print": "MK 蛋白印刷",
  • "Mk Aquatint Print": "MK 水彩雕刻印刷",
  • "Mk Anthotype Print": "MK 花卉印刷",
  • "Mk Inuit Carving": "MK 因纽特雕刻",
  • "Mk Bromoil Print": "MK 溴油印刷",
  • "Mk Calotype Print": "MK 卡罗型印刷",
  • "Mk Color Sketchnote": "MK 彩色速写笔记",
  • "Mk Cibulak Porcelain": "MK 西布拉克瓷器",
  • "Mk Alcohol Ink Art": "MK 酒精墨艺术",
  • "Mk One Line Art": "MK 单线艺术",
  • "Mk Blacklight Paint": "MK 黑光漆",
  • "Mk Carnival Glass": "MK 狂欢节玻璃",
  • "Mk Cyanotype Print": "MK 青印法印刷",
  • "Mk Cross Stitching": "MK 十字绣",
  • "Mk Encaustic Paint": "MK 蜡画",
  • "Mk Embroidery": "MK 刺绣",
  • "Mk Gyotaku": "MK 鱼拓",
  • "Mk Luminogram": "MK 光绘摄影",
  • "Mk Lite Brite Art": "MK 亮彩艺术",
  • "Mk Mokume Gane": "MK 木目金",
  • "Pebble Art": "MK 卵石艺术",
  • "Mk Palekh art": "MK 巴列赫艺术",
  • "Mk Suminagashi": "MK 墨浮绘画",
  • "Mk Scrimshaw": "MK 齿雕艺术",
  • "Mk Shibori": "MK 手染织物",
  • "Mk Vitreous Enamel": "MK 琺瑯雕塑",
  • "Mk Ukiyo E": "MK 浮世绘",
  • "Mk Vintage Airline Poster": "MK 复古航空海报",
  • "Mk Vintage Travel Poster": "MK 复古旅行海报",
  • "Mk Bauhaus Style": "MK 包豪斯风格",
  • "Mk Afrofuturism": "MK 非洲未来主义插画",
  • "Mk Atompunk": "MK 原子朋克插画",
  • "Mk Constructivism": "MK 构成主义",
  • "Mk Chicano Art": "MK 奇卡诺艺术",
  • "Mk De Stijl": "MK 德·斯泰尔艺术",
  • "Mk Dayak Art": "MK 印尼达雅克艺术雕塑",
  • "Mk Fayum Portrait": "MK 法尤姆肖像画",
  • "Mk Illuminated Manuscript": "MK 饰面手抄本",
  • "Mk Kalighat Painting": "MK 卡利加特绘画",
  • "Mk Madhubani Painting": "MK 马杜巴尼绘画",
  • "Mk Pictorialism": "MK 图像主义插画",
  • "Mk Pichwai Painting": "MK 皮奇瓦伊绘画",
  • "Mk Patachitra Painting": "MK 帕塔奇特拉绘画",
  • "Mk Samoan Art Inspired": "MK 萨摩亚艺术雕塑",
  • "Mk Tlingit Art": "MK 特林吉特艺术",
  • "Mk Adnate Style": "MK Adnate风格",
  • "Mk Ron English Style": "MK Ron English风格",
  • "Mk Shepard Fairey Style": "MK Shepard Fairey风格",

风格样式提示词对照

在选中相关风格后,增加提示词内容即可。非常方便,不需要使用Lora。

风格样式-提示词对照表:

[{
	"name": "Fooocus V2",
	"prompt": "highly detailed, dramatic light, sharp focus, illuminated, fine detail, polished, pristine, attractive, celestial, symmetry, pretty, striking, extremely,"
}, {
	"name": "Fooocus Enhance",
	"prompt": "extremely detailed, breathtaking, beautiful composition, cinematic, highly saturated colors, inspired, illustrious, enhance detail,"
}, {
	"name": "Fooocus Sharp",
	"prompt": "emotional, harmonious, vignette, 4k epic detailed, shot on kodak, 35mm photo, sharp focus, high budget, cinemascope, moody, epic, gorgeous, film grain, grainy"
}, {
	"name": "Fooocus Sharp",
	"prompt": "cinematic still ,  emotional, harmonious, vignette, 4k epic detailed, shot on kodak, 35mm photo, sharp focus, high budget, cinemascope, moody, epic, gorgeous, film grain, grainy"
}, {
	"name": "Fooocus Masterpiece",
	"prompt": "(masterpiece), (best quality), (ultra-detailed), , illustration, disheveled hair, detailed eyes, perfect composition, moist skin, intricate details, earrings, by wlop"
}, {
	"name": "Fooocus Photograph",
	"prompt": "photograph , 50mm . cinematic 4k epic detailed 4k epic detailed photograph shot on kodak detailed cinematic hbo dark moody, 35mm photo, grainy, vignette, vintage, Kodachrome, Lomography, stained, highly detailed, found footage"
}, {
	"name": "Fooocus Cinematic",
	"prompt": "cinematic still ,  emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy"
}, {
	"name": "cinematic-diva",
	"prompt": "UHD, 8K, ultra detailed, a cinematic photograph of , beautiful lighting, great composition"
}, {
	"name": "Abstract Expressionism",
	"prompt": "Abstract Expressionism Art, , High contrast, minimalistic, colorful, stark, dramatic, expressionism"
}, {
	"name": "Academia",
	"prompt": "Academia, , preppy Ivy League style, stark, dramatic, chic boarding school, academia"
}, {
	"name": "Action Figure",
	"prompt": "Action Figure, , plastic collectable action figure, collectable toy action figure"
}, {
	"name": "Adorable 3D Character",
	"prompt": "Adorable 3D Character, , 3D render, adorable character, 3D art"
}, {
	"name": "Adorable Kawaii",
	"prompt": "Adorable Kawaii, , pretty, cute, adorable, kawaii"
}, {
	"name": "Art Deco",
	"prompt": "Art Deco, , sleek, geometric forms, art deco style"
}, {
	"name": "Art Nouveau",
	"prompt": "Art Nouveau, beautiful art, , sleek, organic forms, long, sinuous, art nouveau style"
}, {
	"name": "Astral Aura",
	"prompt": "Astral Aura, , astral, colorful aura, vibrant energy"
}, {
	"name": "Avant-garde",
	"prompt": "Avant-garde, , unusual, experimental, avant-garde art"
}, {
	"name": "Baroque",
	"prompt": "Baroque, , dramatic, exuberant, grandeur, baroque art"
}, {
	"name": "Bauhaus-Style Poster",
	"prompt": "Bauhaus-Style Poster, , simple geometric shapes, clean lines, primary colors, Bauhaus-Style Poster"
}, {
	"name": "Blueprint Schematic Drawing",
	"prompt": "Blueprint Schematic Drawing, , technical drawing, blueprint, schematic"
}, {
	"name": "Caricature",
	"prompt": "Caricature, , exaggerated, comical, caricature"
}, {
	"name": "Cel Shaded Art",
	"prompt": "Cel Shaded Art, , 2D, flat color, toon shading, cel shaded style"
}, {
	"name": "Character Design Sheet",
	"prompt": "Character Design Sheet, , character reference sheet, character turn around"
}, {
	"name": "Classicism Art",
	"prompt": "Classicism Art, , inspired by Roman and Greek culture, clarity, harmonious, classicism art"
}, {
	"name": "Color Field Painting",
	"prompt": "Color Field Painting, , abstract, simple, geometic, color field painting style"
}, {
	"name": "Colored Pencil Art",
	"prompt": "Colored Pencil Art, , colored pencil strokes, light color, visible paper texture, colored pencil art"
}, {
	"name": "Conceptual Art",
	"prompt": "Conceptual Art, , concept art"
}, {
	"name": "Constructivism",
	"prompt": "Constructivism Art, , minimalistic, geometric forms, constructivism art"
}, {
	"name": "Cubism",
	"prompt": "Cubism Art, , flat geometric forms, cubism art"
}, {
	"name": "Dadaism",
	"prompt": "Dadaism Art, , satirical, nonsensical, dadaism art"
}, {
	"name": "Dark Fantasy",
	"prompt": "Dark Fantasy Art, , dark, moody, dark fantasy style"
}, {
	"name": "Dark Moody Atmosphere",
	"prompt": "Dark Moody Atmosphere, , dramatic, mysterious, dark moody atmosphere"
}, {
	"name": "DMT Art Style",
	"prompt": "DMT Art Style, , bright colors, surreal visuals, swirling patterns, DMT art style"
}, {
	"name": "Doodle Art",
	"prompt": "Doodle Art Style, , drawing, freeform, swirling patterns, doodle art style"
}, {
	"name": "Double Exposure",
	"prompt": "Double Exposure Style, , double image ghost effect, image combination, double exposure style"
}, {
	"name": "Dripping Paint Splatter Art",
	"prompt": "Dripping Paint Splatter Art, , dramatic, paint drips, splatters, dripping paint"
}, {
	"name": "Expressionism",
	"prompt": "Expressionism Art Style, , movement, contrast, emotional, exaggerated forms, expressionism art style"
}, {
	"name": "Faded Polaroid Photo",
	"prompt": "Faded Polaroid Photo, , analog, old faded photo, old polaroid"
}, {
	"name": "Fauvism",
	"prompt": "Fauvism Art, , painterly, bold colors, textured brushwork, fauvism art"
}, {
	"name": "Flat 2D Art",
	"prompt": "Flat 2D Art, , simple flat color, 2-dimensional, Flat 2D Art Style"
}, {
	"name": "Fortnite Art Style",
	"prompt": "Fortnite Art Style, , 3D cartoon, colorful, Fortnite Art Style"
}, {
	"name": "Futurism",
	"prompt": "Futurism Art Style, , dynamic, dramatic, Futurism Art Style"
}, {
	"name": "Glitchcore",
	"prompt": "Glitchcore Art Style, , dynamic, dramatic, distorted, vibrant colors, glitchcore art style"
}, {
	"name": "Glo-fi",
	"prompt": "Glo-fi Art Style, , dynamic, dramatic, vibrant colors, glo-fi art style"
}, {
	"name": "Googie Art Style",
	"prompt": "Googie Art Style, , dynamic, dramatic, 1950's futurism, bold boomerang angles, Googie art style"
}, {
	"name": "Graffiti Art",
	"prompt": "Graffiti Art Style, , dynamic, dramatic, vibrant colors, graffiti art style"
}, {
	"name": "Harlem Renaissance Art",
	"prompt": "Harlem Renaissance Art Style, , dynamic, dramatic, 1920s African American culture, Harlem Renaissance art style"
}, {
	"name": "High Fashion",
	"prompt": "High Fashion, , dynamic, dramatic, haute couture, elegant, ornate clothing, High Fashion"
}, {
	"name": "Idyllic",
	"prompt": "Idyllic, , peaceful, happy, pleasant, happy, harmonious, picturesque, charming"
}, {
	"name": "Impressionism",
	"prompt": "Impressionism, , painterly, small brushstrokes, visible brushstrokes, impressionistic style"
}, {
	"name": "Infographic Drawing",
	"prompt": "Infographic Drawing, , diagram, infographic"
}, {
	"name": "Ink Dripping Drawing",
	"prompt": "Ink Dripping Drawing, , ink drawing, dripping ink"
}, {
	"name": "Japanese Ink Drawing",
	"prompt": "Japanese Ink Drawing, , ink drawing, inkwash, Japanese Ink Drawing"
}, {
	"name": "Knolling Photography",
	"prompt": "Knolling Photography, , flat lay photography, object arrangment, knolling photography"
}, {
	"name": "Light Cheery Atmosphere",
	"prompt": "Light Cheery Atmosphere, , happy, joyful, cheerful, carefree, gleeful, lighthearted, pleasant atmosphere"
}, {
	"name": "Logo Design",
	"prompt": "Logo Design, , dynamic graphic art, vector art, minimalist, professional logo design"
}, {
	"name": "Luxurious Elegance",
	"prompt": "Luxurious Elegance, , extravagant, ornate, designer, opulent, picturesque, lavish"
}, {
	"name": "Macro Photography",
	"prompt": "Macro Photography, , close-up, macro 100mm, macro photography"
}, {
	"name": "Mandola Art",
	"prompt": "Mandola art style, , complex, circular design, mandola"
}, {
	"name": "Marker Drawing",
	"prompt": "Marker Drawing, , bold marker lines, visibile paper texture, marker drawing"
}, {
	"name": "Medievalism",
	"prompt": "Medievalism, , inspired by The Middle Ages, medieval art, elaborate patterns and decoration, Medievalism"
}, {
	"name": "Minimalism",
	"prompt": "Minimalism, , abstract, simple geometic shapes, hard edges, sleek contours, Minimalism"
}, {
	"name": "Neo-Baroque",
	"prompt": "Neo-Baroque, , ornate and elaborate, dynaimc, Neo-Baroque"
}, {
	"name": "Neo-Byzantine",
	"prompt": "Neo-Byzantine, , grand decorative religious style, Orthodox Christian inspired, Neo-Byzantine"
}, {
	"name": "Neo-Futurism",
	"prompt": "Neo-Futurism, , high-tech, curves, spirals, flowing lines, idealistic future, Neo-Futurism"
}, {
	"name": "Neo-Impressionism",
	"prompt": "Neo-Impressionism, , tiny dabs of color, Pointillism, painterly, Neo-Impressionism"
}, {
	"name": "Neo-Rococo",
	"prompt": "Neo-Rococo, , curved forms, naturalistic ornamentation, elaborate, decorative, gaudy, Neo-Rococo"
}, {
	"name": "Neoclassicism",
	"prompt": "Neoclassicism, , ancient Rome and Greece inspired, idealic, sober colors, Neoclassicism"
}, {
	"name": "Op Art",
	"prompt": "Op Art, , optical illusion, abstract, geometric pattern, impression of movement, Op Art"
}, {
	"name": "Ornate and Intricate",
	"prompt": "Ornate and Intricate, , decorative, highly detailed, elaborate, ornate, intricate"
}, {
	"name": "Pencil Sketch Drawing",
	"prompt": "Pencil Sketch Drawing, , black and white drawing, graphite drawing"
}, {
	"name": "Pop Art 2",
	"prompt": "Pop Art, , vivid colors, flat color, 2D, strong lines, Pop Art"
}, {
	"name": "Rococo",
	"prompt": "Rococo, , flamboyant, pastel colors, curved lines, elaborate detail, Rococo"
}, {
	"name": "Silhouette Art",
	"prompt": "Silhouette Art, , high contrast, well defined, Silhouette Art"
}, {
	"name": "Simple Vector Art",
	"prompt": "Simple Vector Art, , 2D flat, simple shapes, minimalistic, professional graphic, flat color, high contrast, Simple Vector Art"
}, {
	"name": "Sketchup",
	"prompt": "Sketchup, , CAD, professional design, Sketchup"
}, {
	"name": "Steampunk 2",
	"prompt": "Steampunk, , retrofuturistic science fantasy, steam-powered tech, vintage industry, gears, neo-victorian, steampunk"
}, {
	"name": "Surrealism",
	"prompt": "Surrealism, , expressive, dramatic, organic lines and forms, dreamlike and mysterious, Surrealism"
}, {
	"name": "Suprematism",
	"prompt": "Suprematism, , abstract, limited color palette, geometric forms, Suprematism"
}, {
	"name": "Terragen",
	"prompt": "Terragen, , beautiful massive landscape, epic scenery, Terragen",
	"negative_prompt": "ugly, deformed, noisy, blurry, low contrast"
}, {
	"name": "Tranquil Relaxing Atmosphere",
	"prompt": "Tranquil Relaxing Atmosphere, , calming style, soothing colors, peaceful, idealic, Tranquil Relaxing Atmosphere"
}, {
	"name": "Sticker Designs",
	"prompt": "Vector Art Stickers, , professional vector design, sticker designs, Sticker Sheet"
}, {
	"name": "Vibrant Rim Light",
	"prompt": "Vibrant Rim Light, , bright rim light, high contrast, bold edge light"
}, {
	"name": "Volumetric Lighting",
	"prompt": "Volumetric Lighting, , light depth, dramatic atmospheric lighting, Volumetric Lighting"
}, {
	"name": "Watercolor 2",
	"prompt": "Watercolor style painting, , visible paper texture, colorwash, watercolor"
}, {
	"name": "Whimsical and Playful",
	"prompt": "Whimsical and Playful, , imaginative, fantastical, bight colors, stylized, happy, Whimsical and Playful"
}, {
	"name": "sai-3d-model",
	"prompt": "professional 3d model ,  octane render, highly detailed, volumetric, dramatic lighting"
}, {
	"name": "sai-analog film",
	"prompt": "analog film photo ,  faded film, desaturated, 35mm photo, grainy, vignette, vintage, Kodachrome, Lomography, stained, highly detailed, found footage"
}, {
	"name": "sai-anime",
	"prompt": "anime artwork ,  anime style, key visual, vibrant, studio anime, highly detailed"
}, {
	"name": "sai-cinematic",
	"prompt": "cinematic film still ,  shallow depth of field, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy"
}, {
	"name": "sai-comic book",
	"prompt": "comic ,  graphic illustration, comic art, graphic novel art, vibrant, highly detailed"
}, {
	"name": "sai-craft clay",
	"prompt": "play-doh style ,  sculpture, clay art, centered composition, Claymation"
}, {
	"name": "sai-digital art",
	"prompt": "concept art ,  digital artwork, illustrative, painterly, matte painting, highly detailed"
}, {
	"name": "sai-enhance",
	"prompt": "breathtaking ,  award-winning, professional, highly detailed"
}, {
	"name": "sai-fantasy art",
	"prompt": "ethereal fantasy concept art of  ,  magnificent, celestial, ethereal, painterly, epic, majestic, magical, fantasy art, cover art, dreamy"
}, {
	"name": "sai-isometric",
	"prompt": "isometric style ,  vibrant, beautiful, crisp, detailed, ultra detailed, intricate"
}, {
	"name": "sai-line art",
	"prompt": "line art drawing ,  professional, sleek, modern, minimalist, graphic, line art, vector graphics"
}, {
	"name": "sai-lowpoly",
	"prompt": "low-poly style ,  low-poly game art, polygon mesh, jagged, blocky, wireframe edges, centered composition"
}, {
	"name": "sai-neonpunk",
	"prompt": "neonpunk style ,  cyberpunk, vaporwave, neon, vibes, vibrant, stunningly beautiful, crisp, detailed, sleek, ultramodern, magenta highlights, dark purple shadows, high contrast, cinematic, ultra detailed, intricate, professional"
}, {
	"name": "sai-origami",
	"prompt": "origami style ,  paper art, pleated paper, folded, origami art, pleats, cut and fold, centered composition"
}, {
	"name": "sai-photographic",
	"prompt": "cinematic photo ,  35mm photograph, film, bokeh, professional, 4k, highly detailed"
}, {
	"name": "sai-pixel art",
	"prompt": "pixel-art ,  low-res, blocky, pixel art style, 8-bit graphics"
}, {
	"name": "sai-texture",
	"prompt": "texture top down close-up"
}, {
	"name": "mre-cinematic-dynamic",
	"prompt": "epic cinematic shot of dynamic  in motion. main subject of high budget action movie. raw photo, motion blur. best quality, high resolution"
}, {
	"name": "mre-spontaneous-picture",
	"prompt": "spontaneous picture of , taken by talented amateur. best quality, high resolution. magical moment, natural look. simple but good looking"
}, {
	"name": "mre-artistic-vision",
	"prompt": "powerful artistic vision ,  breathtaking masterpiece made by great artist. best quality, high resolution"
}, {
	"name": "mre-dark-dream",
	"prompt": "dark and unsettling dream showing ,  best quality, high resolution. created by genius but depressed mad artist. grim beauty"
}, {
	"name": "mre-gloomy-art",
	"prompt": "astonishing gloomy art made mainly of shadows and lighting, forming ,  masterful usage of lighting, shadows and chiaroscuro. made by black-hearted artist, drawing from darkness. best quality, high resolution"
}, {
	"name": "mre-bad-dream",
	"prompt": "picture from really bad dream about terrifying , true horror. bone-chilling vision. mad world that shouldn't exist. best quality, high resolution"
}, {
	"name": "mre-underground",
	"prompt": "uncanny caliginous vision of , created by remarkable underground artist. best quality, high resolution. raw and brutal art, careless but impressive style. inspired by darkness and chaos"
}, {
	"name": "mre-surreal-painting",
	"prompt": "surreal painting representing strange vision ,  harmonious madness, synergy with chance. unique artstyle, mindbending art, magical surrealism. best quality, high resolution"
}, {
	"name": "mre-dynamic-illustration",
	"prompt": "insanely dynamic illustration ,  best quality, high resolution. crazy artstyle, careless brushstrokes, emotional and fun"
}, {
	"name": "mre-undead-art",
	"prompt": "long forgotten art created by undead artist illustrating , tribute to the death and decay. miserable art of the damned. wretched and decaying world. best quality, high resolution"
}, {
	"name": "mre-elemental-art",
	"prompt": "art illustrating insane amounts of raging elemental energy turning into , avatar of elements. magical surrealism, wizardry. best quality, high resolution"
}, {
	"name": "mre-space-art",
	"prompt": "winner of inter-galactic art contest illustrating , symbol of the interstellar singularity. best quality, high resolution. artstyle previously unseen in the whole galaxy"
}, {
	"name": "mre-ancient-illustration",
	"prompt": "sublime ancient illustration of , predating human civilization. crude and simple, but also surprisingly beautiful artwork, made by genius primeval artist. best quality, high resolution"
}, {
	"name": "mre-brave-art",
	"prompt": "brave, shocking, and brutally true art showing ,  inspired by courage and unlimited creativity. truth found in chaos. best quality, high resolution"
}, {
	"name": "mre-heroic-fantasy",
	"prompt": "heroic fantasy painting of , in the dangerous fantasy world. airbrush over oil on canvas. best quality, high resolution"
}, {
	"name": "mre-dark-cyberpunk",
	"prompt": "dark cyberpunk illustration of brutal  in a world without hope, ruled by ruthless criminal corporations. best quality, high resolution"
}, {
	"name": "mre-lyrical-geometry",
	"prompt": "geometric and lyrical abstraction painting presenting ,  oil on metal. best quality, high resolution"
}, {
	"name": "mre-sumi-e-symbolic",
	"prompt": "big long brushstrokes of deep black sumi-e turning into symbolic painting ,  master level raw art. best quality, high resolution"
}, {
	"name": "mre-sumi-e-detailed",
	"prompt": "highly detailed black sumi-e painting ,  in-depth study of perfection, created by a master. best quality, high resolution"
}, {
	"name": "mre-manga",
	"prompt": "manga artwork presenting ,  created by japanese manga artist. highly emotional. best quality, high resolution"
}, {
	"name": "mre-anime",
	"prompt": "anime artwork illustrating ,  created by japanese anime studio. highly emotional. best quality, high resolution"
}, {
	"name": "mre-comic",
	"prompt": "breathtaking illustration from adult comic book presenting ,  fabulous artwork. best quality, high resolution"
}, {
	"name": "MK Chromolithography",
	"prompt": "Chromolithograph ,  Vibrant colors, intricate details, rich color saturation, meticulous registration, multi-layered printing, decorative elements, historical charm, artistic reproductions, commercial posters, nostalgic, ornate compositions."
}, {
	"name": "MK Cross Processing Print",
	"prompt": "Cross processing print ,  Experimental color shifts, unconventional tonalities, vibrant and surreal hues, heightened contrasts, unpredictable results, artistic unpredictability, retro and vintage feel, dynamic color interplay, abstract and dreamlike."
}, {
	"name": "MK Dufaycolor Photograph",
	"prompt": "Dufaycolor photograph ,  Vintage color palette, distinctive color rendering, soft and dreamy atmosphere, historical charm, unique color process, grainy texture, evocative mood, nostalgic aesthetic, hand-tinted appearance, artistic patina."
}, {
	"name": "MK Herbarium",
	"prompt": "Herbarium drawing,  Botanical accuracy, old botanical book illustration, detailed illustrations, pressed plants, delicate and precise linework, scientific documentation, meticulous presentation, educational purpose, organic compositions, timeless aesthetic, naturalistic beauty."
}, {
	"name": "MK Punk Collage",
	"prompt": "punk collage style ,  mixed media, papercut,textured paper, overlapping, ripped posters, safety pins, chaotic layers, graffiti-style elements, anarchy symbols, vintage photos, cut-and-paste aesthetic, bold typography, distorted images, political messages, urban decay, distressed textures, newspaper clippings, spray paint, rebellious icons, DIY spirit, vivid colors, punk band logos, edgy and raw compositions, "
}, {
	"name": "MK mosaic",
	"prompt": "mosaic style ,  fragmented, assembled, colorful, highly detailed"
}, {
	"name": "MK Van Gogh",
	"prompt": "Oil painting by Van Gogh ,  Expressive, impasto, swirling brushwork, vibrant, brush strokes, Brushstroke-heavy, Textured, Impasto, Colorful, Dynamic, Bold, Distinctive, Vibrant, Whirling, Expressive, Dramatic, Swirling, Layered, Intense, Contrastive, Atmospheric, Luminous, Textural, Evocative, SpiraledVan Gogh style"
}, {
	"name": "MK Coloring Book",
	"prompt": "centered black and white high contrast line drawing, coloring book style,,  monochrome, blank white background"
}, {
	"name": "MK Singer Sargent",
	"prompt": "Oil painting by John Singer Sargent ,  Elegant, refined, masterful technique,realistic portrayal, subtle play of light, captivating expression, rich details, harmonious colors, skillful composition, brush strokes, chiaroscuro."
}, {
	"name": "MK Pollock",
	"prompt": "Oil painting by Jackson Pollock ,  Abstract expressionism, drip painting, chaotic composition, energetic, spontaneous, unconventional technique, dynamic, bold, distinctive, vibrant, intense, expressive, energetic, layered, non-representational, gestural."
}, {
	"name": "MK Basquiat",
	"prompt": "Artwork by Jean-Michel Basquiat ,  Neo-expressionism, street art influence, graffiti-inspired, raw, energetic, bold colors, dynamic composition, chaotic, layered, textural, expressive, spontaneous, distinctive, symbolic,energetic brushstrokes."
}, {
	"name": "MK Andy Warhol",
	"prompt": "Artwork in the style of Andy Warhol ,  Pop art, vibrant colors, bold compositions, repetition of iconic imagery, celebrity culture, commercial aesthetics, mass production influence, stylized simplicity, cultural commentary, graphical elements, distinctive portraits."
}, {
	"name": "MK Halftone print",
	"prompt": "Halftone print ,  Dot matrix pattern, grayscale tones, vintage aesthetic, newspaper print vibe, stylized dots, visual texture, black and white contrasts, retro appearance, artistic pointillism,pop culture, (Roy Lichtenstein style:1.5)."
}, {
	"name": "MK Gond Painting",
	"prompt": "Gond painting ,  Intricate patterns, vibrant colors, detailed motifs, nature-inspired themes, tribal folklore, fine lines, intricate detailing, storytelling compositions, mystical and folkloric, cultural richness."
}, {
	"name": "MK Albumen Print",
	"prompt": "Albumen print ,  Sepia tones, fine details, subtle tonal gradations, delicate highlights, vintage aesthetic, soft and muted atmosphere, historical charm, rich textures, meticulous craftsmanship, classic photographic technique, vignetting."
}, {
	"name": "MK Aquatint Print",
	"prompt": "Aquatint print ,  Soft tonal gradations, atmospheric effects, velvety textures, rich contrasts, fine details, etching process, delicate lines, nuanced shading, expressive and moody atmosphere, artistic depth."
}, {
	"name": "MK Anthotype Print",
	"prompt": "Anthotype print ,  Monochrome dye, soft and muted colors, organic textures, ephemeral and delicate appearance, low details, watercolor canvas, low contrast, overexposed, silhouette, textured paper."
}, {
	"name": "MK Inuit Carving",
	"prompt": "A sculpture made of ivory,  made of . Sculptures, Inuit art style, intricate carvings, natural materials, storytelling motifs, arctic wildlife themes, symbolic representations, cultural traditions, earthy tones, harmonious compositions, spiritual and mythological elements."
}, {
	"name": "MK Bromoil Print",
	"prompt": "Bromoil print ,  Painterly effects, sepia tones, textured surfaces, rich contrasts, expressive brushwork, tonal variations, vintage aesthetic, atmospheric mood, handmade quality, artistic experimentation, darkroom craftsmanship, vignetting."
}, {
	"name": "MK Calotype Print",
	"prompt": "Calotype print ,  Soft focus, subtle tonal range, paper negative process, fine details, vintage aesthetic, artistic experimentation, atmospheric mood, early photographic charm, handmade quality, vignetting."
}, {
	"name": "MK Color Sketchnote",
	"prompt": "Color sketchnote ,  Hand-drawn elements, vibrant colors, visual hierarchy, playful illustrations, varied typography, graphic icons, organic and dynamic layout, personalized touches, creative expression, engaging storytelling."
}, {
	"name": "MK Cibulak Porcelain",
	"prompt": "A sculpture made of blue pattern porcelain ,  Classic design, blue and white color scheme, intricate detailing, floral motifs, onion-shaped elements, historical charm, rococo, white ware, cobalt blue, underglaze pattern, fine craftsmanship, traditional elegance, delicate patterns, vintage aesthetic, Meissen, Blue Onion pattern, Cibulak."
}, {
	"name": "MK Alcohol Ink Art",
	"prompt": "Alcohol ink art ,  Fluid and vibrant colors, unpredictable patterns, organic textures, translucent layers, abstract compositions, ethereal and dreamy effects, free-flowing movement, expressive brushstrokes, contemporary aesthetic, wet textured paper."
}, {
	"name": "MK One Line Art",
	"prompt": "One line art ,  Continuous and unbroken black line, minimalistic, simplicity, economical use of space, flowing and dynamic, symbolic representations, contemporary aesthetic, evocative and abstract, white background."
}, {
	"name": "MK Blacklight Paint",
	"prompt": "Blacklight paint ,  Fluorescent pigments, vibrant and surreal colors, ethereal glow, otherworldly effects, dynamic and psychedelic compositions, neon aesthetics, transformative in ultraviolet light, contemporary and experimental."
}, {
	"name": "MK Carnival Glass",
	"prompt": "A sculpture made of Carnival glass, ,  Iridescent surfaces, vibrant colors, intricate patterns, opalescent hues, reflective and prismatic effects, Art Nouveau and Art Deco influences, vintage charm, intricate detailing, lustrous and luminous appearance, Carnival Glass style."
}, {
	"name": "MK Cyanotype Print",
	"prompt": "Cyanotype print ,  Prussian blue tones, distinctive coloration, high contrast, blueprint aesthetics, atmospheric mood, sun-exposed paper, silhouette effects, delicate details, historical charm, handmade and experimental quality."
}, {
	"name": "MK Cross-Stitching",
	"prompt": "Cross-stitching ,  Intricate patterns, embroidery thread, sewing, fine details, precise stitches, textile artistry, symmetrical designs, varied color palette, traditional and contemporary motifs, handmade and crafted,canvas, nostalgic charm."
}, {
	"name": "MK Encaustic Paint",
	"prompt": "Encaustic paint ,  Textured surfaces, translucent layers, luminous quality, wax medium, rich color saturation, fluid and organic shapes, contemporary and historical influences, mixed media elements, atmospheric depth."
}, {
	"name": "MK Embroidery",
	"prompt": "Embroidery ,  Intricate stitching, embroidery thread, fine details, varied thread textures, textile artistry, embellished surfaces, diverse color palette, traditional and contemporary motifs, handmade and crafted, tactile and ornate."
}, {
	"name": "MK Gyotaku",
	"prompt": "Gyotaku ,  Fish impressions, realistic details, ink rubbings, textured surfaces, traditional Japanese art form, nature-inspired compositions, artistic representation of marine life, black and white contrasts, cultural significance."
}, {
	"name": "MK Luminogram",
	"prompt": "Luminogram ,  Photogram technique, ethereal and abstract effects, light and shadow interplay, luminous quality, experimental process, direct light exposure, unique and unpredictable results, artistic experimentation."
}, {
	"name": "MK Lite Brite Art",
	"prompt": "Lite Brite art ,  Luminous and colorful designs, pixelated compositions, retro aesthetic, glowing effects, creative patterns, interactive and playful, nostalgic charm, vibrant and dynamic arrangements."
}, {
	"name": "MK Mokume-gane",
	"prompt": "Mokume-gane ,  Wood-grain patterns, mixed metal layers, intricate and organic designs, traditional Japanese metalwork, harmonious color combinations, artisanal craftsmanship, unique and layered textures, cultural and historical significance."
}, {
	"name": "Pebble Art",
	"prompt": "a sculpture made of peebles, ,  Pebble art style,natural materials, textured surfaces, balanced compositions, organic forms, harmonious arrangements, tactile and 3D effects, beach-inspired aesthetic, creative storytelling, artisanal craftsmanship."
}, {
	"name": "MK Palekh",
	"prompt": "Palekh art ,  Miniature paintings, intricate details, vivid colors, folkloric themes, lacquer finish, storytelling compositions, symbolic elements, Russian folklore influence, cultural and historical significance."
}, {
	"name": "MK Suminagashi",
	"prompt": "Suminagashi ,  Floating ink patterns, marbled effects, delicate and ethereal designs, water-based ink, fluid and unpredictable compositions, meditative process, monochromatic or subtle color palette, Japanese artistic tradition."
}, {
	"name": "MK Scrimshaw",
	"prompt": "A Scrimshaw engraving ,  Intricate engravings on a spermwhale's teeth, marine motifs, detailed scenes, nautical themes, black and white contrasts, historical craftsmanship, artisanal carving, storytelling compositions, maritime heritage."
}, {
	"name": "MK Shibori",
	"prompt": "Shibori ,  Textured fabric, intricate patterns, resist-dyeing technique, indigo or vibrant colors, organic and flowing designs, Japanese textile art, cultural tradition, tactile and visual interest."
}, {
	"name": "MK Vitreous Enamel",
	"prompt": "A sculpture made of Vitreous enamel ,  Smooth and glossy surfaces, vibrant colors, glass-like finish, durable and resilient, intricate detailing, traditional and contemporary applications, artistic craftsmanship, jewelry and decorative objects, , Vitreous enamel, colored glass."
}, {
	"name": "MK Ukiyo-e",
	"prompt": "Ukiyo-e ,  Woodblock prints, vibrant colors, intricate details, depictions of landscapes, kabuki actors, beautiful women, cultural scenes, traditional Japanese art, artistic craftsmanship, historical significance."
}, {
	"name": "MK vintage-airline-poster",
	"prompt": "vintage airline poster ,  classic aviation fonts, pastel colors, elegant aircraft illustrations, scenic destinations, distressed textures, retro travel allure"
}, {
	"name": "MK vintage-travel-poster",
	"prompt": "vintage travel poster ,  retro fonts, muted colors, scenic illustrations, iconic landmarks, distressed textures, nostalgic vibes"
}, {
	"name": "MK bauhaus-style",
	"prompt": "Bauhaus-inspired ,  minimalism, geometric precision, primary colors, sans-serif typography, asymmetry, functional design"
}, {
	"name": "MK afrofuturism",
	"prompt": "Afrofuturism illustration ,  vibrant colors, futuristic elements, cultural symbolism, cosmic imagery, dynamic patterns, empowering narratives"
}, {
	"name": "MK atompunk",
	"prompt": "Atompunk illustation, ,  retro-futuristic, atomic age aesthetics, sleek lines, metallic textures, futuristic technology, optimism, energy"
}, {
	"name": "MK constructivism",
	"prompt": "Constructivism ,  geometric abstraction, bold colors, industrial aesthetics, dynamic compositions, utilitarian design, revolutionary spirit"
}, {
	"name": "MK chicano-art",
	"prompt": "Chicano art ,  bold colors, cultural symbolism, muralism, lowrider aesthetics, barrio life, political messages, social activism, Mexico"
}, {
	"name": "MK de-stijl",
	"prompt": "De Stijl Art ,  neoplasticism, primary colors, geometric abstraction, horizontal and vertical lines, simplicity, harmony, utopian ideals"
}, {
	"name": "MK dayak-art",
	"prompt": "Dayak art sculpture ,  intricate patterns, nature-inspired motifs, vibrant colors, traditional craftsmanship, cultural symbolism, storytelling"
}, {
	"name": "MK fayum-portrait",
	"prompt": "Fayum portrait ,  encaustic painting, realistic facial features, warm earth tones, serene expressions, ancient Egyptian influences"
}, {
	"name": "MK illuminated-manuscript",
	"prompt": "Illuminated manuscript ,  intricate calligraphy, rich colors, detailed illustrations, gold leaf accents, ornate borders, religious, historical, medieval"
}, {
	"name": "MK kalighat-painting",
	"prompt": "Kalighat painting ,  bold lines, vibrant colors, narrative storytelling, cultural motifs, flat compositions, expressive characters"
}, {
	"name": "MK madhubani-painting",
	"prompt": "Madhubani painting ,  intricate patterns, vibrant colors, nature-inspired motifs, cultural storytelling, symmetry, folk art aesthetics"
}, {
	"name": "MK pictorialism",
	"prompt": "Pictorialism illustration,  soft focus, atmospheric effects, artistic interpretation, tonality, muted colors, evocative storytelling"
}, {
	"name": "MK pichwai-painting",
	"prompt": "Pichwai painting ,  intricate detailing, vibrant colors, religious themes, nature motifs, devotional storytelling, gold leaf accents"
}, {
	"name": "MK patachitra-painting",
	"prompt": "Patachitra painting ,  bold outlines, vibrant colors, intricate detailing, mythological themes, storytelling, traditional craftsmanship"
}, {
	"name": "MK samoan-art-inspired",
	"prompt": "Samoan art-inspired wooden sculpture ,  traditional motifs, natural elements, bold colors, cultural symbolism, storytelling, craftsmanship"
}, {
	"name": "MK tlingit-art",
	"prompt": "Tlingit art ,  formline design, natural elements, animal motifs, bold colors, cultural storytelling, traditional craftsmanship, Alaska traditional art, (totem:1.5)"
}, {
	"name": "MK adnate-style",
	"prompt": "Painting by Adnate ,  realistic portraits, street art, large-scale murals, subdued color palette, social narratives"
}, {
	"name": "MK ron-english-style",
	"prompt": "Painting by Ron English ,  pop-surrealism, cultural subversion, iconic mash-ups, vibrant and bold colors, satirical commentary"
}, {
	"name": "MK shepard-fairey-style",
	"prompt": "Painting by Shepard Fairey ,  street art, political activism, iconic stencils, bold typography, high contrast, red, black, and white color palette"
}, {
	"name": "ads-advertising",
	"prompt": "advertising poster style ,  Professional, modern, product-focused, commercial, eye-catching, highly detailed"
}, {
	"name": "ads-automotive",
	"prompt": "automotive advertisement style ,  sleek, dynamic, professional, commercial, vehicle-focused, high-resolution, highly detailed"
}, {
	"name": "ads-corporate",
	"prompt": "corporate branding style ,  professional, clean, modern, sleek, minimalist, business-oriented, highly detailed"
}, {
	"name": "ads-fashion editorial",
	"prompt": "fashion editorial style ,  high fashion, trendy, stylish, editorial, magazine style, professional, highly detailed"
}, {
	"name": "ads-food photography",
	"prompt": "food photography style ,  appetizing, professional, culinary, high-resolution, commercial, highly detailed"
}, {
	"name": "ads-gourmet food photography",
	"prompt": "gourmet food photo ,  soft natural lighting, macro details, vibrant colors, fresh ingredients, glistening textures, bokeh background, styled plating, wooden tabletop, garnished, tantalizing, editorial quality"
}, {
	"name": "ads-luxury",
	"prompt": "luxury product style ,  elegant, sophisticated, high-end, luxurious, professional, highly detailed"
}, {
	"name": "ads-real estate",
	"prompt": "real estate photography style ,  professional, inviting, well-lit, high-resolution, property-focused, commercial, highly detailed"
}, {
	"name": "ads-retail",
	"prompt": "retail packaging style ,  vibrant, enticing, commercial, product-focused, eye-catching, professional, highly detailed"
}, {
	"name": "artstyle-abstract",
	"prompt": "abstract style ,  non-representational, colors and shapes, expression of feelings, imaginative, highly detailed"
}, {
	"name": "artstyle-abstract expressionism",
	"prompt": "abstract expressionist painting ,  energetic brushwork, bold colors, abstract forms, expressive, emotional"
}, {
	"name": "artstyle-art deco",
	"prompt": "art deco style ,  geometric shapes, bold colors, luxurious, elegant, decorative, symmetrical, ornate, detailed"
}, {
	"name": "artstyle-art nouveau",
	"prompt": "art nouveau style ,  elegant, decorative, curvilinear forms, nature-inspired, ornate, detailed"
}, {
	"name": "artstyle-constructivist",
	"prompt": "constructivist style ,  geometric shapes, bold colors, dynamic composition, propaganda art style"
}, {
	"name": "artstyle-cubist",
	"prompt": "cubist artwork ,  geometric shapes, abstract, innovative, revolutionary"
}, {
	"name": "artstyle-expressionist",
	"prompt": "expressionist ,  raw, emotional, dynamic, distortion for emotional effect, vibrant, use of unusual colors, detailed"
}, {
	"name": "artstyle-graffiti",
	"prompt": "graffiti style ,  street art, vibrant, urban, detailed, tag, mural"
}, {
	"name": "artstyle-hyperrealism",
	"prompt": "hyperrealistic art ,  extremely high-resolution details, photographic, realism pushed to extreme, fine texture, incredibly lifelike"
}, {
	"name": "artstyle-impressionist",
	"prompt": "impressionist painting ,  loose brushwork, vibrant color, light and shadow play, captures feeling over form"
}, {
	"name": "artstyle-pointillism",
	"prompt": "pointillism style ,  composed entirely of small, distinct dots of color, vibrant, highly detailed"
}, {
	"name": "artstyle-pop art",
	"prompt": "pop Art style ,  bright colors, bold outlines, popular culture themes, ironic or kitsch"
}, {
	"name": "artstyle-psychedelic",
	"prompt": "psychedelic style ,  vibrant colors, swirling patterns, abstract forms, surreal, trippy"
}, {
	"name": "artstyle-renaissance",
	"prompt": "renaissance style ,  realistic, perspective, light and shadow, religious or mythological themes, highly detailed"
}, {
	"name": "artstyle-steampunk",
	"prompt": "steampunk style ,  antique, mechanical, brass and copper tones, gears, intricate, detailed"
}, {
	"name": "artstyle-surrealist",
	"prompt": "surrealist art ,  dreamlike, mysterious, provocative, symbolic, intricate, detailed"
}, {
	"name": "artstyle-typography",
	"prompt": "typographic art ,  stylized, intricate, detailed, artistic, text-based"
}, {
	"name": "artstyle-watercolor",
	"prompt": "watercolor painting ,  vibrant, beautiful, painterly, detailed, textural, artistic"
}, {
	"name": "futuristic-biomechanical",
	"prompt": "biomechanical style ,  blend of organic and mechanical elements, futuristic, cybernetic, detailed, intricate"
}, {
	"name": "futuristic-biomechanical cyberpunk",
	"prompt": "biomechanical cyberpunk ,  cybernetics, human-machine fusion, dystopian, organic meets artificial, dark, intricate, highly detailed"
}, {
	"name": "futuristic-cybernetic",
	"prompt": "cybernetic style ,  futuristic, technological, cybernetic enhancements, robotics, artificial intelligence themes"
}, {
	"name": "futuristic-cybernetic robot",
	"prompt": "cybernetic robot ,  android, AI, machine, metal, wires, tech, futuristic, highly detailed"
}, {
	"name": "futuristic-cyberpunk cityscape",
	"prompt": "cyberpunk cityscape ,  neon lights, dark alleys, skyscrapers, futuristic, vibrant colors, high contrast, highly detailed"
}, {
	"name": "futuristic-futuristic",
	"prompt": "futuristic style ,  sleek, modern, ultramodern, high tech, detailed"
}, {
	"name": "futuristic-retro cyberpunk",
	"prompt": "retro cyberpunk ,  80's inspired, synthwave, neon, vibrant, detailed, retro futurism"
}, {
	"name": "futuristic-retro futurism",
	"prompt": "retro-futuristic ,  vintage sci-fi, 50s and 60s style, atomic age, vibrant, highly detailed"
}, {
	"name": "futuristic-sci-fi",
	"prompt": "sci-fi style ,  futuristic, technological, alien worlds, space themes, advanced civilizations"
}, {
	"name": "futuristic-vaporwave",
	"prompt": "vaporwave style ,  retro aesthetic, cyberpunk, vibrant, neon colors, vintage 80s and 90s style, highly detailed"
}, {
	"name": "game-bubble bobble",
	"prompt": "Bubble Bobble style ,  8-bit, cute, pixelated, fantasy, vibrant, reminiscent of Bubble Bobble game"
}, {
	"name": "game-cyberpunk game",
	"prompt": "cyberpunk game style ,  neon, dystopian, futuristic, digital, vibrant, detailed, high contrast, reminiscent of cyberpunk genre video games"
}, {
	"name": "game-fighting game",
	"prompt": "fighting game style ,  dynamic, vibrant, action-packed, detailed character design, reminiscent of fighting video games"
}, {
	"name": "game-gta",
	"prompt": "GTA-style artwork ,  satirical, exaggerated, pop art style, vibrant colors, iconic characters, action-packed"
}, {
	"name": "game-mario",
	"prompt": "Super Mario style ,  vibrant, cute, cartoony, fantasy, playful, reminiscent of Super Mario series"
}, {
	"name": "game-minecraft",
	"prompt": "Minecraft style ,  blocky, pixelated, vibrant colors, recognizable characters and objects, game assets"
}, {
	"name": "game-pokemon",
	"prompt": "Pokémon style ,  vibrant, cute, anime, fantasy, reminiscent of Pokémon series"
}, {
	"name": "game-retro arcade",
	"prompt": "retro arcade style ,  8-bit, pixelated, vibrant, classic video game, old school gaming, reminiscent of 80s and 90s arcade games"
}, {
	"name": "game-retro game",
	"prompt": "retro game art ,  16-bit, vibrant colors, pixelated, nostalgic, charming, fun"
}, {
	"name": "game-rpg fantasy game",
	"prompt": "role-playing game (RPG) style fantasy ,  detailed, vibrant, immersive, reminiscent of high fantasy RPG games"
}, {
	"name": "game-strategy game",
	"prompt": "strategy game style ,  overhead view, detailed map, units, reminiscent of real-time strategy video games"
}, {
	"name": "game-streetfighter",
	"prompt": "Street Fighter style ,  vibrant, dynamic, arcade, 2D fighting game, highly detailed, reminiscent of Street Fighter series"
}, {
	"name": "game-zelda",
	"prompt": "Legend of Zelda style ,  vibrant, fantasy, detailed, epic, heroic, reminiscent of The Legend of Zelda series"
}, {
	"name": "misc-architectural",
	"prompt": "architectural style ,  clean lines, geometric shapes, minimalist, modern, architectural drawing, highly detailed"
}, {
	"name": "misc-disco",
	"prompt": "disco-themed ,  vibrant, groovy, retro 70s style, shiny disco balls, neon lights, dance floor, highly detailed"
}, {
	"name": "misc-dreamscape",
	"prompt": "dreamscape ,  surreal, ethereal, dreamy, mysterious, fantasy, highly detailed"
}, {
	"name": "misc-dystopian",
	"prompt": "dystopian style ,  bleak, post-apocalyptic, somber, dramatic, highly detailed"
}, {
	"name": "misc-fairy tale",
	"prompt": "fairy tale ,  magical, fantastical, enchanting, storybook style, highly detailed"
}, {
	"name": "misc-gothic",
	"prompt": "gothic style ,  dark, mysterious, haunting, dramatic, ornate, detailed"
}, {
	"name": "misc-grunge",
	"prompt": "grunge style ,  textured, distressed, vintage, edgy, punk rock vibe, dirty, noisy"
}, {
	"name": "misc-horror",
	"prompt": "horror-themed ,  eerie, unsettling, dark, spooky, suspenseful, grim, highly detailed"
}, {
	"name": "misc-kawaii",
	"prompt": "kawaii style ,  cute, adorable, brightly colored, cheerful, anime influence, highly detailed"
}, {
	"name": "misc-lovecraftian",
	"prompt": "lovecraftian horror ,  eldritch, cosmic horror, unknown, mysterious, surreal, highly detailed"
}, {
	"name": "misc-macabre",
	"prompt": "macabre style ,  dark, gothic, grim, haunting, highly detailed"
}, {
	"name": "misc-manga",
	"prompt": "manga style ,  vibrant, high-energy, detailed, iconic, Japanese comic style"
}, {
	"name": "misc-metropolis",
	"prompt": "metropolis-themed ,  urban, cityscape, skyscrapers, modern, futuristic, highly detailed"
}, {
	"name": "misc-minimalist",
	"prompt": "minimalist style ,  simple, clean, uncluttered, modern, elegant"
}, {
	"name": "misc-monochrome",
	"prompt": "monochrome ,  black and white, contrast, tone, texture, detailed"
}, {
	"name": "misc-nautical",
	"prompt": "nautical-themed ,  sea, ocean, ships, maritime, beach, marine life, highly detailed"
}, {
	"name": "misc-space",
	"prompt": "space-themed ,  cosmic, celestial, stars, galaxies, nebulas, planets, science fiction, highly detailed"
}, {
	"name": "misc-stained glass",
	"prompt": "stained glass style ,  vibrant, beautiful, translucent, intricate, detailed"
}, {
	"name": "misc-techwear fashion",
	"prompt": "techwear fashion ,  futuristic, cyberpunk, urban, tactical, sleek, dark, highly detailed"
}, {
	"name": "misc-tribal",
	"prompt": "tribal style ,  indigenous, ethnic, traditional patterns, bold, natural colors, highly detailed"
}, {
	"name": "misc-zentangle",
	"prompt": "zentangle ,  intricate, abstract, monochrome, patterns, meditative, highly detailed"
}, {
	"name": "papercraft-collage",
	"prompt": "collage style ,  mixed media, layered, textural, detailed, artistic"
}, {
	"name": "papercraft-flat papercut",
	"prompt": "flat papercut style ,  silhouette, clean cuts, paper, sharp edges, minimalist, color block"
}, {
	"name": "papercraft-kirigami",
	"prompt": "kirigami representation ,  3D, paper folding, paper cutting, Japanese, intricate, symmetrical, precision, clean lines"
}, {
	"name": "papercraft-paper mache",
	"prompt": "paper mache representation ,  3D, sculptural, textured, handmade, vibrant, fun"
}, {
	"name": "papercraft-paper quilling",
	"prompt": "paper quilling art ,  intricate, delicate, curling, rolling, shaping, coiling, loops, 3D, dimensional, ornamental"
}, {
	"name": "papercraft-papercut collage",
	"prompt": "papercut collage ,  mixed media, textured paper, overlapping, asymmetrical, abstract, vibrant"
}, {
	"name": "papercraft-papercut shadow box",
	"prompt": "3D papercut shadow box ,  layered, dimensional, depth, silhouette, shadow, papercut, handmade, high contrast"
}, {
	"name": "papercraft-stacked papercut",
	"prompt": "stacked papercut art ,  3D, layered, dimensional, depth, precision cut, stacked layers, papercut, high contrast"
}, {
	"name": "papercraft-thick layered papercut",
	"prompt": "thick layered papercut art ,  deep 3D, volumetric, dimensional, depth, thick paper, high stack, heavy texture, tangible layers"
}, {
	"name": "photo-alien",
	"prompt": "alien-themed ,  extraterrestrial, cosmic, otherworldly, mysterious, sci-fi, highly detailed"
}, {
	"name": "photo-film noir",
	"prompt": "film noir style ,  monochrome, high contrast, dramatic shadows, 1940s style, mysterious, cinematic"
}, {
	"name": "photo-glamour",
	"prompt": "glamorous photo ,  high fashion, luxurious, extravagant, stylish, sensual, opulent, elegance, stunning beauty, professional, high contrast, detailed"
}, {
	"name": "photo-hdr",
	"prompt": "HDR photo ,  High dynamic range, vivid, rich details, clear shadows and highlights, realistic, intense, enhanced contrast, highly detailed"
}, {
	"name": "photo-iphone photographic",
	"prompt": "iphone photo ,  large depth of field, deep depth of field, highly detailed"
}, {
	"name": "photo-long exposure",
	"prompt": "long exposure photo ,  Blurred motion, streaks of light, surreal, dreamy, ghosting effect, highly detailed"
}, {
	"name": "photo-neon noir",
	"prompt": "neon noir ,  cyberpunk, dark, rainy streets, neon signs, high contrast, low light, vibrant, highly detailed"
}, {
	"name": "photo-silhouette",
	"prompt": "silhouette style ,  high contrast, minimalistic, black and white, stark, dramatic"
}, {
	"name": "photo-tilt-shift",
	"prompt": "tilt-shift photo ,  selective focus, miniature effect, blurred background, highly detailed, vibrant, perspective control"
}]

接口简介

API大致将其分为两类, 第一类用来调用 AIGC 的能力, 比如生成图像之类, 第二类为任务查询相关。

能力接口

文生图 | text-to-image

基础信息:

EndPoint: /v1/generation/text-to-image
Method: Post
DataType: json

请求参数:

NameTypeDescription
promptstring描述词, 默认为空字符串
negative_promptstring描述词, 反向描述词
style_selectionsList[str]风格列表, 需要是受支持的风格, 可以通过 样式接口 获取所有支持的样式
performance_selectionEnum性能选择, Speed, Quality, Extreme Speed 中的一个, 默认 Speed
aspect_ratios_selectionstr分辨率, 默认 '1152*896'
image_numberint生成图片数量, 默认 1 , 最大32, 注: 非并行接口
image_seedint图片种子, 默认 -1, 即随机生成
sharpnessfloat锐度, 默认 2.0 , 0-30
guidance_scalefloat引导比例, 默认 4.0 , 1-30
base_model_namestr基础模型, 默认 juggernautXL_version6Rundiffusion.safetensors
refiner_model_namestr优化模型, 默认 None
refiner_switchfloat优化模型切换时机, 默认 0.5
lorasList[Lora]lora 模型列表, 包含配置, lora 结构: Lora
advanced_paramsAdvancedParams高级参数, AdvancedParams 结构 AdvancedParams
require_base64bool是否返回base64编码, 默认 False
async_processbool是否异步处理, 默认 False
webhook_urlstr异步处理完成后, 触发的 webhook 地址, 参考webhook

响应参数 | response:

该接口返回通用响应结构 async_process: True

NameTypeDescription
job_idint任务ID
job_typestr任务类型
job_stagestr任务阶段
job_progressfloat任务进度
job_statusstr任务状态
job_step_previewstr任务预览
job_resultstr任务结果

async_process: False

NameTypeDescription
base64str图片base64编码, 根据 require_base64 参数决定是否为 null
urlstr图片url
seedint图片种子
finish_reasonstr任务结束原因

请求示例:

host = "http://127.0.0.1:8888"

def text2img(params: dict) -> dict:
    """
    文生图
    """
    result = requests.post(url=f"{host}/v1/generation/text-to-image",
                           data=json.dumps(params),
                           headers={"Content-Type": "application/json"})
    return result.json()

result =text2img({
    "prompt": "1girl sitting on the ground",
    "async_process": True})
print(result)

局部重绘 | image-inpaint-outpaint

基础信息:

EndPoint_V1: /v1/generation/image-inpaint-outpaint
EndPoint_V2: /v2/generation/image-inpaint-outpaint
Method: Post
DataType: form|json

请求参数 | Request

NameTypeDescription
input_imagestr输入图像, base64 格式, 或者一个URL
input_maskstr输入遮罩, base64 格式, 或者一个URL
inpaint_additional_promptstr附加描述词
outpaint_selectionsList[OutpaintExpansion]OutpaintExpansion 是一个枚举类型, 值包括 "Left", "Right", "Top", "Bottom"
outpaint_distance_leftint图像扩展距离, 默认 0
outpaint_distance_rightint图像扩展距离, 默认 0
outpaint_distance_topint图像扩展距离, 默认 0
outpaint_distance_bottomint图像扩展距离, 默认 0

请求示例:

# 局部重绘 v2 接口示例
host = "http://127.0.0.1:8888"
image = open("./examples/imgs/bear.jpg", "rb").read()

def inpaint_outpaint(params: dict) -> dict:
    """
    局部重绘 v1 接口示例
    """
    response = requests.post(url=f"{host}/v2/generation/image-inpaint-outpaint",
                        data=json.dumps(params),
                        headers={"Content-Type": "application/json"})
    return response.json()

# 图像扩展示例
result = inpaint_outpaint(params={
                            "input_image": base64.b64encode(image).decode('utf-8'),
                            "input_mask": None,
                            "outpaint_selections": ["Left", "Right"],
                            "async_process": True})
print(json.dumps(result, indent=4, ensure_ascii=False))

# 局部重绘示例
source = open("./examples/imgs/s.jpg", "rb").read()
mask = open("./examples/imgs/m.png", "rb").read()
result = inpaint_outpaint(params={
                            "prompt": "a cat",
                            "input_image": base64.b64encode(source).decode('utf-8'),
                            "input_mask": base64.b64encode(mask).decode('utf-8'),
                            "async_process": True})
print(json.dumps(result, indent=4, ensure_ascii=False))

图生图 | image-prompt

该接口更新自 v0.3.27 后有重大更新。从继承自 文生图 更改为继承自 局部重绘

该版本之后可以通过该接口实现 inpaint_outpaint 以及 image-prompt 接口的功能

多功能接口,并非可以同时实现 inpaint_outpaint 以及 image-prompt 接口的功能

基础信息:

EndPoint_V1: /v1/generation/image-prompt
EndPoint_V2: /v2/generation/image-prompt
Method: Post
DataType: form|json

请求参数

NameTypeDescription
input_imagestrbase64 图像, 或者一个URL, 用于局部重绘
input_maskstrbase64 图像遮罩, 或者一个URL, 用于局部重绘
inpaint_additional_promptstrinpaint 附加提示词
outpaint_selectionsList[OutpaintExpansion]图像扩展选项, 逗号分割的 "Left", "Right", "Top", "Bottom"
outpaint_distance_leftint图像扩展距离, 默认 0
outpaint_distance_rightint图像扩展距离, 默认 0
outpaint_distance_topint图像扩展距离, 默认 0
outpaint_distance_bottomint图像扩展距离, 默认 0
image_promptsList[ImagePrompt]图像列表, 包含配置, ImagePrompt 结构如下:

ImagePrompt

NameTypeDescription
cn_imgstr输入图像, base64 编码, 或者一个URL
cn_stopfloat停止位置, 范围 0-1, 默认 0.5
cn_weightfloat权重, 范围 0-2, 默认 1.0
cn_typeControlNetType控制网络类型, 是一个枚举类型, 包括: "ImagePrompt", "FaceSwap", "PyraCanny", "CPDS"

响应参数:

该接口返回通用响应结构, 参考响应参数

请求示例:

# image_prompt v2 接口示例
host = "http://127.0.0.1:8888"
image = open("./examples/imgs/bear.jpg", "rb").read()
source = open("./examples/imgs/s.jpg", "rb").read()
mask = open("./examples/imgs/m.png", "rb").read()

def image_prompt(params: dict) -> dict:
    """
    image prompt
    """
    response = requests.post(url=f"{host}/v2/generation/image-prompt",
                             data=json.dumps(params),
                             headers={"Content-Type": "application/json"})
    return response.json()

# 图像扩展
params = {
    "input_image": base64.b64encode(image).decode('utf-8'),
    "outpaint_selections": ["Left", "Right"],
    "image_prompts": [] # 必传参数,可以为空列表
}
result = image_prompt(params)
print(json.dumps(result, indent=4, ensure_ascii=False))

# 局部重绘

params = {
    "prompt": "1girl sitting on the chair",
    "input_image": base64.b64encode(source).decode('utf-8'),
    "input_mask": base64.b64encode(mask).decode('utf-8'),
    "image_prompts": [], # 必传参数,可以为空列表
    "async_process": True
}
result = image_prompt(params)
print(json.dumps(result, indent=4, ensure_ascii=False))

# image prompt

params = {
    "prompt": "1girl sitting on the chair",
    "image_prompts": [
        {
            "cn_img": base64.b64encode(source).decode('utf-8'),
            "cn_stop": 0.6,
            "cn_weight": 0.6,
            "cn_type": "ImagePrompt"
        },{
            "cn_img": base64.b64encode(image).decode('utf-8'),
            "cn_stop": 0.6,
            "cn_weight": 0.6,
            "cn_type": "ImagePrompt"
        }]
    }
result = image_prompt(params)
print(json.dumps(result, indent=4, ensure_ascii=False))

图像反推 | describe

基础信息:

EndPoint: /v1/tools/describe-image
Method: Post
DataType: form

请求参数

NameTypeDescription
typeEnum反推类型, "Photo", "Anime" 中的一个

请求示例:

def describe_image(image: bytes,
                   params: dict = {"type": "Photo"}) -> dict:
    """
    describe-image
    """
    response = requests.post(url="http://127.0.0.1:8888/v1/tools/describe-image",
                        params=params,
                        files={
                            "image": image
                        },
                        timeout=30)
    return response.json()

响应示例:

{
  "describe": "a young woman posing with her hands behind her head"
}

列出样式 | styles

基础信息:

EndPoint: /v1/engines/styles
Method: Get

请求示例:

def styles() -> dict:
    """
    styles
    """
    response = requests.get(url="http://127.0.0.1:8888/v1/engines/styles",
                        timeout=30)
    return response.json()

响应示例:

[
  "Fooocus V2",
  "Fooocus Enhance",
  ...
  "Watercolor 2",
  "Whimsical And Playful"
]

任务相关接口

任务队列 | job-queue

基础信息:

EndPoint: /v1/engines/job-queue
Method: Get

请求示例:

def job_queue() -> dict:
    """
    job-queue
    """
    response = requests.get(url="http://127.0.0.1:8888/v1/generation/job-queue",
                        timeout=30)
    return response.json()

响应示例:

{
  "running_size": 0,
  "finished_size": 1,
  "last_job_id": "cac3914a-926d-4b6f-a46a-83794a0ce1d4"
}

查询任务 | query-job

基础信息:

EndPoint: /v1/generation/query-job
Method: Get

请求示例:

def taskResult(task_id: str) -> dict:
    # 获取任务状态
    task_status = requests.get(url="http://127.0.0.1:8888/v1/generation/query-job",
                               params={"job_id": task_id,
                                       "require_step_preview": False},
                               timeout=30)

    return task_status.json()

响应示例:

{
  "job_id": "cac3914a-926d-4b6f-a46a-83794a0ce1d4",
  "job_type": "Text to Image",
  "job_stage": "SUCCESS",
  "job_progress": 100,
  "job_status": "Finished",
  "job_step_preview": null,
  "job_result": [
    {
      "base64": null,
      "url": "http://127.0.0.1:8888/files/2023-11-27/b928e50e-3c09-4187-a3f9-1c12280bfd95.png",
      "seed": 8228839561385006000,
      "finish_reason": "SUCCESS"
    }
  ]
}

查询任务历史 | job-history

基础信息:

EndPoint: /v1/generation/job-history
Method: get

请求示例:

def job-history() -> dict:
    """
    job-history
    """
    response = requests.get(url="http://127.0.0.1:8888/v1/generation/job-history",
                        timeout=30)
    return response.json()

响应示例:

{
  "queue": [],
  "history": [
    "job_id": "cac3914a-926d-4b6f-a46a-83794a0ce1d4",
    "is_finished": True
  ]
}

停止任务 | stop

基础信息:

EndPoint: /v1/generation/stop
Method: post

请求示例:

def stop() -> dict:
    """
    stop
    """
    response = requests.post(url="http://127.0.0.1:8888/v1/generation/stop",
                        timeout=30)
    return response.json()

响应示例:

{
  "msg": "success"
}

ping

基础信息:

EndPoint: /ping
Method: get

pong

公共请求体(高级参数)

lora (暂时不需要)

NameTypeDescription
model_namestr模型名称
weightfloat权重, 默认 0.5

响应参数 | response

成功响应:

async_process: True

NameTypeDescription
job_idint任务ID
job_typestr任务类型
job_stagestr任务阶段
job_progressfloat任务进度
job_statusstr任务状态
job_step_previewstr任务预览
job_resultstr任务结果

async_process: False

NameTypeDescription
base64str图片base64编码, 根据 require_base64 参数决定是否为 null
urlstr图片url
seedint图片种子
finish_reasonstr任务结束原因