AI agents · OpenClaw · self-hosting · automation

Quick Answer

Best SMS APIs for AI Agents in 2026: Twilio, Telnyx, Plivo

Published:

The short answer

Twilio is the best SMS API for most AI agents in 2026; Telnyx is the cheapest at volume; Plivo is the simple middle option. As of November 29, 2026 (US pricing):

  • Twilio: $0.0083 per SMS segment, plus carrier fees; the broadest ecosystem, docs and agent integrations.
  • Telnyx: $0.004 per message part plus carrier fees passed through at cost, $0 platform fee, owns its network.
  • Plivo: $0.0077 per SMS on long codes, $0.0079 on toll-free, numbers from $0.50 a month.

Agents that also email should pair an SMS API with one of the best email APIs for AI agents. For voice calls rather than texts, see phone call audio streaming to an LLM under 300 ms.

The comparison

ProviderUS outbound SMSUS inbound SMSUS MMS outboundCarrier feesNotable extrasBest for
Twilio$0.0083/segment$0.0083/segment$0.022Extra (e.g. AT&T $0.0035, T-Mobile $0.0045 on outbound SMS)$0.001 fee per failed message; RCS; Link Shortening $0.015/SMS after 1,000 freeMost teams; widest ecosystem
Telnyx$0.004/part$0.004/part$0.015/partPassthrough at cost (~$0.0038 blended US)$0 platform fee; volume discount above 100M parts/month; HIPAA at no extra support costHigh volume, cost-sensitive
Plivo$0.0077 (long code) · $0.0079 (toll-free)Same as outbound$0.018 (long code)AT&T $0.0035, T-Mobile $0.0045, Verizon $0.005 per outbound SMSLong code $0.50/mo, toll-free $1/mo; message queueing includedSimple published pricing

All prices are from each vendor’s US pricing page on November 29, 2026; Twilio’s page states “pricing current as of November 2026”.

1. Twilio: best default

Twilio’s advantage is everything around the message: SDKs in every language, Conversations and Verify products, RCS, a large partner ecosystem, and most agent frameworks and voice platforms ship a Twilio integration first. The US rate is $0.0083 per 160-character segment for long codes, toll-free and short codes, MMS is $0.022 outbound, and carriers add their own fees. A $0.001 processing fee applies to messages that end in a failed status, which matters if an agent texts unverified numbers.

2. Telnyx: cheapest at volume

Telnyx publishes two lines per message: its own rate ($0.004 per part for SMS, $0.015 for MMS outbound) and the carrier’s fee passed through without markup. Its own example puts 1 million US SMS parts at about $7,800 a month including carrier fees. There is no platform fee, volume discounts apply automatically above 100 million parts a month, and Telnyx also sells voice and AI inference on its own network, so an agent’s calls and texts can share one provider.

3. Plivo: simple middle option

Plivo publishes a flat per-message rate ($0.0077 on long codes) and a table of carrier surcharges, so costs are easy to model. Long-code numbers cost $0.50 a month and toll-free numbers $1; short codes are $500 a month plus a $1,500 one-time fee. Message queueing is included.

Building an SMS agent safely

  1. Register first. Complete 10DLC brand and campaign registration (or toll-free verification) before launch; describe AI-generated replies honestly in the campaign.
  2. Handle opt-outs outside the model. Process STOP, START and HELP in code before the text reaches the LLM, and never let the agent message an opted-out number.
  3. Keep replies short. Every 160 characters (70 with emoji or non-Latin characters) is another billed segment; instruct the agent accordingly and truncate in code.
  4. Rate limit per number. Cap replies per conversation per hour to stop loops with other bots or auto-responders.
  5. Log for compliance. Store inbound and outbound messages with timestamps and consent records.

How to choose

  1. First SMS agent, want integrations and docs → Twilio.
  2. Millions of messages a month, cost first → Telnyx.
  3. Predictable, published per-message pricing → Plivo.

Last verified: November 29, 2026.

Sources