VAP AI Operations API

Image and video editing operations: upscale, background remove, inpaint, ai_edit, video trim/merge

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

GET /v3/operations List Available Operations #
POST /v3/operations Create Operation #
GET /v3/operations/{operation_id} Get Operation Status #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/vapagent-com:vapagent-com-operations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

vapagent-com-operations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: VAP - Execution Control Layer for AI Agents Operations API
  description: '## Execution Control Layer for AI Agents


    VAP enforces cost control, retry limits, and execution ownership between AI agents and paid external APIs.


    *"VAP is where nondeterminism stops."*


    ### The Problem


    If your agents call paid APIs directly, you don''t have:

    - **Cost control** - No budget limits, no spending caps

    - **Retry limits** - Failed calls can loop indefinitely

    - **Failure ownership** - No clear accountability when things go wrong


    ### The Solution: Reserve → Burn → Refund


    1. **Reserve**: Budget is locked before task execution

    2. **Execute**: Task runs with reserved funds

    3. **Burn/Refund**: Pay actual cost on success, full refund on failure


    ### Pricing


    | Type | Price |

    |------|-------|

    | Image | $0.18 |

    | Video | $1.96 |

    | Music | $0.68 |

    | AI Edit | $0.15 |


    ### Integration Options


    - **REST API**: Direct HTTP integration

    - **MCP**: Model Context Protocol for Claude Desktop

    - **A2A**: Agent-to-Agent Protocol for inter-agent communication


    ### Quick Links


    - Developer Hub - API docs, keys, and usage guidance

    - API Keys - How to get your API key

    - Error Codes - Complete error reference

    - Rate Limits - Understand tier limits

    - Webhooks - Real-time task notifications

    - Agent Card - A2A Protocol discovery


    ### Authentication


    All endpoints require Bearer token authentication:


    ```bash

    curl -H "Authorization: Bearer vap_xxxx" \

    https://api.vapagent.com/v3/agents/me

    ```


    Get your API key by registering an agent: `POST /v3/agents`


    **Important**: API keys are shown only once during registration. Save it securely!


    ### Base URL


    ```

    https://api.vapagent.com

    ```


    ### Versioning


    Current API version: **v1.20.6**


    All endpoints are under the `/v3/` namespace.'
  contact:
    name: VAP Support
    url: https://vapagent.com/
    email: support@vapagent.com
  license:
    name: Proprietary
    url: https://vapagent.com/
  version: 1.20.6
servers:
- url: https://api.vapagent.com
  description: Production server
tags:
- name: Operations
  description: 'Image and video editing operations: upscale, background remove, inpaint, ai_edit, video trim/merge'
paths:
  /v3/operations:
    get:
      tags:
      - Operations
      summary: List Available Operations
      description: 'List all available operations and their categories.


        Operations are grouped by category:

        - **edit**: inpaint, background_remove, ai_edit, video_trim, video_merge

        - **enhance**: upscale


        Each operation has a fixed price shown in the registry.'
      operationId: list_available_operations_v3_operations_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationListResponse'
    post:
      tags:
      - Operations
      summary: Create Operation
      description: 'Create a media editing/enhancement operation.


        ## Financial Flow


        Same as tasks: Reserve -> Execute -> Burn/Refund


        ## Available Operations


        | Operation | Price | Description |

        |-----------|-------|-------------|

        | inpaint | $0.15 | Edit image using text prompt |

        | background_remove | $0.10 | Remove background from image |

        | upscale | $0.15 | Enhance image resolution |

        | ai_edit | $0.15 | AI-powered image editing with text instructions |

        | video_trim | $0.05 | Trim video to specified range |

        | video_merge | $0.05 | Merge multiple video clips |


        ## Authentication


        Requires Bearer token authentication with a valid agent API key.'
      operationId: create_operation_v3_operations_post
      parameters:
      - name: x-idempotency-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Idempotency-Key
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <api_key>
          title: Authorization
        description: Bearer <api_key>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOperationRequest'
      responses:
        '202':
          description: Operation accepted and queued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationCreatedResponse'
        '400':
          description: Invalid operation or parameters
        '402':
          description: Insufficient balance
        '403':
          description: Tier limit exceeded
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v3/operations/{operation_id}:
    get:
      tags:
      - Operations
      summary: Get Operation Status
      description: 'Get the status of an operation.


        Returns current status, output URL (if completed), and any errors.'
      operationId: get_operation_v3_operations__operation_id__get
      parameters:
      - name: operation_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Operation Id
      - name: authorization
        in: header
        required: true
        schema:
          type: string
          description: Bearer <api_key>
          title: Authorization
        description: Bearer <api_key>
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CreateOperationRequest:
      properties:
        operation:
          type: string
          title: Operation
          description: 'Operation type: inpaint, upscale, background_remove, ai_edit, video_trim, video_merge'
        media_url:
          type: string
          title: Media Url
          description: URL of the input media file
        prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: Prompt
          description: Text prompt for operations that need it (e.g., inpaint)
        mask_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Mask Url
          description: Mask URL for inpaint operations
        options:
          additionalProperties: true
          type: object
          title: Options
          description: Operation-specific options
        idempotency_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Idempotency Key
          description: Client-provided key for duplicate prevention
        callback_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Callback Url
          description: Webhook URL for completion notification
      type: object
      required:
      - operation
      - media_url
      title: CreateOperationRequest
      description: Request to create a new operation.
      examples:
      - summary: Inpaint - remove object
        value:
          idempotency_key: inpaint-001
          media_url: https://example.com/image.png
          operation: inpaint
          prompt: remove the car from the image
      - summary: Upscale image
        value:
          media_url: https://example.com/image.png
          operation: upscale
          options:
            scale: 2
      - summary: Remove background
        value:
          media_url: https://example.com/portrait.jpg
          operation: background_remove
      - summary: AI Image Edit
        value:
          media_url: https://example.com/photo.jpg
          operation: ai_edit
          options:
            aspect_ratio: match_input_image
          prompt: Change the background to a sunset beach
      - summary: Trim video
        value:
          media_url: https://example.com/video.mp4
          operation: video_trim
          options:
            end_time: 15
            start_time: 5
    OperationListResponse:
      properties:
        operations:
          items: {}
          type: array
          title: Operations
        categories:
          additionalProperties:
            items: {}
            type: array
          type: object
          title: Categories
      type: object
      required:
      - operations
      - categories
      title: OperationListResponse
      description: List of available operations.
    OperationResponse:
      properties:
        operation_id:
          type: string
          title: Operation Id
        operation:
          type: string
          title: Operation
        status:
          type: string
          title: Status
        created_at:
          type: string
          title: Created At
        started_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Started At
        completed_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Completed At
        estimated_cost:
          anyOf:
          - type: string
          - type: 'null'
          title: Estimated Cost
        actual_cost:
          anyOf:
          - type: string
          - type: 'null'
          title: Actual Cost
        output_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Output Url
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
        error_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Code
      type: object
      required:
      - operation_id
      - operation
      - status
      - created_at
      title: OperationResponse
      description: Operation response model.
    OperationCreatedResponse:
      properties:
        operation_id:
          type: string
          title: Operation Id
        operation:
          type: string
          title: Operation
        status:
          type: string
          title: Status
        estimated_cost:
          type: string
          title: Estimated Cost
        reserved_amount:
          type: string
          title: Reserved Amount
        message:
          type: string
          title: Message
      type: object
      required:
      - operation_id
      - operation
      - status
      - estimated_cost
      - reserved_amount
      - message
      title: OperationCreatedResponse
      description: Response after operation creation.