Detect
curl --request POST \
--url https://api.agntdata.dev/v1/data/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?"
}
EOFimport requests
url = "https://api.agntdata.dev/v1/data/x/translate/detect"
payload = { "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?" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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?'
})
};
fetch('https://api.agntdata.dev/v1/data/x/translate/detect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.agntdata.dev/v1/data/x/translate/detect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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?'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.agntdata.dev/v1/data/x/translate/detect"
payload := strings.NewReader("{\n \"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?\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.agntdata.dev/v1/data/x/translate/detect")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"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?\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agntdata.dev/v1/data/x/translate/detect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"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?\"\n}"
response = http.request(request)
puts response.read_body{
"lang": "eng",
"confidence": 1,
"script": "Latin",
"is_reliable": true
}Translation
Detect
This endpoint will return the Language of the Text
POST
/
v1
/
data
/
x
/
translate
/
detect
Detect
curl --request POST \
--url https://api.agntdata.dev/v1/data/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?"
}
EOFimport requests
url = "https://api.agntdata.dev/v1/data/x/translate/detect"
payload = { "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?" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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?'
})
};
fetch('https://api.agntdata.dev/v1/data/x/translate/detect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.agntdata.dev/v1/data/x/translate/detect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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?'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.agntdata.dev/v1/data/x/translate/detect"
payload := strings.NewReader("{\n \"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?\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.agntdata.dev/v1/data/x/translate/detect")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"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?\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agntdata.dev/v1/data/x/translate/detect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"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?\"\n}"
response = http.request(request)
puts response.read_body{
"lang": "eng",
"confidence": 1,
"script": "Latin",
"is_reliable": true
}⌘I