{"uid":"cap_R88XhD4jP2Rus3T_QgfdH","slug":"humanmirror-fx-cost-optimizer-25ebcc79","name":"HumanMirror FX Cost Optimizer","description":"HumanMirror est le control plane des agents autonomes : décision avant action, preuve après exécution, routage machine et gouvernance de flotte.","url":"https://humanmirror.fr/api/x402/automata-fx-cost-optimizer?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"context":{"type":"object","description":"Optional incident metadata. The paid decision call does not persist raw context."},"connectors":{"type":"array","items":{"type":"string"},"description":"Connector names declared as available; this is not proof of authorization."},"event_type":{"type":"string","description":"Optional observed event type for trigger matching."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"ok":true,"status":"verified_success","product":"HumanMirror FX Cost Optimizer"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HpHPsVYLHCP4pZEMYF5FA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes available connectors and event context to recommend the lowest-cost execution path for automating a workflow or tool call.","exampleAgentPrompt":"I have connectors 'stripe', 'openai', and 'sendgrid' available — can you run the FX cost optimizer to figure out the cheapest way to handle a payment_completed event given my current context?","exampleUseCases":[{"title":"Cheapest connector for payment event","prompt":"I've got 'stripe', 'plaid', and 'coinbase' available as connectors and I'm expecting a payment_received event — use the HumanMirror FX cost optimizer to tell me which path costs the least to execute."},{"title":"Optimize multi-connector agent pipeline","prompt":"My agent pipeline can use 'openai', 'anthropic', or 'cohere' — run the cost optimizer with a text_generation event type and let me know which connector is the most cost-efficient right now."},{"title":"Cut automation costs before deployment","prompt":"Before I deploy this automation, I want to optimize costs — I have connectors 'twilio', 'sendgrid', and 'mailgun' declared, and the trigger is an alert_triggered event. Can you run the FX cost optimizer and tell me the recommended path?"}],"resultDescription":"Returns a JSON object with an 'ok' boolean, a 'status' field indicating 'verified_success' or failure state, and a 'product' label confirming the HumanMirror FX Cost Optimizer processed the request — representing the recommended cost-optimized execution decision.","failureModes":["Invalid or missing 'input' object returns validation error","Unsupported HTTP method (only POST/PUT/PATCH allowed) causes rejection","Connector names not recognized may result in suboptimal or null recommendations","Missing body or wrong bodyType enum value causes schema validation failure","Payment not settled via x402 results in 402 response blocking execution"],"whenToPreferThis":"Choose this endpoint when an autonomous agent or workflow orchestrator has multiple connectors available and needs to determine the lowest-cost execution path before triggering an action. It is especially useful for event-driven pipelines where cost efficiency across FX or API calls matters and where the agent wants a verified, trust-stamped routing decision rather than a raw heuristic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:41:22.540Z","isFirstParty":false,"canonicalSlug":"humanmirror-fx-cost-optimizer-25ebcc79"}