Pixelcut
App · 15 actions
Edit images and videos and check your API credit balance.
Actions
| Action | What it does |
|---|---|
| Cancel a looping video job | Cancel a looping video job. |
| Cancel a video background removal job | Cancel a video background removal job. |
| Cancel a virtual try-on job | Cancel a virtual try-on job. |
| Create a looping video | Create a looping video. |
| Extend an image | Extend an image. |
| Fill a masked area of an image | Fill a masked area of an image. |
| Generate a virtual try-on | Generate a virtual try-on. |
| Generate an image background | Generate an image background. |
| Get a looping video job | Get a looping video job. |
| Get a video background removal job | Get a video background removal job. |
| Get a virtual try-on job | Get a virtual try-on job. |
| Get remaining credits | Get remaining credits. |
| Remove a video background | Remove a video background. |
| Remove an image background | Remove an image background. |
| Upscale an image | Upscale an image. |
Cancel a looping video job
Cancel a looping video job.
Inputs
- Job ID
job_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 ID
job_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 ID
job_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 URL
image_urltext - URL of the image to be processed.
- Image
imagetext - Base64 encoded representation of the image to be processed.
- Prompt
prompttext - Optional creative direction for the motion (e.g. what should move subtly). Directions requesting camera movement, cuts, new objects, or scene changes are ignored.
- Duration
durationnumber - Length of the looping video in whole seconds (5-15).From 5 to 15.
- Resolution
resolutiontext - 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 audio
include_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.
- Motion
motiontext - 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 URL
image_urltextRequired - URL of the image to be processed.
- Left
leftnumber - Number of pixels to extend the image in this direction (0-2000).From 0 to 2000.
- Top
topnumber - Number of pixels to extend the image in this direction (0-2000).From 0 to 2000.
- Right
rightnumber - Number of pixels to extend the image in this direction (0-2000).From 0 to 2000.
- Bottom
bottomnumber - Number of pixels to extend the image in this direction (0-2000).From 0 to 2000.
- Creativity
creativitynumber - 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 format
output_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 URL
image_urltextRequired - URL of the image to be processed.
- Mask URL
mask_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.
- Mode
modetext - `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 URL
person_image_urltextRequired - URL of the person's image.
- Garment image URL
garment_image_urltextRequired - URL of the garment image.
- Garment mode
garment_modetext - > **â ï¸ DEPRECATED**: This parameter is deprecated and will be removed in a future version.One of:
auto,full,upper,lower. - Preprocess garment
preprocess_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 background
remove_backgroundtext - When true, the background will be removed from the final result. Defaults to false.One of:
true,false. - Wait for result
wait_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 URL
image_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 transform
image_transformobject - Image transform.
- Scene
scenetext - Select a preset scene type. If provided prompt and negative_prompt will be ignored.One of:
marble,wood,industrial,linen,brick,counter. - Prompt
prompttext - A description of the desired scene used to guide the image generation process.
- Negative prompt
negative_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 ID
job_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 ID
job_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 ID
job_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 URL
video_urltextRequired - URL of the video to be processed. Must be a publicly accessible URL.
- Background color
background_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 format
output_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 URL
image_urltextRequired - URL of the image to be processed.
- Format
formattext - 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 URL
image_urltextRequired - URL of the image to be processed.
- Scale
scalenumberRequired - The scale factor.One of:
2,4.
Outputs
dataobject- The response from Pixelcut.
Example output
{
"data": {
"result_url": "example"
}
}