---
title: Controlnet
---

# Controlnet
POST *https://api.turing.sh/image/controlnet*

## 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

<Error>Response not defined yet</Error>


## Examples

<CodeGroup title="Controlnet example">
  ```typescript
  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"
},
    })
  })();
  ```
  ```python
  import requests
  import json
  response = requests.post(
    "https://api.turing.sh/image/controlnet",
    headers={
      "Content-Type": "application/json",
      "Authorization": "Bearer YOUR_API_KEY",
      "x-captcha-token": "Captcha key"
    },
    data=json.dumps({
  "prompt": "string",
  "model": "normal",
  "image": "string"
}),
  )
  ```
</CodeGroup>