# Lodestar Price Chat Completion API (x402)

> Lodestar Price Chat Completion API (x402) is a paid API for AI agents from x402-ai-peach.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Provides paid chat completions via the Lodestar model through x402 micropayment-gated inference, accepting a messages array and returning a choice-based response.

## Facts

- Endpoint: POST https://x402-ai-peach.vercel.app/api/lodestar-price
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lodestar-price-chat-completion-api-x402-52048925
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Of4G9bOsJl9Kp2Klu3Vxh

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 lodestar-price-chat-completion-api-x402-52048925 -d '<json body>'
```

Example prompt: Ask the Lodestar model this: 'Summarize the key differences between transformer and recurrent neural networks in 3 bullet points' — use up to 300 tokens and a temperature of 0.7.

## When to prefer this

Choose this endpoint when you need pay-per-use AI chat completions without a traditional API subscription, especially in agentic or automated contexts where x402 USDC micropayments are already integrated. Ideal for agents that need LLM inference on demand without managing API key billing accounts. Prefer this over OpenAI or Anthropic direct APIs when you want crypto-native, per-call billing via the x402 protocol.

## Known failure modes

- Payment not included or rejected by x402 facilitator — 402 Payment Required response
- messages array missing or empty — 400 Bad Request
- max_tokens exceeds model context limit — truncated response or error
- Temperature out of valid range — validation error
- Model unavailable or overloaded — 503 Service Unavailable
- Streaming requested but client does not handle chunked responses — incomplete output

## How this service works

Paid AI API endpoints via x402 micropayments

## Output

Returns a JSON object with a response ID and a choices array, each choice containing an assistant message with a role and content string — the model's generated text reply to the input messages.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "messages"
 ],
 "properties": {
  "stream": {
   "type": "boolean",
   "description": "Stream response"
  },
  "messages": {
   "type": "array",
   "description": "Chat messages array"
  },
  "max_tokens": {
   "type": "integer",
   "description": "Max tokens"
  },
  "temperature": {
   "type": "number",
   "description": "Temperature"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string",
   "description": "Response ID"
  },
  "choices": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "message": {
      "type": "object",
      "properties": {
       "role": {
        "type": "string"
       },
       "content": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lodestar-price-chat-completion-api-x402-52048925/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-ai-peach.vercel.app](https://www.zero.xyz/host/x402-ai-peach.vercel.app/llms.txt)
