Cartoon Styles

Apply Cartoon Styles to Photo

Request parameters

Description
Parameter’s name Parameter’s type Description
raw_input boolean False - Use Tensorflow protobuf record format fot feeding data to model, True - Use numpy arrays.
out_mime_type string Optional. Used on a client side to identify content nature.
out_filters string Optional. Comma separated list of model outputs to return.
image bytes Original Image
style string Anime style
form-data
curl -X POST \
    -H 'Authorization: Bearer YOUR_USER_TOKEN' \
    -H 'Content-Type: multipart/form-data' \
    -F "out_filters=output" \
    -F "raw_input=true" \
    -F "out_mime_type=image/png" \
    -F "bytes_image=@PATH_TO_IMAGE" \
    -F "string_style=style_value" \
    https://cloud.kibernetika.io/api/v0.2/workspace/kuberlab-demo/serving/anime/tfproxy/9000/any
json
curl -X POST \
    -H 'Authorization: Bearer YOUR_USER_TOKEN' \
    -H 'Content-Type: application/json' \
    -d '
      {
        "inputs": {
          "image": {
            "data": "base64_encoded_image_contents",
            "dtype": 7
          },
          "style": {
            "data": "base64_encoded_style_value",
            "dtype": 7
          }
        },
        "out_filters": "output",
        "out_mime_type": "image/png",
        "raw_input": true
      }
    '
    https://cloud.kibernetika.io/api/v0.2/workspace/kuberlab-demo/serving/anime/tfproxy/9000/any

Response format

{
  "output": [
    [
      "bytes"
    ]
  ]
}