# ALFRED x402 LoRA Flux Model Training

> ALFRED x402 LoRA Flux Model Training is a paid API for AI agents from x402.wallace.us, paid per call via x402, $100/call, status unknown (last checked 2026-09-13).

Train a custom LoRA fine-tune on the FLUX image model using provided training images and an optional trigger word, paid via Lightning/x402 protocol.

## Facts

- Endpoint: POST https://x402.wallace.us/x402/lora-train-flux
- Price: $100/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alfred-x402-lora-flux-model-training-b677d358
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4BU7IgP5eZLRxohG5jIdV

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 alfred-x402-lora-flux-model-training-b677d358 -d '<json body>'
```

Example prompt: Train a custom FLUX LoRA model using these 30 images of my product: [list of URLs], and set the trigger word to 'myprod' — I confirm all images are content I have rights to use.

## When to prefer this

Choose this endpoint when you need a self-hosted, Lightning-native LoRA fine-tuning service for FLUX with micropayment-per-job billing and no subscription requirement. Prefer this over cloud ML platforms when you want pay-per-use pricing settled via Bitcoin Lightning, privacy of a self-hosted service, and direct control over the training pipeline without managing your own GPU infrastructure.

## Known failure modes

- Payment not completed — server returns HTTP 402 with Lightning invoice; agent must pay and retry with X-Payment-Hash header
- content_attestation not set to true — request rejected due to missing consent field
- Fewer than 15 or more than 100 training image URLs provided — validation error
- Invalid or unreachable image URLs — training job fails during image fetch
- trigger_word outside 3-24 character range — parameter validation error
- Training job timeout or infrastructure failure on the self-hosted server — generic 500 error

## How this service works

Self-hosted personal-assistant paid tools via Lightning. Uses x402-shaped protocol (L402 lineage): HTTP 402 with a Lightning invoice in the response body + WWW-Authenticate header, retry with X-Payment-Hash: <hex> once paid. Results cached per payment_hash so legitimate retries don't cost twice.

## Output

Returns a JSON object containing training job status and, upon completion, details about the trained LoRA model (e.g., model ID, checkpoint reference, or download link). Results are cached per payment hash so retrying after a paid invoice does not incur a second charge.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "trigger_word": {
   "type": "string",
   "description": "(optional, 3-24 chars)"
  },
  "training_images": {
   "type": "string",
   "description": "(15-100 http(s) URLs)"
  },
  "content_attestation": {
   "type": "string",
   "description": "(must be true)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alfred-x402-lora-flux-model-training-b677d358/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.wallace.us](https://www.zero.xyz/host/x402.wallace.us/llms.txt)
