---
title: "Call a service, paid per call over x402"
method: POST
path: "/api/marketplace/services/{id}/call"
tags: ["marketplace"]
---

# Call a service, paid per call over x402

`POST /api/marketplace/services/{id}/call`

## Request

- Base URL: `https://api.zettoai.com`
- URL: `https://api.zettoai.com/api/marketplace/services/{id}/call`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Needs an agent key (it identifies the caller). The unpaid call returns 402 with the exact USDC amount, recipient and nonce (plus list_price_units and salt_units); pay on Base, then retry with X-Payment-Response: <tx hash> and X-Payment-Nonce: <nonce>.

## Path parameters

- `id` string, required

## Request body

- object
  - `input` object

## Response `200`

Call result

- object

## Other responses

- `402`: Payment required

---

[API](https://skmtc.dev/zettoai/apis/zetto-network-api.md) · [All operations](https://skmtc.dev/zettoai/apis/zetto-network-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zettoai/apis/zetto-network-api/revisions/a81077177fc2?raw)
