---
title: "Invoke a paid hosted AI/API service"
method: POST
path: "/ai/invoke"
---

# Invoke a paid hosted AI/API service

`POST /ai/invoke`

## Response `200`

Paid result and receipt.

## Other responses

- `400` — Malformed request, unsupported method, or invalid query/body shape.
- `402` — HTTP 402 x402 payment challenge. The caller should choose a supported payment route, sign/pay with its wallet, then retry the same request with the payment proof in X-PAYMENT.
- `409` — Streaming required for a long-running service.
- `422` — Request was syntactically valid but missing useful input or failed endpoint validation.
- `500` — Unexpected server or upstream provider failure.

---

[API](https://skmtc.net/wiselyenterprisesllc/apis/wisely-x402-agent-payment-infrastructure.md) · [All operations](https://skmtc.net/wiselyenterprisesllc/apis/wisely-x402-agent-payment-infrastructure/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wiselyenterprisesllc/wisely-x402-agent-payment-infrastructure/revisions/6cab684bba35/schema)
