apyhub
FILE MANIPULATION · IMAGE PROCESSING

Apply Style Filters on Image API

What it does

Image Style Transfer applies lightweight style filters to an uploaded image and returns the transformed file. Send a binary image up to 20 MB, choose a style mode, and get the styled image back as binary output.

Use mode to pick the visual treatment: painting, watercolor, sketch, or oil. Use strength to control how strongly the effect is applied, from 0 to 1, with 0.65 as the default. This keeps the endpoint simple to fit into batch image pipelines, user-generated content tools, or quick preview workflows where you want a stylized variant without running a heavier model.

Image Style Transfer is a practical fit when you need to generate alternate artwork for a thumbnail, create a sketch version of a product image, or preview how an asset looks with a painterly filter. The response is the processed image only, so it drops cleanly into the next step of your file handling flow.

POST
Apply lightweight CPU style filters
https://api.eu.apyhub.com/dosvak/apply-image-style-transfer

QUICKSTART

GUIDE

Quickstart

Upload an image to apply the default painting style transfer.

curl -X POST "https://api.eu.apyhub.com/dosvak/apply-image-style-transfer" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/image.jpg"

What you'll get back

Returns a binary file (a string with format: "binary"), which is the styled image output.

TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.
body*
Image file

About this endpoint

What it does

Applies a lightweight CPU style filter to an uploaded image and returns the transformed image as binary output.

Query Parameter(s)

AttributeTypeMandatoryDescription
modeStringNoStyle filter mode. Allowed values: painting, watercolor, sketch, oil. Default: painting.
strengthNumberNoFilter strength. Minimum: 0, maximum: 1. Default: 0.65.

Request Body

ParameterTypeMandatoryDescription
fileStringYesImage file. Binary upload. Maximum size: 20 MB.

Response

Returns a binary file containing the styled image. The success response is a raw binary payload, not a JSON object.

ParameterTypeMandatoryDescription
binary bodyStringYesStyled image returned as binary data.

Query parameters

Name
Type
Description
modeOPTIONAL
string
painting · watercolor · sketch · oil
DEFAULT painting
strengthOPTIONAL
number
DEFAULT 0.65

Body

Name
Type
Description
bodyREQUIRED
object

Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.