# x402engine GPT-6 Luna LLM API

> x402engine GPT-6 Luna LLM API is a paid API for AI agents from x402engine.app, paid per call via x402, $0.003144/call, status unknown (last checked 2026-10-12).

Provides pay-per-call access to OpenAI's GPT-6 Luna model for chat, classification, and lightweight agentic tasks via HTTP 402 micropayments

## Facts

- Endpoint: POST https://x402engine.app/api/llm/gpt-6-luna?utm_source=zero.xyz
- Price: $0.003144/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402engine-gpt-6-luna-llm-api-9ff64cd0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FTjxrRA1pcTi1gjsiM2Ou

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 x402engine-gpt-6-luna-llm-api-9ff64cd0 -d '<json body>'
```

Example prompt: Send these messages to GPT-6 Luna and get a response: system says 'You are a helpful assistant', user asks 'What are three creative names for a coffee shop that focuses on sustainability?'

## When to prefer this

Choose this endpoint when you need fast, cost-efficient LLM inference at scale with pay-per-call pricing (no subscription required), particularly for chat, text classification, or lightweight agentic tool-calling tasks. Prefer it over heavier GPT-6 Sol-tier models when latency and per-call cost are priorities. Best suited for high-volume agent pipelines where you want OpenAI-compatible API responses without managing API keys or subscriptions.

## Known failure modes

- Payment not settled — 402 response if USDC micropayment fails or is insufficient
- Invalid messages array — missing required 'role' or 'content'/'tool_calls' fields returns validation error
- Unsupported model capability — requesting features not supported by GPT-6 Luna returns error
- Stream requested but client doesn't handle SSE — partial or broken response
- Tool call format malformed — incorrect function definition schema causes rejection
- Rate limiting or overload — service may return 429 or 503 during high demand

## How this service works

x402engine — GPT-6 Luna is the fast, cost-efficient model in OpenAI's GPT-6 series, positioned below GPT-6 Sol. It is suited for high-volume and latency-sensitive workloads such as chat, classification, and lightweight agentic...

## Output

Returns an OpenAI-compatible chat completion JSON object with the model name ('openai/gpt-6-luna'), a choices array containing the assistant message with role and content, a finish_reason (e.g. 'stop'), and a top-level 'content' field with the response text. Supports streaming (SSE) and tool call responses.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "messages"
     ],
     "properties": {
      "seed": {
       "type": "integer",
       "description": "Model-supported seed; see /docs/llm-capabilities.md."
      },
      "tools": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "function"
        ],
        "properties": {
         "type": {
          "enum": [
           "function"
          ],
          "type": "string"
         },
         "function": {
          "type": "object",
          "properties": {
           "name": {
            "type": "string"
           },
           "strict": {
            "type": "boolean"
           },
           "parameters": {
            "type": "object"
           },
           "description": {
            "type": "string"
           }
          }
         }
        }
       },
       "description": "Client-executed function definitions; return results using role=tool and tool_call_id."
      },
      "stream": {
       "type": "boolean",
       "description": "Return live OpenAI-compatible SSE after payment settlement."
      },
      "plugins": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "pdf"
        ],
        "properties": {
         "id": {
          "enum": [
           "file-parser"
          ],
          "type": "string"
         },
         "pdf": {
          "type": "object",
          "properties": {
           "engine": {
            "enum": [
             "native"
            ],
            "type": "string"
           }
          }
         }
        }
       },
       "description": "Optional native PDF parser only; automatically enabled for file inputs."
      },
      "messages": {
       "type": "array",
       "items": {
        "type": "object",
        "anyOf": [
         {
          "required": [
           "content"
          ]
         },
         {
          "required": [
           "tool_calls"
          ]
         }
        ],
        "required": [
         "role"
        ],
        "properties": {
         "name": {
          "type": "string"
         },
         "role": {
          "enum": [
           "system",
   
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "openai/gpt-6-luna",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello!"
    },
    "finish_reason": "stop"
   }
  ],
  "content": "Hello!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402engine-gpt-6-luna-llm-api-9ff64cd0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402engine.app](https://www.zero.xyz/host/x402engine.app/llms.txt)
