Developer Tools

Vercel AI Gateway

Access Vercel AI Gateway's model discovery, inference, generation, and usage APIs through a unified AI model gateway.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Count Message Tokens

    Estimate input tokens for Anthropic-format messages, system content, and tools before sending a model request through Vercel AI Gateway.

  • Get Credit Balance

    Return the connected team's remaining AI Gateway credit balance and lifetime credit usage in USD.

  • Get Generation

    Look up cost, token usage, provider routing, latency, and finish details for one completed Vercel AI Gateway generation.

  • Get Model

    Return detailed capabilities, modalities, limits, tags, and pricing for one exact Gateway model ID.

  • Get Model Endpoints

    Compare provider endpoints serving one Vercel AI Gateway model, including limits, pricing, caching, availability, throughput, and latency.

  • Get Spend Report

    Query aggregated Vercel AI Gateway spend and token usage. This endpoint requires a Pro or Enterprise plan, and each query costs $5 per 1,000 queries.

  • List Model Catalog

    List AI Gateway model-to-provider routes and capability tags, with bounded local filtering by model text, provider, or tag.

  • List TypeSafe Models

    List evaluation models available through AI Gateway's TypeSafe-compatible API, including each accepted model name, description, and release date.

  • Search Models

    Search the AI Gateway model catalog by text, model type, and tags, returning capability and pricing metadata for matching models.