Skip to main content
POST
/
v1
/
x
/
translate
/
detect
Detect
curl --request POST \
  --url https://api.agntdata.dev/v1/x/translate/detect \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "text": "A panel on AI at the Paris Peace Forum today.  Starting at 42'00, I plot the future of AI: all of our interactions with the digital world will be mediated by AI assistants that will eventually become smarter than us. Because they will become a common infrastructure containing all human culture and knowledge, they will need to be open/open source, just like the software infrastructure of the Internet is open/open source, and their training will need to be crowd-sourced, just like Wikipedia (see 46'00 in) This is one reason Meta made Llama-2 open/open source/free.  In response to my tirade, Microsoft President Brad Smith had a very curious response (48'00). He said \"Meta is owned by shareholders. OpenAI is owned by a nonprofit . Which would you have more confidence in? Getting your technology from a non profit? or a for-profit company that is entirely controlled by one human being?\" This totally misrepresents what open access/open source means.  I thought Microsoft had moved beyond its anti open source stance of the 1990s.  Doesn't Azure run on Linux these days?"
}
EOF
{
  "lang": "eng",
  "confidence": 1,
  "script": "Latin",
  "is_reliable": true
}

Authorizations

Authorization
string
header
required

Bearer token. Pass your agntdata API key as: Authorization: Bearer agnt_live_...

Body

application/json
text
string

Response

200 - application/json

Response

lang
string
confidence
integer
script
string
is_reliable
boolean