Skip to content

Post Processing

Integrate

Model id post-processing
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/post-processing?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.001 1 API credit Run it on this page

Get API key
Utility · Image

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required image_url
Drop a file, or

Image URL for processing.

Advanced dissolve_image_url · grain_style · red_direction · green_direction · blue_direction · blur_type · dodge_burn_mode · sharpen_mode · tint_mode · desaturate_method · grain_intensity · grain_scale · temperature · brightness · contrast · saturation · gamma · red_shift · green_shift · blue_shift · blur_radius · blur_sigma · vignette_strength · parabolize_coeff · vertex_x · vertex_y · tint_strength · dissolve_factor · dodge_burn_intensity · glow_intensity · glow_radius · sharpen_radius · sharpen_alpha · noise_radius · preserve_edges · smart_sharpen_strength · smart_sharpen_ratio · cas_amount · solarize_threshold · desaturate_factor · enable_grain · enable_color_correction · enable_chromatic · enable_blur · enable_vignette · enable_parabolize · enable_tint · enable_dissolve · enable_dodge_burn · enable_glow · enable_sharpen · enable_solarize · enable_desaturate
default
Drop a file, or

Second image's URL, used for the dissolve effect.

grain_style default modern

Style used for the film grain effect.

red_direction default horizontal

Direction of displacement for the red channel.

green_direction default horizontal

Direction of displacement for the green channel.

blue_direction default horizontal

Direction of displacement for the blue channel.

blur_type default gaussian

Blur method to use.

dodge_burn_mode default dodge

Mode used for the dodge and burn effect.

sharpen_mode default basic

Sharpening method to use.

default sepia

Color mode used for tinting.

default luminance (Rec.709)

Method used for desaturation.

default 0.4

Intensity of film grain when the effect is enabled.

default 10

Scale of the film grain when the effect is enabled.

default 0

Adjustment to the color temperature.

default 0

Adjustment to image brightness.

default 0

Adjustment to image contrast.

default 0

Adjustment to color saturation.

default 1

Adjustment to gamma.

default 0

Amount of displacement for the red channel.

default 0

Amount of displacement for the green channel.

default 0

Amount of displacement for the blue channel.

default 3

Radius used for blurring.

default 1

Gaussian blur's sigma value.

default 0.5

Strength of the vignette when the effect is enabled.

default 1

Coefficient used by the parabolize effect.

default 0.5

X coordinate of the vertex.

default 0.5

Y coordinate of the vertex.

default 1

Strength of the tint effect.

default 0.5

Blending factor for the dissolve effect.

default 0.5

Intensity of the dodge and burn effect.

default 1

Intensity of the glow effect.

default 5

Radius used to blur the glow.

default 1

Radius used for sharpening in basic mode.

default 1

Sharpening intensity in basic mode.

default 7

Radius used for noise in smart sharpening.

default 0.75

Degree of edge preservation.

default 5

Intensity of smart sharpening.

default 0.5

Blending ratio for smart sharpening.

default 0.8

Intensity of CAS sharpening.

default 0.5

Threshold for solarization.

default 1

Degree of desaturation.

POST /run/post-processing?wait=20 quote → $0.001
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/post-processing?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Post Processing

