代码生成
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/text/ai_detection
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/text/ai_detection' \
--header 'Authorization;' \
--header 'content-type: application/json' \
--data-raw '{
"response_as_dict": true,
"attributes_as_list": false,
"show_original_response": false
}'
响应示例响应示例
200 - 成功示例
{
"sapling": {
"ai_score": 0.970070276931997,
"items": [
{
"text": "The panther, also known as the black panther, is a magnificent and enigmatic creature that captivates the imagination of many.",
"prediction": "ai-generated",
"ai_score": 0.9990817176020741,
"ai_score_detail": 0.9990817176020741
},
{
"text": "It is not a distinct species itself, but rather a melanistic variant of leopards and jaguars.",
"prediction": "ai-generated",
"ai_score": 0.7623477056593153,
"ai_score_detail": 0.7623477056593153
},
{
"text": "The mesmerizing black coat of the panther is a result of a genetic mutation that increases the production of dark pigment, melanin.",
"prediction": "original",
"ai_score": 0.012890975241315883,
"ai_score_detail": 0.012890975241315883
},
{
"text": "Panthers are highly adaptable predators, found primarily in dense forests and jungles across Africa, Asia, and the Americas.",
"prediction": "ai-generated",
"ai_score": 0.9241208913655489,
"ai_score_detail": 0.9241208913655489
},
{
"text": "Their stealthy nature and exceptional agility make them formidable hunters.",
"prediction": "original",
"ai_score": 3.0645117310434955e-7,
"ai_score_detail": 3.0645117310434955e-7
},
{
"text": "They are solitary creatures, preferring to roam alone in their vast territories, which can span over a hundred square miles.",
"prediction": "ai-generated",
"ai_score": 0.98354284228347,
"ai_score_detail": 0.98354284228347
},
{
"text": "Equipped with incredible strength and sharp retractable claws, panthers are skilled climbers and swimmers.",
"prediction": "original",
"ai_score": 0.2026922923822072,
"ai_score_detail": 0.2026922923822072
},
{
"text": "Their keen senses, including sharp vision and acute hearing, aid them in locating prey, often stalking their victims from the cover of trees or thick underbrush before launching a precise and powerful attack.",
"prediction": "original",
"ai_score": 0.2140626025123451,
"ai_score_detail": 0.2140626025123451
},
{
"text": "The diet of a panther consists mainly of deer, wild boar, and smaller mammals.",
"prediction": "original",
"ai_score": 0.37921425697733424,
"ai_score_detail": 0.37921425697733424
},
{
"text": "However, they are opportunistic hunters and can also target livestock and domestic animals in areas where their habitats overlap with human settlements.",
"prediction": "ai-generated",
"ai_score": 0.5961050762132343,
"ai_score_detail": 0.5961050762132343
}
]
},
"winstonai": {
"ai_score": 0.9999,
"items": [
{
"text": "The panther, also known as the black panther, is a magnificent and enigmatic creature that captivates the imagination of many. It is not a distinct species itself, but rather a melanistic variant of leopards and jaguars. The mesmerizing black coat of the panther is a result of a genetic mutation that increases the production of dark pigment, melanin.",
"prediction": "ai-generated",
"ai_score": 0.9968,
"ai_score_detail": 0.9968
},
{
"text": "Panthers are highly adaptable predators, found primarily in dense forests and jungles across Africa, Asia, and the Americas. Their stealthy nature and exceptional agility make them formidable hunters. They are solitary creatures, preferring to roam alone in their vast territories, which can span over a hundred square miles.",
"prediction": "ai-generated",
"ai_score": 0.9997,
"ai_score_detail": 0.9997
},
{
"text": "Equipped with incredible strength and sharp retractable claws, panthers are skilled climbers and swimmers. Their keen senses, including sharp vision and acute hearing, aid them in locating prey, often stalking their victims from the cover of trees or thick underbrush before launching a precise and powerful attack. The diet of a panther consists mainly of deer, wild boar, and smaller mammals.",
"prediction": "ai-generated",
"ai_score": 0.9998,
"ai_score_detail": 0.9998
},
{
"text": "However, they are opportunistic hunters and can also target livestock and domestic animals in areas where their habitats overlap with human settlements. Unfortunately, this sometimes leads to conflicts with humans, resulting in the panther being perceived as a threat.",
"prediction": "ai-generated",
"ai_score": 0.9994,
"ai_score_detail": 0.9994
},
{
"text": "Despite their association with darkness and mystery, panthers play a vital role in maintaining the balance of ecosystems. As apex predators, they help control populations of herbivores, preventing overgrazing and maintaining healthy prey dynamics. Conservation efforts are crucial to the survival of panther populations worldwide.",
"prediction": "ai-generated",
"ai_score": 0.9999,
"ai_score_detail": 0.9999
},
{
"text": "Habitat loss, poaching, and illegal wildlife trade pose significant threats to their existence. Various organizations and governments are working tirelessly to protect these magnificent creatures through initiatives such as establishing protected areas, promoting sustainable land use practices, and raising awareness about their importance in the natural world.",
"prediction": "ai-generated",
"ai_score": 0.9999,
"ai_score_detail": 0.9999
}
]
},
"originalityai": {
"ai_score": 1,
"items": [
{
"text": "The panther, also known as the black panther, is a magnificent and enigmatic creature that captivates the imagination of many. It is not a distinct species itself, but rather a melanistic variant of leopards and jaguars. The mesmerizing black coat of the panther is a result of a genetic mutation that increases the production of dark pigment, melanin. Panthers are highly adaptable predators, found primarily in dense forests and jungles across Africa, Asia, and the Americas. Their stealthy nature and exceptional agility make them formidable hunters. They are solitary creatures, preferring to roam alone in their vast territories, which can span over a hundred square miles. Equipped with incredible strength and sharp retractable claws, panthers are skilled climbers and swimmers. Their keen senses, including sharp vision and acute hearing, aid them in locating prey, often stalking their victims from the cover of trees or thick underbrush before launching a precise and powerful attack. The diet of a panther consists mainly of deer, wild boar, and smaller mammals. However, they are opportunistic hunters and can also target livestock and domestic animals in areas where their habitats overlap with human settlements. Unfortunately, this sometimes leads to conflicts with humans, resulting in the panther being perceived as a threat. Despite their association with darkness and mystery, panthers play a vital role in maintaining the balance of ecosystems. As apex predators, they help control populations of herbivores, preventing overgrazing and maintaining healthy prey dynamics. Conservation efforts are crucial to the survival of panther populations worldwide. Habitat loss, poaching, and illegal wildlife trade pose significant threats to their existence. Various organizations and governments are working tirelessly to protect these magnificent creatures through initiatives such as establishing protected areas, promoting sustainable land use practices, and raising awareness about their importance in the natural world.",
"prediction": "ai-generated",
"ai_score": 1,
"ai_score_detail": 1
}
]
}
}
请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Authorization
string
必需
默认值:
Bearer <your_key>
Body 参数application/json
返回响应
修改于 2024-04-11 06:04:45