单个作画结果详情查询
GET
/ai/info单个作画结果详情查询
请求参数
示例代码
返回响应
OK
返回数据(object)
模型分类(1-通用模型,3-漫画模型,4-风格模型,7-MJ模型)
状态(0:已提交、1:排队中、2:生成中、3:生成失败、4:生成成功、-1:已撤销、11:已提交、12:作画失败)
图片url,目前是七牛云的
超过20M的图片会有一个压缩版本
底图相似度(废弃,建议使用创意度,平台会优先使用创意度。对老用户兼容。)
开始生成的时间戳(仍在排队返回0)
完成时间戳(未完成为0)
图片是否涉黄(0或1,如涉黄,picture_url返回的是默认图片。但是图片状态仍为生成成功)
作画结果图的审核结果(v1.1.9新增字段,2023年2月23号之后的作画结果会有值。)
旧:{"vendor": 1, "result": "对应厂商的审核结果json"}
1对应结果,参考
2对应结果,参考
结果中需关注字段解释: check_fail:检测是否成功,正常都会成功,安全起见——如果失败建议也拦截 total_suggestion:总体建议,级别有——PASS(通过)->REVIEW(需要人工审核)->BLOCK(不通过)。scan_scene_d_t_o_s中的suggestion都是PASS总体才会是PASS,只要有一个是BLOCK就会是BLOCK,没有BLOCK存在REVIEW就会是REVIEW scan_scene_d_t_o_s:各场景检测结果列表。 suggestion:枚举参考外层的total_suggestion lable:场景下的标签,有label_desc进行描述。目前porn返回suggestion是review的话会比较性感低俗可以考虑拦截 scene:场景,TERRORISM——暴恐涉政违禁、PORN——鉴黄
显卡技术信息(当生成状态不为成功时为 null )(object)
作画失败原因(object)
最终提交给模型的描述词(v1.1.9新增字段,全部数据均有值。)
作品所使用的融合模型
预处理图(预处理方式为 null 时,无预处理图)
预处理方式,用来对预处理图片进行处理
- INVERT_SCRIBBLE(反色)
- FAKE_SCRIBBLE(假涂鸦)
- SCRIBBLE(预处理)
- NONE(无预处理)
sampling steps,步数对出图耗时影响较大,暂时仅对部分客户支持。
CFG scale, 提示词相关性。非负,表示AI对描述参数的倾向程度
采样模式,根据预设资源填充
消耗积分数,包括生成、加速、精绘等
积分消耗提示词
- 积分已扣除
- 积分已退还
- 积分不足, 部分扣款失败
- 积分扣除中,请稍后查询
- 不需要积分
multiDiffusion参数(object)
透明图(object)
所支持的模式,可通过/ai/default_resource
接口查询具体model所支持的模式
4k参数(object)
{"code":"200","message":"success","data":{"prompt":"The empty mountain is bathed in new rain, and the arrival of night makes people feel that it is early autumn.","uc_prompt":"yz0eps","type":1,"model":1,"width":2048,"height":2048,"status":4,"picture_url":"https://cdn.wujiebantu.com/ai/081261CBAC6314F4758EEC5FD913CA61-01.png","mini_picture_url":"www.isidro-stehr.com","init_image_url":"www.isidro-stehr.com","init_image_similarity":50,"creativity_degree":521,"artist":"鸟山明","style":"赛博朋克","image_type":"超现实照片","element_magic":["星空法"],"generate_time":1667800436,"start_gen_time":1667800439,"complete_time":1667800451,"involve_yellow":0,"audit_info":"{"check_fail":false,"hit":false,"data_id":"245959","total_suggestion":"PASS","scan_scene_d_t_o_s":[{"rate":0.9944,"suggestion":"pass","label":"politics","label_desc":"涉政","scene":"TERRORISM"},{"rate":1.0,"suggestion":"pass","label":"terrorism","label_desc":"暴恐","scene":"TERRORISM"},{"rate":0.9993,"suggestion":"pass","label":"porn","label_desc":"色情","scene":"PORN"},{"rate":1.0,"suggestion":"pass","label":"prohibition","label_desc":"违禁","scene":"TERRORISM"},{"rate":0.9986,"suggestion":"pass","label":"sexy","label_desc":"性感","scene":"PORN"}],"url":"https://cdn.wujiebantu.com/ai/810F1750EFF2EC416ED6682DFFCFBF2C-01.jpg-v800"}","technology_info":{"machine_no":"IiFJclpG73","gpu_type":"NVIDIA Tesla V100-16GB","power_consumption":9.8E-4},"fail_message":{"fail_code":0,"fail_message":"success"},"model_prompt":"The empty mountain is bathed in new rain, and the arrival of night makes people feel that it is early autumn.; sketch","character_options":["77qg0a"],"model_fusion":[{"name":"晨辉","weight":0.6}],"style_model":"肤若凝脂","pretreatment_image":"https://cdn.wujiebantu.com/ai/B7A8199D69303BEAF18BB440C4AC63FA-01.png","pretreatment_method":"NONE","steps":77,"cfg":16.20,"sampler_index":1,"seed":"nnqty2","integral_cost":4,"integral_cost_message":"积分已扣除","multi_diffusion":{"tiled_diffusion":{"enabled":true,"method":"MultiDiffusion","overwrite_size":false,"keep_input_size":false,"image_width":1024,"image_height":1024,"tile_width":96,"tile_height":96,"overlap":48,"tile_batch_size":4,"upscaler_name":"None","scale_factor":2.0,"noise_inverse":false,"noise_inverse_steps":10,"noise_inverse_retouch":1.0,"noise_inverse_renoise_strength":1.0,"noise_inverse_renoise_kernel":64,"control_tensor_cpu":true,"enable_bbox_control":false,"draw_background":false,"causal_layers":false,"bbox_control_states":[{"enabled":true,"x":0.4,"y":0.4,"w":0.2,"h":0.2,"prompt":"zqkgbp","neg_prompt":"tznmcl","blend_mode":"Background","feather_ratio":0.2,"seed":-1}]},"tiled_vae":{"enabled":true,"encoder_tile_size":3072,"decoder_tile_size":192,"vae_to_gpu":true,"fast_decoder":true,"fast_encoder":true,"color_fix":true}},"hr_second_pass_strength":56.62,"layer_diffusion":{"method":2,"weight":1.0,"ending_step":1.0},"pattern":"CANNY","cut_diffusion":{"cutdiff_proportion":0.5,"cfg_scale1":7.0,"cfg_scale2":7.0}}}