# Aayat AI Gas Fees

> Aayat AI Gas Fees is a paid API for AI agents from aayatai.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Returns real-time gas fees, congestion levels, and transaction cost estimates (transfer, token transfer, swap) across major EVM and non-EVM chains

## Facts

- Endpoint: GET https://aayatai.com/gas?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aayat-ai-gas-fees-24f87bb1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bAbJNEYA1r4ds6WXWzmFP

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 aayat-ai-gas-fees-24f87bb1
```

Example prompt: What are the current gas fees on Base, Ethereum, and Arbitrum — which one is cheapest for doing a swap right now, and is congestion high anywhere?

## When to prefer this

Use this endpoint when an AI agent needs real-time, multi-chain gas fee data to make routing decisions (e.g. picking the cheapest chain for a swap or transfer), to gate a transaction on low congestion, or to estimate transaction costs in USD before execution. Prefer this over manually querying RPC nodes when you need normalized, cross-chain fee comparisons with trend and congestion signals in a single call. Pay-per-use with no API key makes it ideal for autonomous agents.

## Known failure modes

- Chain data source unavailable — chain appears in 'unavailable' array with no cost data
- Invalid chain name in query parameter returns empty or partial results
- Public RPC node timeout causes missing data for one or more chains
- Payment failure via x402 if USDC balance is insufficient

## How this service works

Live network fees on Ethereum, Base, Arbitrum, Optimism, Polygon, BNB, Avalanche, Solana and Bitcoin: slow/standard/fast fee rates, congestion and trend, and the USD cost of a send, token transfer and swap on each, plus the cheapest chain now. Pick chains with chains (e.g. base,solana); all by default.

## Output

A JSON object containing per-chain data including gas price, base fee, slow/standard/fast speed tiers in the chain's native fee unit, estimated USD and native-token costs for common actions (ETH transfer, token transfer, swap), congestion level (low/normal/high), price trend (rising/falling/steady), and native token USD price. Also includes a 'cheapest' summary object identifying the lowest-cost chain for transfers and swaps, a timestamp, and a list of any chains whose data was unavailable.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "chains": {
       "type": "string",
       "maxLength": 120,
       "description": "Comma-separated chains (default all): ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, solana, bitcoin."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "chains",
      "cheapest"
     ],
     "properties": {
      "chains": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "unit": {
          "type": "string"
         },
         "chain": {
          "type": "string"
         },
         "costs": {
          "type": "object",
          "description": "Cost of common actions at standard speed: {native, usd}."
         },
         "trend": {
          "enum": [
           "rising",
           "falling",
           "steady"
          ],
          "type": "string"
         },
         "speeds": {
          "type": "object",
          "description": "slow, standard, fast fee rates in `unit`."
         },
         "symbol": {
          "type": "string"
         },
         "baseFee": {
          "type": [
           "number",
           "null"
          ]
         },
         "nativeUsd": {
          "type": [
           "number",
           "null"
          ]
         },
         "congestion": {
          "enum": [
           "low",
           "normal",
           "high"
          ],
          "type": "string"
         }
        }
       }
      },
      "source": {
       "type": "string"
      },
      "cheapest": {
       "type": "object",
       "description": "Cheapest chain now for a transfer and a swap (USD)."
      },
      "checkedAt": {
       "type": "string"
      },
      "unavailable": {
       "type": "array",
       "description": "Chains whose fee source did not answer."
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chains": [
   {
    "note": "Layer-2 costs exclude the small L1 data fee.",
    "unit": "gwei",
    "chain": "base",
    "costs": {
     "swap": {
      "usd": 0.0029,
      "native": 0.0000011
     },
     "transfer": {
      "usd": 0.00034,
      "native": 1.28e-7
     },
     "tokenTransfer": {
      "usd": 0.00105,
      "native": 3.97e-7
     }
    },
    "trend": "steady",
    "speeds": {
     "fast": 0.0072,
     "slow": 0.0051,
     "standard": 0.0061
    },
    "symbol": "ETH",
    "baseFee": 0.005,
    "gasPrice": 0.006,
    "nativeUsd": 2650,
    "congestion": "low"
   }
  ],
  "source": "Public RPC nodes, mempool.space, DexScreener prices",
  "cheapest": {
   "swap": {
    "usd": 0.0029,
    "chain": "base"
   },
   "transfer": {
    "usd": 0.00034,
    "chain": "base"
   }
  },
  "checkedAt": "2026-09-28T12:00:00.000Z",
  "unavailable": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-gas-fees-24f87bb1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aayatai.com](https://www.zero.xyz/host/aayatai.com/llms.txt)
