Describe a goal and a budget; get back a concrete plan of real x402 calls that would accom
Describe a goal and a budget; get back a concrete plan of real x402 calls that would accomplish it — exact URLs, HTTP methods, request shapes, per-step prices from the merchants' own 402 challenges where we have verified them, alternates for every step, and a total you can check before committing. Only services that publish a callable request shape are planned; a step with no invokable candidate is returned as an explicit gap rather than a URL and a shrug. IT DOES NOT SPEND: this compiles the plan and stops, so you execute it with your own wallet on your own terms. It also does not claim the pipeline type-checks — roughly 5% of the x402 economy publishes schemas, so most step-to-step handoffs cannot be verified, and every edge says which it is.
Provider
animica.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x5D17c40FD6b119dc6006C4Ab3C20a917FCaB2aCD",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "9278",
"maxTimeoutSeconds": 60
},
{
"scheme": "exact",
"network": "animica:1",
"payTo": "anim1zqpsmegc0qcvzjfukm89xs0zeu3eqyyyel7kelehuszvwfarqypky2gr946ga",
"asset": "ANM",
"amount": "110199556541",
"maxTimeoutSeconds": 60
}
]Output schema
{
"animica": {
"catalog": "https://animica.dev/.well-known/x402",
"content_type": "application/json",
"currency": "USDC",
"description": "Describe a goal and a budget; get back a concrete plan of real x402 calls that would accomplish it — exact URLs, HTTP methods, request shapes, per-step prices from the merchants' own 402 challenges where we have verified them, alternates for every step, and a total you can check before committing. Only services that publish a callable request shape are planned; a step with no invokable candidate is returned as an explicit gap rather than a URL and a shrug. IT DOES NOT SPEND: this compiles the plan and stops, so you execute it with your own wallet on your own terms. It also does not claim the pipeline type-checks — roughly 5% of the x402 economy publishes schemas, so most step-to-step handoffs cannot be verified, and every edge says which it is.",
"documentation": "https://animica.dev/x402#product-solve_plan",
"free_trial": {
"endpoint": "POST /x402/solve/trial",
"limit_per_day": 2,
"note": "Same code and same response shape as the paid endpoint. No payment, no payment headers. Quota is per client per UTC day; when it is spent this endpoint says so and points back here.",
"price": "0",
"url": "https://animica.dev/x402/solve/trial"
},
"name": "x402 Solve — compile a goal into a priced plan of real API calls",
"openapi": "https://animica.dev/x402/openapi.json",
"price": "0.009278",
"product": "solve_plan",
"provider": "Animica",
"terms": {
"amount_atomic": "9278",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chain_id": 8453,
"network": "eip155:8453",
"pay_to": "0x5D17c40FD6b119dc6006C4Ab3C20a917FCaB2aCD",
"scheme": "exact"
},
"x402_version": 2
},
"bazaar": {
"discoverable": true,
"info": {
"input": {
"body": {
"goal": "summarise a public web page"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"properties": {
"body": {
"properties": {
"exclude_hosts": {
"description": "hostnames never to plan against",
"type": "array"
},
"goal": {
"description": "what you want accomplished, in plain words",
"type": "string"
},
"max_budget_usd": {
"description": "total you are willing to spend executing the plan (default 1.00)",
"type": "number"
},
"max_steps": {
"description": "cap the plan length, 1..6",
"type": "integer"
},
"require_verified": {
"description": "only plan services we have called ourselves and confirmed answer 402 (default false — it is a much smaller pool)",
"type": "boolean"
}
},
"required": [
"goal"
],
"type": "object"
},
"bodyType": {
"enum": [
"json"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"discovery": {
"discoverable": true,
"info": {
"input": {
"bodyFields": {
"exclude_hosts": {
"description": "hostnames never to plan against",
"required": false,
"type": "array"
},
"goal": {
"description": "what you want accomplished, in plain words",
"required": true,
"type": "string"
},
"max_budget_usd": {
"description": "total you are willing to spend executing the plan (default 1.00)",
"required": false,
"type": "number"
},
"max_steps": {
"description": "cap the plan length, 1..6",
"required": false,
"type": "integer"
},
"require_verified": {
"description": "only plan services we have called ourselves and confirmed answer 402 (default false — it is a much smaller pool)",
"required": false,
"type": "boolean"
}
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"description": "plan {steps[] {index, capability, why, depends_on, chosen, alternatives[], dataflow}, total_cost_usd, within_budget, steps_planned, steps_unplanned}, gaps[], execution {performed: false, how_to_run}, caveats[]",
"type": "json"
}
}
}
}Use it
curl
curl "https://animica.dev/x402/solve" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://animica.dev/x402/solve");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://animica.dev/x402/solve")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/7529.json, and this resource appears in /discovery/resources and /discovery/search.