# x402 Agent Task Executor

> x402 Agent Task Executor is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-20).

Accepts an objective and budget, executes an autonomous agent task, and returns a verified result assembled via pay-per-call x402 micro-payments.

## Facts

- Endpoint: GET https://api.x-402.online/v1/agent/task?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-task-executor-2e798a1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HBvYiiwpAv0X7kBhs_wls

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 x402-agent-task-executor-2e798a1e
```

Example prompt: Run an agent task to find the current ETH price and summarize the top 3 recent news headlines about Ethereum — my budget is $0.10 USDC.

## When to prefer this

Choose this endpoint when you need an autonomous agent to complete a goal-oriented task within a defined USDC budget, especially when the task requires chaining multiple data lookups or API calls. Prefer it over single-purpose endpoints when the objective involves multiple steps, verification of results, or when you want budget-bounded execution without managing individual API calls yourself. Best suited for agents that need hands-off task delegation with a verified outcome.

## Known failure modes

- Insufficient budget to complete the task — agent halts and returns a budget-exceeded error
- Malformed or missing 'input' object — returns 400 validation error
- Task objective too vague or unsupported — agent may return empty or partial results
- x402 payment failure (insufficient USDC balance or allowance) — returns 402 Payment Required
- Network or downstream API failure during sub-task execution — partial result or timeout returned

## How this service works

Give an objective and a budget; get a verified result assemb…

## Output

A verified, assembled result corresponding to the submitted objective — the agent executes sub-tasks (potentially chaining multiple x402 pay-per-call APIs), aggregates outputs, and returns a structured or textual answer confirming task completion and findings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-task-executor-2e798a1e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
