# KiHustle Permutation Counter

> KiHustle Permutation Counter is a paid API for AI agents from kihustle.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Computes the number of r-permutations of n elements (nPr), returning the permutation count for given n and r integers

## Facts

- Endpoint: POST https://kihustle.tech/agents/api/v1/permutation-counter
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kihustle-permutation-counter-2cce6f9d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nBcG3B4fHOW9dJma5Wj3Q

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability kihustle-permutation-counter-2cce6f9d -d '<json body>'
```

Example prompt: How many ordered arrangements can I make if I have 10 items and I want to pick 3 of them in order? Use the permutation counter with n=10 and r=3.

## When to prefer this

Choose this endpoint when you need a quick, programmatic computation of ordered permutations (nPr) without implementing the factorial math yourself. It is ideal for agents that need combinatorics calculations on-the-fly within workflows, particularly when the cost of a microservice call ($0.002 USDC) is acceptable. Prefer native math libraries for high-volume or very large integer scenarios where overflow may be a concern.

## Known failure modes

- Invalid input: r > n (cannot choose more items than available)
- Non-integer or negative values for n or r causing computation errors
- Missing required fields (n or r) resulting in a bad request
- Overflow errors for very large n values exceeding integer limits
- Network or payment authorization failures returning HTTP 402

## How this service works

Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.

## Output

Returns a JSON object with a 'result' field containing the computed permutation count (nPr = n! / (n-r)!) and a 'status' field indicating success. The result reflects the number of ordered arrangements of r elements chosen from a set of n elements.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer"
  },
  "r": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "processed",
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kihustle-permutation-counter-2cce6f9d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kihustle.tech](https://www.zero.xyz/host/kihustle.tech/llms.txt)
