Parameters

  • prompt

    • Type: string
    • Required: true
  • model

    • Type: string
    • Required: true
    • Options: normal, canny, hough, hed, depth2img, pose, seg
    • Default: normal
  • image

    • Type: string
    • Required: true
  • stream

    • Type: boolean
    • Required: false

Response

Response not defined yet

Examples

Controlnet example
import axios from "axios";
(async () => {
  let response = await axios({
    method: "post",
    url: 'https://api.turing.sh/image/controlnet',
    headers: {
      "Content-Type": "application/json",
      Authorization: "Bearer YOUR_API_KEY",
      "x-captcha-token": "Captcha key"
    },
    data: {
"prompt": "string",
"model": "normal",
"image": "string"
},
  })
})();