# MapleAI Autonomous Agent Execution

> MapleAI Autonomous Agent Execution is a paid API for AI agents from base.mapleai.shop, paid per call via x402, $0.0145/call, status unknown (last checked 2026-10-02).

Executes a multi-step autonomous agent that reasons and uses tools (calculator, URL fetch) to complete a natural language task, billed per call plus per reasoning step

## Facts

- Endpoint: POST https://base.mapleai.shop/v1/agents/execute?utm_source=zero.xyz
- Price: $0.0145/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mapleai-autonomous-agent-execution-41bb0883
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2p5P5QNF7_W11FhAJMB0i

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-autonomous-agent-execution-41bb0883 -d '<json body>'
```

Example prompt: Use the agents/oss-20b model to autonomously figure out the current USD to EUR exchange rate and calculate how much €500 converts to in USD — let it fetch URLs and use the calculator, with up to 10 reasoning steps.

## When to prefer this

Choose this endpoint when a task requires multiple sequential reasoning steps, tool calls (web fetching or calculation), and autonomous decision-making rather than a single-shot LLM completion. It is ideal when you cannot predict ahead of time exactly how many steps or which tools will be needed. Prefer a simple chat completion endpoint for tasks that require only one model call with no tool use.

## Known failure modes

- max_steps exceeded — agent hits the step ceiling without completing the task
- tool failure — fetch_url returns an unreachable URL or the calculator receives malformed input
- model unavailable — agents/oss-20b engine is temporarily offline or overloaded
- task too ambiguous — agent cannot determine a concrete action plan from the natural language task
- payment failure — x402 USDC payment is rejected or insufficient
- timeout — long-running tasks exceed server time limits

## 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 the final answer or output produced by the agent after completing its reasoning and tool-use steps, along with metadata about how many steps were taken and what tools were invoked during execution.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "task": {
   "type": "string",
   "description": "Natural language task for the agent"
  },
  "model": {
   "enum": [
    "agents/oss-20b",
    "agents/gpt-6-sol"
   ],
   "type": "string",
   "description": "Execution engine: cheap oss-20b or premium gpt-6-sol"
  },
  "tools": {
   "type": "array",
   "items": {
    "enum": [
     "calculator",
     "fetch_url",
     "web_search",
     "data_analysis",
     "code_exec"
    ],
    "type": "string"
   },
   "description": "Allowed tools, defaults to the enabled set; code_exec runs sandboxed python/javascript/typescript, $0.002 per call, max 3 per task"
  },
  "stream": {
   "type": "boolean",
   "default": false,
   "description": "When true, send SSE events: open, step per completed step, done with the full payload"
  },
  "context": {
   "type": "string",
   "description": "Additional data or constraints"
  },
  "max_steps": {
   "type": "integer",
   "default": 8,
   "maximum": 20,
   "minimum": 1,
   "description": "Charged ceiling of reasoning/tool steps"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "agents/oss-20b",
  "steps": [
   {
    "n": 1,
    "action": "tool",
    "thought": "Need the population",
    "tool_call": {
     "args": {
      "url": "https://example.com/france"
     },
     "name": "fetch_url"
    },
    "tool_result": "68 million"
   }
  ],
  "usage": {
   "charge": {
    "base_usd": 0.002,
    "step_usd": 0.0005,
    "charged_ceiling_usd": 0.005,
    "steps_charged_ceiling": 6
   },
   "cost_usd": 0,
   "input_tokens": 4100,
   "output_tokens": 260,
   "tools_invoked": 1,
   "steps_executed": 2
  },
  "object": "agent.execution",
  "output": {
   "result": "About 9.7 million",
   "sources": [
    {
     "url": "https://example.com/france"
    }
   ]
  },
  "status": "completed",
  "steps_executed": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mapleai-autonomous-agent-execution-41bb0883/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)
