andreasjansson/jpg-glitch

JPEG corruption as a service

Public
119 runs

Run andreasjansson/jpg-glitch with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
image
string
Input image to glitch
glitch_intensity
number
0.3

Max: 1

Glitch intensity (0.0 to 1.0)
compression_quality
integer
75

Min: 1

Max: 100

Initial JPEG compression quality
glitch_type
None
datacorruption
Type of glitch effect
color_channel_shift
boolean
True
Apply color channel shifting
seed
integer
Random seed for consistent glitching (None for random)

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "string",
  "title": "Output",
  "format": "uri"
}
Example API response
View prediction
'https://replicate.delivery/xezq/c5KkwkiDvZJ6CVhW5XDYEAR8poqymRXx2rIGoxH1WE3TgkSF/glitched.jpg'