KeydexAI

/v1/tools

Tools

Each tool your agent can call through Keydex AI: what it does and where its data comes from. Read tools run here without a key.

—

Stock tokens

stock_quote

Price, 24h change and pool depth for one stock token or up to 20 at once.

Pool prices from the stock token pools on Solana, cached for 15 s.Pool prices from the stock token pools on Solana, cached for 15 s. Bid and ask from Solana’s API, cached for 15 s.

stock_portfolio

Every stock token and ETF in a wallet, valued in dollars, plus its SOL.

Balances read from Solana in one call, priced from the pools. Cached for 10 s per wallet.Balances read from Solana in one call, priced from the pools, or from Solana’s API when a token has no pool. Dividends and splits from Solana’s API, cached for 1 h.

stock_moversNew in 1.6

Today’s biggest movers among stock tokens.

Ranked by the pool’s 24h change, from the stock token pools, cached for 15 s.Ranked by the pool’s 24h change, or by dollars minted and burned today and the place in the day’s range, from Solana’s API. Cached for 15 s.

stock_eventsNew in 1.6

Upcoming dividends and splits for stock tokens.

Dividends and splits from Solana’s API, cached for 1 h.

Trades

build_trade

Builds an unsigned buy or sale of a stock token for SOL. Your agent signs it before the quote expires.

Routes and quotes from LI.FI, tested on the network before the reply. A quote is cached for 30 s.

Needs a keyConnect

Funding

fund_agent

Builds a transfer from any of 15 networks to your agent’s wallet, arriving as SOL. The payer signs it.

Routes and quotes from Relay.

Needs a keyConnect

Your key

my_keyNew in 1.6

Shows what your key has left today and when it resets.

Read from your key when you ask. Without a key: the free read calls left this hour.

Morpho

morpho_ratesNew in 1.7

Rates of Morpho USDG vaults and of loans against stock tokens.

Morpho’s public API, cached for 2 min. Rates change; the numbers are a snapshot.

morpho_loopNew in 1.7

Works out a year of borrowing USDG against a stock token and depositing it in a vault. A calculation only.

Morpho rates, cached for 2 min.

build_morpho_depositNew in 1.7

Builds an unsigned deposit to a Morpho USDG vault, or a withdrawal.

Calls for a Morpho vault, tested on the network before the reply. Your agent signs them.

Needs a keyConnect

Models

list_modelsNew in 1.8

Lists the models your key can call, with prices and what each supports.

Read from Keydex AI’s cached model catalog. Free, and it calls no model.

model_detailNew in 1.8

One model’s prices, context size and the cost of a typical call.

Read from the same cached catalog, with a cost estimate for a typical call. Free.

ask_modelNew in 1.8

Asks another model one question and returns its answer. Uses your daily allowance.

Sent through the same gateway as /v1/chat/completions, at the model’s listed price.

Needs a keyConnect

Wallet and chain

stock_approvalsNew in 1.9

Lists a wallet’s open token approvals, unlimited ones first.

Token approvals read from Solana in batches, against the spenders Keydex AI knows. Cached for 30 s per wallet.

chain_statusNew in 1.9

Latest block, block time, gas price and what a transfer costs on Solana.

Read from Solana: the latest block, the average block time over 1000 blocks and the gas price. Cached for 10 s.

explain_txNew in 1.9

Breaks a Solana transaction into its function, fee, transfers and approvals.

Read from Solana. Function names from Keydex AI’s own table, or from the open openchain.xyz signature database, cached for a day.

build_revokeNew in 1.9

Builds an unsigned call that closes a token approval.

A call that sets one approval to zero, tested on the network before the reply. Your agent signs it.

Needs a keyConnect