# YourAITools Credits – Sample Pack

> YourAITools Credits – Sample Pack is a paid API for AI agents from credits.agentgate.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-23).

Purchases a $0.005 sample prepaid credit pack via x402 payment, returning an API key loaded with $0.005 USD balance usable across YourAITools agent APIs

## Facts

- Endpoint: GET https://credits.agentgate.workers.dev/v1/pack/sample?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/youraitools-credits-sample-pack-1bac1c4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iYlVC91LMbCSC8l-emI7-

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 youraitools-credits-sample-pack-1bac1c4d
```

Example prompt: Can you buy me a sample YourAITools credit pack so I get an API key I can use to try out PayGuard or WebRead — just the $0.005 trial size?

## When to prefer this

Use this endpoint when you need to quickly obtain a low-cost trial API key for the YourAITools suite (PayGuard, TokenVerdict, SignCheck, WebRead, InjectScan, DomainCheck, PkgGuard, StackDetect, AgentGate) without committing to a larger credit pack. It is the lowest-denomination entry point ($0.005) and ideal for testing or onboarding. Prefer the $1 or $5 packs (sibling endpoints) for production use or bulk usage to benefit from the 10% bonus on the $5 pack.

## Known failure modes

- Payment not received or underpaid — x402 payment fails, no key issued
- Network/worker error returns HTTP 500 — no key minted, no charge
- Invalid payment asset or chain — payment rejected before key creation
- Key shown only once (shown_once: true) — if not captured immediately, key cannot be retrieved again

## How this service works

Prepaid credits for the YourAITools x402 agent APIs (PayGuard, TokenVerdict, SignCheck, WebRead, InjectScan, DomainCheck, PkgGuard, StackDetect, AgentGate). One x402 payment ($1, or $5 with a 10% bonus) mints an API key; send it as Authorization: Bearer <key> to any of those paid routes and each call debits its normal price, with no per-call on-chain payment. Credits are prepaid usage of the YourAITools APIs only, priced in USD at each route's normal per-call price. They are not money, not a token or investment, have no cash value, cannot be withdrawn and are not refundable; a failed call (HTTP 400 or higher) is not charged. Prices of individual routes can change; the balance does not expire while the service runs. Keep the key secret: whoever holds it can spend the credits.

## Output

Returns a JSON object containing the newly minted API key (prefixed yatc_), the pack name ('sample'), the amount paid in USD, the credited balance in USD, a flag indicating the key is shown only once (shown_once: true), and an example of how to use it — including the Authorization header format and a sample API call URL to one of the YourAITools paid routes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {},
     "description": "Search intents: api credits sample, try api credits, prepaid api key, usdc api credits, x402 credits, agent api balance"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "use": {
       "type": "object"
      },
      "pack": {
       "type": "string"
      },
      "api_key": {
       "type": "string"
      },
      "paid_usd": {
       "type": "string"
      },
      "shown_once": {
       "type": "boolean"
      },
      "balance_usd": {
       "type": "string"
      },
      "credited_usd": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "use": {
   "header": "Authorization: Bearer yatc_EXAMPLEexampleEXAMPLEexampleEXAMPLEexampl",
   "example": "https://api.youraitools.co/payguard/v1/address?address=0x098B716B8Aaf21512996dC57EB0615e2383E2f96"
  },
  "pack": "sample",
  "api_key": "yatc_EXAMPLEexampleEXAMPLEexampleEXAMPLEexampl",
  "paid_usd": "0.005",
  "shown_once": true,
  "balance_usd": "0.005",
  "credited_usd": "0.005"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/youraitools-credits-sample-pack-1bac1c4d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from credits.agentgate.workers.dev](https://www.zero.xyz/host/credits.agentgate.workers.dev/llms.txt)
