Other models

POST https://api.turing.sh/text/other

Parameters

  • messages

    • Type: array
    • Required: true
  • model

    • Type: string
    • Required: true
    • Options: llama2
  • max_tokens

    • Type: number
    • Required: false
    • Default: 300
  • temperature

    • Type: number
    • Required: false
    • Default: 0.7
  • stream

    • Type: boolean
    • Required: false

Response

  • cost

    • Type: number
    • Description: Cost of the request in USD
  • result

    • Type: string
    • Description: Result of the request
  • status

    • Type: string
    • Description: Status of the request
  • done

    • Type: boolean
    • Description: Whether the request is done or not

Examples

Other models example
import axios from "axios";
(async () => {
  let response = await axios({
    method: "post",
    url: 'https://api.turing.sh/text/other',
    headers: {
      "Content-Type": "application/json",
      Authorization: "Bearer YOUR_API_KEY",
      "x-captcha-token": "Captcha key"
    },
    data: {
"messages": "array",
"model": "llama2",
"max_tokens": 300,
"temperature": 0.7
},
  })
})();