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

# Invoke a paid hosted AI/API service

`POST /ai/invoke`

## Request

- Base URL: `https://payments.wiselyenterprisesllc.com`
- URL: `https://payments.wiselyenterprisesllc.com/ai/invoke`
- Auth: none required

## 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.dev/wiselyenterprisesllc/apis/wisely-x402-agent-payment-infrastructure.md) - [All operations](https://skmtc.dev/wiselyenterprisesllc/apis/wisely-x402-agent-payment-infrastructure/llms.txt) - [OpenAPI document](https://skmtc.dev/wiselyenterprisesllc/apis/wisely-x402-agent-payment-infrastructure/revisions/6cab684bba35?raw)
