Agent tools to build AI apps

Give your agent models, web search, a browser, meeting bots, and a database, all from one Telnyx API key.

$20 Your promo code appears on screen right after you sign up.

Authorization: Bearer $TELNYX_API_KEY
  • Inference
    POST /v2/ai/openai/chat/completions
  • Web Search
    POST /v2/web_search
  • Page contents
    POST /v2/web_search/contents
  • Research
    POST /v2/web_search/research
  • Agent BrowserBeta
    POST /v2/browser_sessions
  • Meeting APIBeta
    POST /v2/meeting_sessions
  • SQLDBBeta
    POST /v2/storage/sqldbs
  • AI Gateway
    /v2/llm_token_gateway
Every path above sits on api.telnyx.com and takes the same Bearer key.

Search the web and answer with a model in one script

  1. Web Search finds the pages that answer the question.
  2. The contents endpoint returns those pages as clean Markdown.
  3. A model on Telnyx Inference writes the answer, through the OpenAI SDK you already use.

agent.py

import os, requests
from openai import OpenAI

KEY = os.environ["TELNYX_API_KEY"]  # one key for every call below
API = "https://api.telnyx.com/v2"
AUTH = {"Authorization": f"Bearer {KEY}"}

# 1. Search the live web
hits = requests.post(
    f"{API}/web_search",
    headers=AUTH,
    json={"query": "open-weight model benchmarks", "count": 3},
).json()
urls = [r["url"] for r in hits["data"]["results"]["web"]]

# 2. Pull clean Markdown for each result (up to 20 URLs per call)
pages = requests.post(
    f"{API}/web_search/contents",
    headers=AUTH,
    json={"urls": urls, "formats": ["markdown"]},
).json()
docs = "\n\n".join(
    p.get("markdown", "") for p in pages["data"]["results"]
)

# 3. Answer with an open-weight model on Telnyx GPUs
llm = OpenAI(api_key=KEY, base_url=f"{API}/ai/openai")
reply = llm.chat.completions.create(
    model="zai-org/GLM-5.3-Flash",
    messages=[
        {
            "role": "user",
            "content": f"Summarize with sources:\n{docs}",
        }
    ],
)
print(reply.choices[0].message.content)

browser.sh

# Open an isolated Chromium session that can only reach example.com
curl -X POST https://api.telnyx.com/v2/browser_sessions \
  -H "Authorization: Bearer $TELNYX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"policy":{"allowed_domains":["example.com"]}}'

# Once the session status is "ready", navigate
curl -X POST \
  "https://api.telnyx.com/v2/browser_sessions/$SESSION_ID/actions"\
"?wait_seconds=25" \
  -H "Authorization: Bearer $TELNYX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"navigate","url":"https://example.com/"}'

# Observe the page to get element refs, then click or fill by ref
curl -X POST \
  "https://api.telnyx.com/v2/browser_sessions/$SESSION_ID/actions"\
"?wait_seconds=25" \
  -H "Authorization: Bearer $TELNYX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"observe"}'

meeting.sh

# Send a notetaker into a Google Meet, Zoom, or Teams call
curl -X POST https://api.telnyx.com/v2/meeting_sessions \
  -H "Authorization: Bearer $TELNYX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "meeting_url": "https://meet.google.com/abc-defg-hij",
    "idempotency_key": "standup-2026-11-11",
    "bot_name": "Notetaker",
    "summarize_on_end": true
  }'

# Long-poll the live transcript while the meeting runs
curl -H "Authorization: Bearer $TELNYX_API_KEY" \
  "https://api.telnyx.com/v2/meeting_sessions/$MEETING_ID/transcript"\
"?after=0&wait_seconds=20"

# Read the summary when it ends
curl -H "Authorization: Bearer $TELNYX_API_KEY" \
  "https://api.telnyx.com/v2/meeting_sessions/$MEETING_ID/artifacts"

Pick an API and follow its quickstart

Each API works on its own and has a quickstart. They also chain: Search finds a page, Browser acts on it, Inference writes the answer, and SQLDB stores the result.

  • https://api.telnyx.com/v2/ai/openai

    Inference

    Run open-weight models on Telnyx GPUs. Your OpenAI SDK code works with a new base URL.

  • https://llm.telnyx.com/v1

    AI Gateway

    Give each app its own key with a budget, rate limits, and a list of allowed models.

  • GET /v2/ai/models

    Model catalog

    GLM-5.3-Flash, Kimi-K3, MiniMax-M3, DeepSeek-V4.1-Flash, and 10 more models.

  • POST /v2/web_search

    Web Search

    Search the live web, read up to 20 pages in one request, or ask a question and get an answer with sources.

  • POST /v2/browser_sessions

    Agent Browser (Beta)

    Give your agent its own browser so it can work through sites that have no API. Each session reaches only the domains you allow.

  • POST /v2/meeting_sessions

    Meeting API (Beta)

    Send a bot into Google Meet, Zoom, or Microsoft Teams. It listens, speaks, and returns a summary and action items when the call ends.

  • import { Agent } from "@telnyx/edge-runtime"

    Agent SDK (Beta)

    Write an agent in TypeScript that keeps its history and scheduled tasks across restarts. Telnyx hosts it.

  • telnyx-edge storage sqldb create --name my-app-db

    SQLDB (Beta)

    A SQLite database your functions, scripts, and terminal all reach.

  • npx skills add team-telnyx/ai

    Your coding agent

    Install the Telnyx skills and your coding agent knows how to call these APIs.

Add Telnyx to your coding agent in one command

Install the skills, point it at the docs, or connect the MCP servers.

  • npx skills add team-telnyx/ai

    Telnyx agent skills

    Adds the official Telnyx skills for inference, storage, the CLI, and the meeting bot.

  • developers.telnyx.com/mcp

    Telnyx docs for your agent

    Point your agent at the docs MCP server or at llms.txt. Neither needs a key.

  • https://api.telnyx.com/v2/mcp

    Remote MCP servers

    The Telnyx MCP server lets your agent look up and call Telnyx endpoints. The Meeting MCP server adds 19 tools for joining meetings and collecting results.

How Telnyx compares with other providers

Run your own prompts against the same endpoints from a new account. All benchmarks →

Inference4.92sMedian end-to-end latency for GLM 5.3 Flash on Telnyx, against 8.75s on Modal.
Inference12.80sp95 latency for GLM 5.3 at 88.7k input tokens, against 69.64s on Together AI.
Inference60/60GLM 5.3 Flash runs completed on Telnyx at 196.4 tokens per second. Baseten completed 44 of 60.
Web Search9.5Results per query from Telnyx Web Search, the most of the four search APIs tested.

What you can build with one Telnyx account

  1. 1

    Research agent

    Ask a question and get an answer with sources. A model turns it into the brief your user wanted.

    Uses: Web Search, Inference

  2. 2

    Form-filling agent

    Find the page with Web Search, open it in a browser, and fill in the form.

    Uses: Web Search, Agent Browser, Inference

  3. 3

    Meeting notetaker

    Send a bot to standup and save the summary and action items where your team can find them.

    Uses: Meeting API, SQLDB

  4. 4

    App data on SQLDB

    Keep users, settings, and job state in one SQLite database.

    Uses: SQLDB, Edge Compute

  5. 5

    Metered AI feature

    Give each of your customers a key with its own budget, and see what each one spends.

    Uses: AI Gateway, Inference

  6. 6

    Agent that remembers

    Build with the Agent SDK so the agent keeps its history and tasks across restarts.

    Uses: Agent SDK, Inference

Get $20 in credit and make your first call

01

Create your account

Sign up, then create an API key in the portal.