# CodeNut Credit Drop (x402)

> CodeNut Credit Drop (x402) is a paid API for AI agents from www.codenut.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Accepts a $0.01 USDC payment on Base via x402 protocol and issues 100x CodeNut platform credits, returning the credited amount as JSON.

## Facts

- Endpoint: GET https://www.codenut.ai/api/x402/credit-drop/xs
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/www-codenut-ai-83ed5fcb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2m6P7yf07rABrc3X5nq_m

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 www-codenut-ai-83ed5fcb
```

Example prompt: Top up my CodeNut account by purchasing the 100x credit bundle — pay $0.01 in USDC on Base using the x402 credit-drop offer.

## When to prefer this

Use this endpoint when an AI agent needs to programmatically top up a CodeNut account with platform credits using a micro-payment of $0.01 USDC on the Base blockchain via the x402 payment protocol, especially when the agent needs to maintain a CodeNut credit balance for ongoing AI tool usage.

## Known failure modes

- Insufficient USDC balance — payment rejected, no credits issued
- Invalid or missing x402 payment header — 402 Payment Required response
- Payment on wrong network (not Base) — transaction fails
- Double-spend or replay attempt — transaction rejected
- Service unavailable — 500 error, credits not issued

## How this service works

Accept a USDC payment on Base to issue CodeNut credits (e.g., $0.01 for 100x credits) and receive the credited amount as JSON.

## Output

A JSON object containing the credited amount of CodeNut credits issued to the account after the $0.01 USDC payment is processed on Base.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "amount",
  "network",
  "currency",
  "credits_requested"
 ],
 "properties": {
  "amount": {
   "type": "string"
  },
  "network": {
   "type": "string"
  },
  "currency": {
   "type": "string"
  },
  "credits_requested": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/www-codenut-ai-83ed5fcb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.codenut.ai](https://www.zero.xyz/host/www.codenut.ai/llms.txt)
