Pixelcut

App · 15 actions

Edit images and videos and check your API credit balance.

Actions

ActionWhat it does
Cancel a looping video jobCancel a looping video job.
Cancel a video background removal jobCancel a video background removal job.
Cancel a virtual try-on jobCancel a virtual try-on job.
Create a looping videoCreate a looping video.
Extend an imageExtend an image.
Fill a masked area of an imageFill a masked area of an image.
Generate a virtual try-onGenerate a virtual try-on.
Generate an image backgroundGenerate an image background.
Get a looping video jobGet a looping video job.
Get a video background removal jobGet a video background removal job.
Get a virtual try-on jobGet a virtual try-on job.
Get remaining creditsGet remaining credits.
Remove a video backgroundRemove a video background.
Remove an image backgroundRemove an image background.
Upscale an imageUpscale an image.

Cancel a looping video job

Cancel a looping video job.

Inputs

Job IDjob_idtextRequired
The ID of the job to cancel

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "message": "example"
  }
}

Cancel a video background removal job

Cancel a video background removal job.

Inputs

Job IDjob_idtextRequired
The ID of the job to cancel

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "message": "example"
  }
}

Cancel a virtual try-on job

Cancel a virtual try-on job.

Inputs

Job IDjob_idtextRequired
The ID of the job to cancel

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "message": "example"
  }
}

Create a looping video

Create a looping video.

Inputs

Image URLimage_urltext
URL of the image to be processed.
Imageimagetext
Base64 encoded representation of the image to be processed.
Promptprompttext
Optional creative direction for the motion (e.g. what should move subtly). Directions requesting camera movement, cuts, new objects, or scene changes are ignored.
Durationdurationnumber
Length of the looping video in whole seconds (5-15).From 5 to 15.
Resolutionresolutiontext
Output resolution of the looping video. 480p costs 8 credits per second; 768p costs 16 credits per second; 1080p costs 32 credits per second.One of: 480p, 768p, 1080p.
Include audioinclude_audiotrue/false
Whether the generated MP4 keeps its audio track. When false, the audio track is stripped and the result is guaranteed to contain no audio stream. Audio does not change the price.
Motionmotiontext
Motion style.One of: subtle, spin.

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "job_id": "example",
    "status": "pending"
  }
}

Extend an image

Extend an image.

Inputs

Image URLimage_urltextRequired
URL of the image to be processed.
Leftleftnumber
Number of pixels to extend the image in this direction (0-2000).From 0 to 2000.
Toptopnumber
Number of pixels to extend the image in this direction (0-2000).From 0 to 2000.
Rightrightnumber
Number of pixels to extend the image in this direction (0-2000).From 0 to 2000.
Bottombottomnumber
Number of pixels to extend the image in this direction (0-2000).From 0 to 2000.
Creativitycreativitynumber
Controls the creativity of the generated content. Higher values produce more creative but potentially less coherent results. 0 means maximum coherence, 1 means maximum creativity.From 0 to 1.
Output formatoutput_formattext
The format of the output image. Default is jpeg.One of: jpeg, png.

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "result_url": "example"
  }
}

Fill a masked area of an image

Fill a masked area of an image.

Inputs

Image URLimage_urltextRequired
URL of the image to be processed.
Mask URLmask_urltextRequired
URL of the mask. It must have the same dimensions as the input image. White pixels mark the area to process; black pixels are kept.
Modemodetext
`fast` (5 credits): quickest results at the lowest cost. `generative` (10 credits): higher-quality fill with more realistic detail.One of: generative, fast.

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "result_url": "example"
  }
}

Generate a virtual try-on

Generate a virtual try-on.

Inputs

Person image URLperson_image_urltextRequired
URL of the person's image.
Garment image URLgarment_image_urltextRequired
URL of the garment image.
Garment modegarment_modetext
> **â ï¸ DEPRECATED**: This parameter is deprecated and will be removed in a future version.One of: auto, full, upper, lower.
Preprocess garmentpreprocess_garmenttext
When true, the garment will be preprocessed to remove background. Defaults to true. In some cases results of model will be improved by skipping pre-processing.One of: true, false.
Remove backgroundremove_backgroundtext
When true, the background will be removed from the final result. Defaults to false.One of: true, false.
Wait for resultwait_for_resulttext
When true, the API will wait for processing to complete and return the result directly. When false, it returns a job ID for polling.One of: true, false.

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "job_id": "example",
    "result_url": "example"
  }
}

Generate an image background

Generate an image background.

Inputs

Image URLimage_urltext
URL of the image. If the image is RGB the background will automatically be removed, if the image is RGBA the background will not be removed and the alpha channel will be respected.
Image transformimage_transformobject
Image transform.
Scenescenetext
Select a preset scene type. If provided prompt and negative_prompt will be ignored.One of: marble, wood, industrial, linen, brick, counter.
Promptprompttext
A description of the desired scene used to guide the image generation process.
Negative promptnegative_prompttext
A comma seperated list of attributes which should be discouraged in the image generation.

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "result_url": "example"
  }
}

Get a looping video job

Get a looping video job.

Inputs

Job IDjob_idtextRequired
The ID of the job to check

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "error": {
      "code": "example",
      "message": "example"
    },
    "job_id": "example",
    "result_url": "example",
    "status": "pending"
  }
}

Get a video background removal job

Get a video background removal job.

Inputs

Job IDjob_idtextRequired
The ID of the job to check

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "error": {
      "code": "example",
      "message": "example"
    },
    "job_id": "example",
    "result_url": "example",
    "status": "pending"
  }
}

Get a virtual try-on job

Get a virtual try-on job.

Inputs

Job IDjob_idtextRequired
The ID of the job to check

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "error": {
      "error_code": "invalid_parameter",
      "message": "example"
    },
    "job_id": "example",
    "result_url": "example",
    "status": "pending"
  }
}

Get remaining credits

Get remaining credits.

Inputs

None.

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "credits_remaining": "example"
  }
}

Remove a video background

Remove a video background.

Inputs

Video URLvideo_urltextRequired
URL of the video to be processed. Must be a publicly accessible URL.
Background colorbackground_colortext
The background color to use after removal. - Use "transparent" for transparent background (requires webm_vp9, mov_h265, mov_proresks, or gif output format) - Use hex code (e.g., "#000000", "#FF5733") for solid color
Output formatoutput_formattext
Output video format with codec specification.One of: mp4_h264 (Mp4 h264), mp4_h265 (Mp4 h265), webm_vp9 (Webm vp9), mov_h265 (Mov h265), mov_proresks (Mov proresks), mkv_h264 (Mkv h264), mkv_h265 (Mkv h265), mkv_vp9 (Mkv vp9), gif.

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "job_id": "example"
  }
}

Remove an image background

Remove an image background.

Inputs

Image URLimage_urltextRequired
URL of the image to be processed.
Formatformattext
The format of the resultant image. Currently, only png is supported.One of: png.

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "result_url": "example"
  }
}

Upscale an image

Upscale an image.

Inputs

Image URLimage_urltextRequired
URL of the image to be processed.
ScalescalenumberRequired
The scale factor.One of: 2, 4.

Outputs

dataobject
The response from Pixelcut.
Example output
{
  "data": {
    "result_url": "example"
  }
}

On this page