# x402 API Key + URL Pack (sub2api-codex-key-pack-500)

> x402 API Key + URL Pack (sub2api-codex-key-pack-500) is a paid API for AI agents from x402-key.558686.xyz, paid per call via x402, $55.556/call, status unknown (last checked 2026-10-27).

Purchases a small OpenAI-compatible API key and base URL quota pack (~$1 USD quota) via x402 micropayment, returning the key, endpoints, and receipt evidence.

## Facts

- Endpoint: POST https://x402-key.558686.xyz/v1/paid/sub2api-codex-key-pack-500?utm_source=zero.xyz
- Price: $55.556/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-api-key-url-pack-sub2api-codex-key-pack-500-5ea3d90f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TLTXxwLqdIt50exRXEbmk

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 x402-api-key-url-pack-sub2api-codex-key-pack-500-5ea3d90f -d '<json body>'
```

Example prompt: Buy me a sub2api Codex key pack using buyer reference 'my-agent-001' so I can get an OpenAI-compatible API key and base URL with about $1 of quota.

## When to prefer this

Choose this endpoint when an agent needs to self-provision a small, disposable OpenAI-compatible API key and endpoint on-demand via x402 USDC micropayment, without requiring a pre-existing long-term API subscription. Ideal for ephemeral agent tasks, testing inference pipelines, or situations where per-use payment is preferable to managing API credentials manually.

## Known failure modes

- Payment not completed or x402 handshake fails — no key returned
- Invalid or missing buyer_reference query parameter — 400/422 error
- Upstream key quota exhausted — key issued but unusable
- x402 facilitator unreachable — payment cannot be processed
- Duplicate buyer_reference reuse may return same or error depending on server policy

## How this service works

Buy a low-cost readiness check first, then buy a small OpenAI-compatible URL + API key quota pack through x402, including GPT-5.6 Soul access when your upstream key allows it. The readiness check returns URL, model, request-shape, and next-pack contract details without exposing a key.

## Output

A JSON object containing: a (partially masked) API key, the full API key (sk-proj-...), base URL, chat completions URL, models URL, quota in USD (integer), receipt evidence object, and metadata fields (ok, tool, route, project, deterministic flag, echoed buyer_reference).

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "api-codex-key-pack-500",
  "input": {
   "buyer_reference": "buyer-001"
  },
  "route": "/v1/paid/sub2api-codex-key-pack-500",
  "result": {
   "apiKey": "sk-proj-...masked",
   "baseUrl": "https://sub2api.558686.xyz/v1",
   "quotaUsd": 1,
   "modelsUrl": "https://sub2api.558686.xyz/v1/models",
   "apiKeyMasked": "sk-proj-...masked",
   "receiptEvidence": {},
   "chatCompletionsUrl": "https://sub2api.558686.xyz/v1/chat/completions"
  },
  "project": "x402-key-url-tools",
  "deterministic": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-api-key-url-pack-sub2api-codex-key-pack-500-5ea3d90f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-key.558686.xyz](https://www.zero.xyz/host/x402-key.558686.xyz/llms.txt)
