Apply Cartoon Styles to Photo
%!s(
Parameter’s name | Parameter’s type | Description |
---|---|---|
out_filters |
string | Optional. Comma separated list of model outputs to return. |
image |
image | Input Image |
style |
string | Style to Apply |
curl -X POST \ -H 'Authorization: Bearer YOUR_USER_TOKEN' \ -H 'Content-Type: multipart/form-data' \ -F "out_filters=output" \ -F "image=image_value" \ -F "style=style_value" \ https://dev.kibernetika.io/api/v0.2/workspace/kuberlab-demo/serving/cartoon/form-data
curl -X POST \ -H 'Authorization: Bearer YOUR_USER_TOKEN' \ -H 'Content-Type: application/json' \ -d ' { "image": "base64_encoded_image_contents", "style": "style_value" } ' https://dev.kibernetika.io/api/v0.2/workspace/kuberlab-demo/serving/cartoon/proxy
import kclient from kclient.utils import client, request cl = client.with_bearer_token("YOUR_USER_TOKEN") serving_api = kclient.api.serving_api.ServingApi(cl) data = request.make(data={ "style": "[Hayao[https://storage.googleapis.com/edwindemo/anime-256/hayao.jpg] Hosoda[https://storage.googleapis.com/edwindemo/anime-256/hosoda.jpg] Shinkai[https://storage.googleapis.com/edwindemo/anime-256/shinkai.jpg] Paprika[https://storage.googleapis.com/edwindemo/anime-256/paprika.jpg]]", }, files={ "image": "/path/to/image_file", }) resp = serving_api.serving_proxy(data, "kuberlab-demo", "cartoon")
{ "output": [ [ "base64_encoded_string" ] ] }