# MapleAI GPT API — Pay-Per-Request (x402)

> MapleAI GPT API — Pay-Per-Request (x402) is a paid API for AI agents from base.mapleai.shop, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-01).

Sends a text prompt to one of four GPT models (GPT-5.6 Sol, GPT-5.6 Terra, GPT-6 Luna, GPT-6 Sol) and returns a completion, billed at $0.01 USDC per call via x402 on Base.

## Facts

- Endpoint: POST https://base.mapleai.shop/v1/responses?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mapleai-gpt-api-pay-per-request-x402-e9d90fe9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CXLPjuK1wbyj-nZedkidi

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 mapleai-gpt-api-pay-per-request-x402-e9d90fe9 -d '<json body>'
```

Example prompt: Ask MapleAI's GPT-6 Luna model to summarize the following paragraph in three bullet points, using up to 300 output tokens: 'Quantum computing leverages quantum mechanical phenomena such as superposition and entanglement to perform computations that classical computers cannot efficiently handle.'

## When to prefer this

Choose this endpoint when you need pay-per-request access to GPT-class language models without committing to a subscription, especially when operating in a crypto-native or x402-enabled environment on Base. It is ideal for agents that make sporadic or unpredictable LLM calls and want to pay only per inference in USDC. Prefer it over standard OpenAI when you need x402 micropayment compatibility or want to access GPT-5.6 or GPT-6 variants through an OpenAI-compatible interface.

## Known failure modes

- Insufficient USDC balance or failed x402 payment results in 402 Payment Required
- Invalid or unrecognized model ID returns an error — must use a model ID from GET /v1/models
- Prompt exceeds model context window or max_output_tokens is set too low, truncating or erroring
- Network timeout if the model takes too long to respond
- Malformed request body (missing required 'input' field) returns a 400 Bad Request

## How this service works

4 GPT models, 7 image models, and Jev structured decisions. Pay per request in USDC on Base with x402.

## Output

Returns a JSON object containing a response ID, object type, status field (e.g. 'completed'), an output array, and an 'output_text' string containing the model's generated text response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string"
  },
  "model": {
   "type": "string",
   "description": "Model ID from GET /v1/models"
  },
  "max_output_tokens": {
   "type": "integer",
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "resp_example",
  "object": "response",
  "output": [],
  "status": "completed",
  "output_text": "Hello!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mapleai-gpt-api-pay-per-request-x402-e9d90fe9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base.mapleai.shop](https://www.zero.xyz/host/base.mapleai.shop/llms.txt)
