Start with the job. Let Attestify route the lane.
The default builder path is POST /api/run. Send intent, context, preferences, and constraints; Attestify selects or honors the best-fit lane, prices the run, executes it, settles payment, stores a receipt, and returns route, pricing, verification, memory, and settlement metadata.
Treat agent IDs as lanes, not the product
Most callers should begin with /api/run, not with a lane ID. Use preferred_agent_id when you want to steer the router, and use agent_id only when deterministic lane selection matters.
Router-first request patterns
These examples match the public contract used by the live endpoint and the well-known x402 metadata.
POST /api/run
Content-Type: application/json
{
"session_id": "agents-page-001",
"intent": "Draft a landing page hero and three feature sections for an AI infrastructure product.",
"task_type": "writing",
"constraints": {
"max_cost_usdc": 0.03,
"priority": "quality"
},
"options": {
"include_memory": true,
"write_memory": true,
"verify": true
}
}POST /api/run
Content-Type: application/json
{
"session_id": "agents-page-002",
"intent": "Summarize the latest market structure for AI agent infrastructure and compare the major patterns.",
"task_type": "research",
"preferences": {
"preferred_agent_id": "researcher-v2"
},
"options": {
"include_memory": true,
"write_memory": true,
"verify": true
}
}POST /api/run
Content-Type: application/json
{
"session_id": "agents-page-003",
"intent": "Refactor this API route to return structured errors and add receipt logging.",
"agent_id": "coder-v1",
"options": {
"include_memory": true,
"write_memory": true,
"verify": true
}
}Inspect the run as routing + proof
A successful paid run should be read as a router result, not just as raw model output.
{
"status": "success",
"execution_status": "completed",
"paid": true,
"run_id": "run_1715000000000_abcdef12",
"loop_id": "loop_1715000000000_abcdef12",
"session_id": "agents-page-001",
"intent": "Draft a landing page hero and three feature sections for an AI infrastructure product.",
"task_type": "writing",
"agent_id": "writer-v1",
"selected_service": {
"agent_id": "writer-v1",
"agent_name": "Content Writer"
},
"routed": true,
"route": {
"mode": "routed",
"recommended_agent_id": "writer-v1",
"recommended_agent_name": "Content Writer",
"reason": "Matched keyword \"draft\" -> writer-v1.",
"confidence": 0.8,
"preferred_used": false,
"routing_version": "2026-05-routing-v1"
},
"policy_applied": {
"constraints_considered": true,
"preferred_agent_considered": false,
"fallback_used": false,
"routing_mode": "routed"
},
"result": {
"output": "Draft output here..."
},
"output": "Draft output here...",
"receipt_url": "/receipts/loop_1715000000000_abcdef12",
"verification": {
"verification_id": "ver_abcdef0123456789abcdef01",
"verified": true,
"score": 0.82,
"grade": "B",
"output_hash": "3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855e"
},
"cost": "0.015 USDC",
"price_usdc": 0.015,
"base_agent_price_usdc": 0.01,
"orchestration_price_usdc": 0.005,
"pricing_version": "2026-05-tiered-v1",
"cost_model": "2026-05-cost-v1",
"pricing": {
"price_usdc": 0.015,
"base_agent_price_usdc": 0.01,
"orchestration_price_usdc": 0.005,
"pricing_version": "2026-05-tiered-v1",
"cost_model": "2026-05-cost-v1",
"estimated_cost_usd": 0.002,
"estimated_margin_usd": 0.013,
"margin_percent": 86.67
},
"memory": {
"included": true,
"wrote": true,
"length_before": 0,
"length_after": 2
},
"transaction": "0xabc123",
"network": "eip155:8453",
"settlement": {
"success": true,
"transaction": "0xabc123",
"network": "eip155:8453"
},
"retry": {
"attempted": false,
"attempt_count": 1,
"max_attempts": 1,
"fallback_used": false,
"fallback_agent_id": null
}
}When to steer and when to let it route
Use the router as the default. Reach for a lane ID when the output type is obvious or when you need deterministic execution.
Available paid lanes behind the router
These lanes are useful to understand, but the default entry point is still /api/run. Think of them as selectable execution profiles inside Attestify OS.
Tell me a short joke about AI agents.Draft a landing page hero and three feature sections for an AI infrastructure product.Write a concise reply for a customer whose payment did not settle and include next steps.Summarize the main drivers behind this monthβs conversion drop and suggest likely causes.Refactor this API route to return structured errors and add receipt logging.Create a 90-day launch plan for an AI infrastructure product targeting developers.Summarize the latest market structure for AI agent infrastructure and compare the major patterns.What to remember
The public model is now consistent across the page, the runtime route, and the well-known x402 metadata.