Headers

  • token string

    Default value is DuFCaWVGaYuTUrVTMigC.

Body Required

  • init_image string(binary) Required

Responses

  • 200

    Successful Response

  • 422

    Validation Error

    Hide response attribute Show response attribute object
POST /stable-diffusion/image2hed
curl \
 -X POST http://api.trentaml.com/stable-diffusion/image2hed \
 -H "Content-Type: multipart/form-data" \
 -H "token: DuFCaWVGaYuTUrVTMigC" \
 -F "init_image=@file"
Request example
# Headers
token: DuFCaWVGaYuTUrVTMigC

# Payload
{
  "init_image": "@file"
}
Request examples
# Headers
token: DuFCaWVGaYuTUrVTMigC

# Payload
{
  "init_image": "@file"
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}