Applies several effects to one image in a single call, each turned on with an `enable_` switch: grain, color correction, chromatic aberration, blur, vignette, parabolize and tint. Each effect has its own ranges, such as brightness and contrast from -100 to 100, blur radius up to 31 and channel shifts of -20 to 20. Input is an `image_url`.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
image_urlrequired image
Typeurl · image
Image URL for processing.
enable_grainoptional
Typeboolean
Defaultfalse
Toggle for the film grain effect.
grain_intensityoptional
Typenumber
Default0.4
0 – 1
Intensity of film grain when the effect is enabled.
grain_scaleoptional
Typenumber
Default10
1 – 100
Scale of the film grain when the effect is enabled.
grain_styleoptional
Typeenum
Defaultmodern
modernanalogkodakfujicinematicnewspaper
Style used for the film grain effect.
enable_color_correctionoptional
Typeboolean
Defaultfalse
Toggle for color correction.
temperatureoptional
Typenumber
Default0
-100 – 100
Adjustment to the color temperature.
brightnessoptional
Typenumber
Default0
-100 – 100
Adjustment to image brightness.
contrastoptional
Typenumber
Default0
-100 – 100
Adjustment to image contrast.
saturationoptional
Typenumber
Default0
-100 – 100
Adjustment to color saturation.
gammaoptional
Typenumber
Default1
0.2 – 2.2
Adjustment to gamma.
enable_chromaticoptional
Typeboolean
Defaultfalse
Toggle for chromatic aberration.
red_shiftoptional
Typeinteger
Default0
-20 – 20
Amount of displacement for the red channel.
red_directionoptional
Typeenum
Defaulthorizontal
horizontalvertical
Direction of displacement for the red channel.
green_shiftoptional
Typeinteger
Default0
-20 – 20
Amount of displacement for the green channel.
green_directionoptional
Typeenum
Defaulthorizontal
horizontalvertical
Direction of displacement for the green channel.
blue_shiftoptional
Typeinteger
Default0
-20 – 20
Amount of displacement for the blue channel.
blue_directionoptional
Typeenum
Defaulthorizontal
horizontalvertical
Direction of displacement for the blue channel.
enable_bluroptional
Typeboolean
Defaultfalse
Toggle for the blur effect.
blur_typeoptional
Typeenum
Defaultgaussian
gaussiankuwahara
Blur method to use.
blur_radiusoptional
Typeinteger
Default3
0 – 31
Radius used for blurring.
blur_sigmaoptional
Typenumber
Default1
0.1 – 10
Gaussian blur's sigma value.
enable_vignetteoptional
Typeboolean
Defaultfalse
Toggle for the vignette effect.
vignette_strengthoptional
Typenumber
Default0.5
0 – 10
Strength of the vignette when the effect is enabled.
enable_parabolizeoptional
Typeboolean
Defaultfalse
Toggle for the parabolize effect.
parabolize_coeffoptional
Typenumber
Default1
-10 – 10
Coefficient used by the parabolize effect.
vertex_xoptional
Typenumber
Default0.5
0 – 1
X coordinate of the vertex.
vertex_yoptional
Typenumber
Default0.5
0 – 1
Y coordinate of the vertex.
enable_tintoptional
Typeboolean
Defaultfalse
Toggle for the color tint effect.
tint_strengthoptional
Typenumber
Default1
0.1 – 1
Strength of the tint effect.
tint_modeoptional
Typeenum
Defaultsepia
sepiaredgreenbluecyanmagentayellowpurpleorangewarmcoollimenavyvintageroseteal
+4 moremaroonpeachlavenderolive
Color mode used for tinting.
enable_dissolveoptional
Typeboolean
Defaultfalse
Toggle for the dissolve effect.
dissolve_image_urloptional
Typeurl · image
Default
Second image's URL, used for the dissolve effect.
dissolve_factoroptional
Typenumber
Default0.5
0 – 1
Blending factor for the dissolve effect.
enable_dodge_burnoptional
Typeboolean
Defaultfalse
Toggle for the dodge and burn effect.
dodge_burn_intensityoptional
Typenumber
Default0.5
0 – 1
Intensity of the dodge and burn effect.
dodge_burn_modeoptional
Typeenum
Defaultdodge
dodgeburndodge_and_burnburn_and_dodgecolor_dodgecolor_burnlinear_dodgelinear_burn
Mode used for the dodge and burn effect.
enable_glowoptional
Typeboolean
Defaultfalse
Toggle for the glow effect.
glow_intensityoptional
Typenumber
Default1
0 – 5
Intensity of the glow effect.
glow_radiusoptional
Typeinteger
Default5
1 – 50
Radius used to blur the glow.
enable_sharpenoptional
Typeboolean
Defaultfalse
Toggle for the sharpening effect.
sharpen_modeoptional
Typeenum
Defaultbasic
basicsmartcas
Sharpening method to use.
sharpen_radiusoptional
Typeinteger
Default1
1 – 15
Radius used for sharpening in basic mode.
sharpen_alphaoptional
Typenumber
Default1
0.1 – 5
Sharpening intensity in basic mode.
noise_radiusoptional
Typeinteger
Default7
1 – 25
Radius used for noise in smart sharpening.
preserve_edgesoptional
Typenumber
Default0.75
0 – 1
Degree of edge preservation.
smart_sharpen_strengthoptional
Typenumber
Default5
0 – 25
Intensity of smart sharpening.
smart_sharpen_ratiooptional
Typenumber
Default0.5
0 – 1
Blending ratio for smart sharpening.
cas_amountoptional
Typenumber
Default0.8
0 – 1
Intensity of CAS sharpening.
enable_solarizeoptional
Typeboolean
Defaultfalse
Whether to apply solarization.
solarize_thresholdoptional
Typenumber
Default0.5
0 – 1
Threshold for solarization.
enable_desaturateoptional
Typeboolean
Defaultfalse
Whether to apply desaturation.
desaturate_factoroptional
Typenumber
Default1
0 – 1
Degree of desaturation.
desaturate_methodoptional
Typeenum
Defaultluminance (Rec.709)
luminance (Rec.709)luminance (Rec.601)averagelightness
Method used for desaturation.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "post-processing",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ]
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
images
array of object {url, content_type, file_name, file_size, width, height}Images resulting from processing.

More models: Image Editing

For AI agents: this page as Markdown is at https://doitong.com/en-US/developers/models/post-processing.md. All models and guides: https://doitong.com/developers/llms.txt