# x402 API Key + URL Pack Purchase (api-codex-key-pack-1)

> x402 API Key + URL Pack Purchase (api-codex-key-pack-1) is a paid API for AI agents from x402-key.558686.xyz, paid per call via x402, $0.12/call, status down (last checked 2026-09-15).

Purchases a small OpenAI-compatible API key + base URL quota pack via x402 micropayment, returning credentials and endpoint URLs for downstream LLM calls

## Facts

- Endpoint: POST https://x402-key.558686.xyz/v1/paid/api-codex-key-pack-1
- Price: $0.12/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-api-key-url-pack-purchase-api-codex-key-pack-1-2b1e5619
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__DSsru9h-tLRW0vHQud1P

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-purchase-api-codex-key-pack-1-2b1e5619 -d '<json body>'
```

Example prompt: I need a fresh OpenAI-compatible API key and base URL with $1 of quota — can you buy me the api-codex-key-pack-1 pack using buyer reference 'buyer-001' and give me the credentials?

## When to prefer this

Choose this endpoint when you need to programmatically acquire a small, ready-to-use OpenAI-compatible API key and base URL on a pay-per-pack basis via x402 USDC micropayment, without managing long-term subscriptions. It is particularly suited for ephemeral agent pipelines, one-off tasks, or crypto-native workflows where paying per use in stablecoin is preferred over monthly billing.

## Known failure modes

- Payment not received or x402 payment verification fails — returns 402 or error response
- Invalid or missing buyer_reference query parameter — request rejected
- Upstream key quota exhausted — key returned but usable quota may be zero
- Network timeout reaching sub2api.558686.xyz — downstream credential unusable
- Repeated purchase with same buyer_reference may not guarantee idempotency — duplicate charges possible

## 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 masked and full API key (sk-proj-... format), base URL and chat completions URL pointing to sub2api.558686.xyz, models URL, quota in USD, receipt evidence for the x402 payment, a next-purchase contract string for future top-ups, and metadata about the tool and route used.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "api-codex-key-pack-1",
  "input": {
   "buyer_reference": "buyer-001"
  },
  "route": "/v1/paid/api-codex-key-pack-1",
  "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-purchase-api-codex-key-pack-1-2b1e5619/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)
