# DreamWidget Plan Purchase

> DreamWidget Plan Purchase is a paid API for AI agents from dreamwidget.com, paid per call via x402, $20/call, status unknown (last checked 2026-09-14).

Purchase a DreamWidget subscription plan (logo showcase or video showcase widget) for a given term, receiving an API key and plan details in return

## Facts

- Endpoint: POST https://dreamwidget.com/api/v1/plan
- Price: $20/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dreamwidget-plan-purchase-77bf7b60
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3KD6Q5YODjcTquDNJLrqx

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 dreamwidget-plan-purchase-77bf7b60 -d '<json body>'
```

Example prompt: Sign me up for the DreamWidget Pro plan for one month using my email dev@mycompany.com — pay with USDC and get me the API key.

## When to prefer this

Use this endpoint when an agent or user needs to programmatically purchase or renew a DreamWidget subscription plan using USDC on Base, especially when automating account provisioning or obtaining an API key without going through a web UI. Prefer this over manual sign-up flows when the buyer's email and desired plan tier are already known.

## Known failure modes

- Invalid or missing plan enum value — returns validation error
- Invalid or missing term enum value — returns validation error
- Email address malformed — returns validation error
- Payment insufficient or failed on-chain — transaction not confirmed, plan not granted
- Existing account email conflict if account requires sign-in to issue key — key may not be returned automatically
- Network or CDN unavailability causing delayed response

## How this service works

A Logo Showcase that moves and a Video Showcase for YouTube, Vimeo, Twitch and TikTok, both embeddable on any site with one line of code. Loaded from a CDN, no view limits, no plugin.

## Output

Returns a JSON object confirming payment (asset, amount, network, transaction hash), the activated plan name, billing term, expiry timestamp, a live API key (dw_live_…), and a granted:true flag. New accounts receive a freshly created API key; existing accounts receive an updated plan and can generate a key from their dashboard.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "plan": {
   "enum": [
    "single",
    "basic",
    "pro",
    "studio"
   ],
   "type": "string",
   "description": "The plan to buy. Single $6, Basic $11, Pro $20, Studio $37 a month; a year is $59, $99, $169, $289."
  },
  "term": {
   "enum": [
    "month",
    "year"
   ],
   "type": "string",
   "description": "How long the plan runs. It does not renew on its own."
  },
  "email": {
   "type": "string",
   "description": "Needed when paying without an API key: the account the plan goes on. A new email gets a new account and an API key in the answer; an existing account gets the plan and signs in to make a key."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "paid": {
   "asset": "USDC on Base",
   "amount": "20 USDC",
   "network": "eip155:8453",
   "transaction": "0x…"
  },
  "plan": "pro",
  "term": "month",
  "until": "2026-10-13T22:00:00.000Z",
  "apiKey": "dw_live_…",
  "granted": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dreamwidget-plan-purchase-77bf7b60/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dreamwidget.com](https://www.zero.xyz/host/dreamwidget.com/llms.txt)
