Stability AI · Capability

Stability AI Stable Image Edit API — Replace Background and Relight

Stability AI Stable Image Edit API — Replace Background and Relight. 1 operations. Lead operation: Replace background and adjust lighting. Self-contained Naftiko capability covering one Stability Ai business surface.

Run with Naftiko Stability AiReplace Background and Relight

What You Can Do

POST
Editimagereplacebackgroundandrelight — Replace background and adjust lighting
/v1/v2beta/stable-image/edit/replace-background-and-relight

MCP Tools

replace-background-and-adjust-lighting

Replace background and adjust lighting

Capability Spec

stable-image-edit-replace-background-and-relight.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Stability AI Stable Image Edit API — Replace Background and Relight
  description: 'Stability AI Stable Image Edit API — Replace Background and Relight. 1 operations. Lead operation: Replace
    background and adjust lighting. Self-contained Naftiko capability covering one Stability Ai business surface.'
  tags:
  - Stability Ai
  - Replace Background and Relight
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STABILITY_AI_API_KEY: STABILITY_AI_API_KEY
capability:
  consumes:
  - type: http
    namespace: stable-image-edit-replace-background-and-relight
    baseUri: https://api.stability.ai
    description: Stability AI Stable Image Edit API — Replace Background and Relight business capability. Self-contained,
      no shared references.
    resources:
    - name: v2beta-stable-image-edit-replace-background-and-relight
      path: /v2beta/stable-image/edit/replace-background-and-relight
      operations:
      - name: editimagereplacebackgroundandrelight
        method: POST
        description: Replace background and adjust lighting
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.STABILITY_AI_API_KEY}}'
  exposes:
  - type: rest
    namespace: stable-image-edit-replace-background-and-relight-rest
    port: 8080
    description: REST adapter for Stability AI Stable Image Edit API — Replace Background and Relight. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/v2beta/stable-image/edit/replace-background-and-relight
      name: v2beta-stable-image-edit-replace-background-and-relight
      description: REST surface for v2beta-stable-image-edit-replace-background-and-relight.
      operations:
      - method: POST
        name: editimagereplacebackgroundandrelight
        description: Replace background and adjust lighting
        call: stable-image-edit-replace-background-and-relight.editimagereplacebackgroundandrelight
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stable-image-edit-replace-background-and-relight-mcp
    port: 9090
    transport: http
    description: MCP adapter for Stability AI Stable Image Edit API — Replace Background and Relight. One tool per consumed
      operation, routed inline through this capability's consumes block.
    tools:
    - name: replace-background-and-adjust-lighting
      description: Replace background and adjust lighting
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: stable-image-edit-replace-background-and-relight.editimagereplacebackgroundandrelight
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.