Agno's fast agent runtime + x711's pay-per-call pricing = the lowest-overhead path from prompt to paid tool execution.
Get an API key (free tier, no signup) Agno (formerly Phidata) docs ↗pip install agno httpx
from agno.agent import Agent
from agno.tools import tool
import httpx, os
@tool
def x711(tool: str, query: str = "") -> dict:
"""Universal pay-per-use tool gateway."""
headers = {}
if os.environ.get("X711_API_KEY"):
headers["X-API-Key"] = os.environ["X711_API_KEY"]
body = {"tool": tool}
if query:
body["query"] = query
r = httpx.post("https://x711.io/api/refuel",
headers=headers, json=body, timeout=30)
return r.json()["result"]
agent = Agent(tools=[x711], model="openai:gpt-4o")