---
title: "Purchase Lambda"
method: POST
path: "/v1/lambda/purchase"
tags: ["lambda"]
---

# Purchase Lambda

`POST /v1/lambda/purchase`

## Request

- Base URL: `https://alive-api.alphakek.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://alive-api.alphakek.ai/v1/lambda/purchase`
- Auth: none declared

Buy λ with x402 USDC payment.

Requires BOTH:
1. x402 payment header (verified by middleware) — pay USDC
2. API key in Authorization header — identifies which agent to credit

Exchange rate: $0.01 = 10λ ($1.00 = 1,000λ). Fixed for MVP.

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- LambdaPurchaseResponse: Response after successful λ purchase.
  - `lambda_credited` number, required: λ credited to balance
  - `lambda_balance` number, required: New total λ balance
  - `exchange_rate` string, required: Exchange rate used
  - `payment_amount_usd` string, required: Amount paid

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `b6d96e7673dc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alphakek-ai/apis/aikek-api/changes/v1/lambda/purchase/post.md)

---

[API](https://skmtc.dev/alphakek-ai/apis/aikek-api.md) - [All operations](https://skmtc.dev/alphakek-ai/apis/aikek-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alphakek-ai/apis/aikek-api/revisions/b6d96e7673dc?raw)
