The official library to interact with TuringAPI using javascript or typescript.
Check our docs at docs.turing.sh
Go to our discord server, then go to the applications channel where you can apply for an API key. Please take the applications seriously, we will not accept applications that are not serious.
npm install turing.sh
import { Text, Image, Audio } from "turing.sh";
const text = new Text({
apiKey: "YOUR_API_KEY",
captchaKey: "YOUR_CAPTCHA_KEY",
});
const gptAnswer = await text.gpt({
messages: [
{
role: "user",
content: "Hello, how are you?",
},
],
});