发起咒语解析
POST
/ai/spell_analysis/create将图片的信息解析成语句
请求参数
Body 参数application/json
image_url
string <string>
咒语解析图片
示例值:
https://cdn.wujiebantu.com/ai/C837D53F842A48AEDFA7DA2976D834FE-01.png
notify_url
string <string>
可选
回调url
回调重试规则:
- 支持5级重试时间: 5, 10, 30, 60, 120 (单位:秒),也就是分别会在5s、10s、30s...时进行回调重试
- 当回调通知方返回"success"时,我们会认为您已经成功处理回调,并终止重试
回调报文:
{
"code": 0,
"key": "F9759686020B5F5E4AF170AE542722AA",
"success": true,
"tagList": [
"it is easy to see two faces with chinese characters in the middle, in the style of absurd doodle, sabattier filter, old memecore, white and black, alex hirsch, rounded, oshare kei ",
"two faces with signs pointing at chinese characters, in the style of simple line drawings, meme art, plush doll art, webcam, animated gifs, candid moments captured, caricature like ",
"two cartoon faces stand in front of each other and are holding a question mark, in the style of xu bing ",
"two faces holding an expression that says i am not a man?'', in the style of traditional chinese, #screenshotsaturday, animated gifs, holotone printing, webcam, elongated figures, yuan dynasty "
]
}
示例值:
www.reuben-mohr.net
spell_analysis_model
integer <int32>
可选
咒语解析器模型,1-默认,7-mj
示例值:
541
示例
{
"image_url": "https://cdn.wujiebantu.com/ai/C837D53F842A48AEDFA7DA2976D834FE-01.png",
"notify_url": "www.reuben-mohr.net",
"spell_analysis_model": 185
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSON*/*
OK
数据结构
code
string <string>
响应code
示例值:
200
message
string <string>
失败信息
示例值:
success
data
object (SpellAnalysisKeysVo_response)
可选
返回数据(object)
key
string <string>
咒语解析key
示例值:
C5B5FE8DBF3679D9049342C130341BD9
示例test data
{
"code": "200",
"message": "success",
"data": {
"key": "C5B5FE8DBF3679D9049342C130341BD9"
}
}
最后修改时间: 18 天前