cURL
curl --request POST \ --url https://api.agntdata.dev/v1/x/translate \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "dest": "en", "text": "Moi je vous dis que la table ronde du #PPF @ParisPeaceForum βNavigating the #AI revolutionβ oΓΉ il y avait notamment @ylecun (Meta) @BradSmi (Microsoft) et @ianbremmer est assurΓ©ment Γ réécouter en replay. (Oui, cela a un peu clashΓ©)." } '
{ "destination_language": "en", "original_language": "fr", "original_text": "Moi je vous dis que la table ronde du #PPF @ParisPeaceForum βNavigating the #AI revolutionβ oΓΉ il y avait notamment @ylecun (Meta) @BradSmi (Microsoft) et @ianbremmer est assurΓ©ment Γ réécouter en replay. (Oui, cela a un peu clashΓ©).", "translated_text": "I tell you that the round table of the #PPF @ParisPeaceForum βNavigating the #AI revolutionβ where there was notably @ylecun (Meta) @BradSmi (Microsoft) and @ianbremmer is certainly worth listening to on replay.(Yes, it clashed a bit)." }
Return Translated Text and the source language if it wasnβt specified
Bearer token. Pass your agntdata API key as: Authorization: Bearer agnt_live_...
200