Volver al catálogo

PhotoRoom

photoroom

PhotoRoom provides AI-powered APIs for removing backgrounds, editing and resizing product photos, generating images from prompts, and checking account credit usage.

Acciones
4
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (4)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Edit ImagePHOTOROOM_EDIT_IMAGEAcción

Apply one or more combined PhotoRoom v2 edits to an image URL or uploaded file; sandbox output is watermarked, while live calls consume plan credits.

Parámetros de entrada

  • marginany

    Uniform outer margin: a ratio from 0 to 0.49, a percentage from 0% to 49% such as 30%, or a pixel value such as 100px.

  • paddingany

    Uniform padding around the subject: a ratio from 0 to 0.49, a percentage from 0% to 49% such as 30%, or a pixel value such as 100px.

  • image_urlstringuri

    Publicly reachable direct image URL. Provide exactly one of image_url or image_file.

  • export_dpinumber

    Optional output pixel density from 72 to 1200 DPI.

  • image_fileobject

    Image file to upload. Provide exactly one of image_file or image_url.

  • edit_promptstring

    Describe an AI edit to apply through PhotoRoom's editWithAI operation.

  • environmentstringObligatorioenum

    Choose live for non-watermarked output that consumes plan credits, or sandbox for free watermarked output.

    sandboxlive
  • output_sizestring

    Output size: WIDTHxHEIGHT such as 128x128, auto, originalImage, or croppedSubject.

  • shadow_modestringenum

    Shadow generation mode to apply; omit to leave shadows unchanged.

    ai.softai.hardai.floatingai.preset-softai.preset-hardai.auto-with-overrides
  • template_idstringuuid

    PhotoRoom template UUID to apply as part of the v2 edit.

  • upscale_modestringenum

    Use ai.fast for speed or ai.slow for higher quality; omit to skip upscaling.

    ai.fastai.slow
  • export_formatstringenum

    Output image format.

    pngjpegjpgwebpavif
  • background_colorstring

    Replace the background with a color name such as red or blue, or a hex value without # such as FF0000 or FF0000EE. Pass remove_background explicitly as false to instead only fill padding and transparent areas with this color.

  • background_promptstring

    Generate a replacement background from this text prompt.

  • remove_backgroundboolean

    Remove the source image background as part of this edit. Setting any background replacement field implies this, since PhotoRoom only replaces a background it has removed.

  • text_removal_modestringenum

    Remove artificial text, natural text, or all text; omit to keep detected text.

    ai.artificialai.naturalai.all
  • background_image_urlstringuri

    Replace the background with an image from this public URL.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Generate ImagePHOTOROOM_GENERATE_IMAGEAcción

Generate a new image from a text prompt with PhotoRoom v2; sandbox output is watermarked, while live calls consume plan credits.

Parámetros de entrada

  • seedinteger

    Optional generation seed for reproducible output when supported.

  • sizestringenum

    Requested generated-image size.

    LANDSCAPE_16_9LANDSCAPE_4_3PORTRAIT_16_9PORTRAIT_4_3SQUARE_HD
  • promptstringObligatorio

    Text description of the image to generate.

  • environmentstringObligatorioenum

    Choose live for non-watermarked output that consumes plan credits, or sandbox for free watermarked output.

    sandboxlive
  • export_formatstringenum

    Output image format.

    pngjpegjpgwebpavif
  • remove_backgroundboolean

    Remove the generated image background. Defaults to false so the scene described by the prompt is retained.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Account UsagePHOTOROOM_GET_ACCOUNT_USAGEAcción

Return the connected live PhotoRoom account's reported plan and remaining image credits.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Remove BackgroundPHOTOROOM_REMOVE_BACKGROUNDAcción

Remove the background from one uploaded image with PhotoRoom's dedicated Basic API; sandbox output is watermarked, while live calls consume plan credits.

Parámetros de entrada

  • cropboolean

    Crop the result around the detected foreground subject.

  • sizestringenum

    Output resolution tier.

    previewmediumhdfull
  • formatstringenum

    Output image format.

    pngjpgwebp
  • despillboolean

    Reduce background color spill around foreground edges.

  • channelsstringenum

    Return the color image with transparency (rgba) or only the alpha mask (alpha).

    rgbaalpha
  • image_fileobjectObligatorio

    Image file whose background will be removed.

  • environmentstringObligatorioenum

    Choose live for non-watermarked output that consumes plan credits, or sandbox for free watermarked output.

    sandboxlive
  • background_colorstring

    Optional output background color accepted by PhotoRoom instead of transparency.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not