HomeAPIs › Twilio

Twilio API — pricing, free trial & how to get a key

Twilio is the most popular API for programmable SMS, voice and WhatsApp. Pricing is usage-based and varies by country; here's what it costs and how to start with the free trial.

Twilio pricing (reference, US, June 2026)

ServicePriceNotes
Outbound SMS~$0.0079 / segmentPer 160-char segment; + carrier fees
Inbound SMS~$0.0075 / msgReceived messages
Phone number~$1.15 / monthLocal US number
Voice (outbound)~$0.014 / minUS; varies by destination
WhatsAppconversation-basedMeta fees + Twilio markup
⚠️ Reference prices, US, June 2026 — Twilio pricing varies a lot by country and carrier surcharges. Confirm on twilio.com/sms/pricing for your destinations.

Free trial

Twilio gives new accounts a free trial credit (typically around $15) so you can test SMS and voice before paying. Trial accounts can only message verified numbers and add a "Sent from a Twilio trial account" prefix — upgrade to remove those limits.

How to get your Twilio API credentials (step by step)

1. Sign up at twilio.com and verify your email and phone.
2. On the Console dashboard you'll see your Account SID and Auth Token — these are your credentials.
3. Click Get a phone number to claim a number (uses trial credit).
4. For production, create a dedicated API Key under Account → API keys & tokens (safer than the root Auth Token).

Send a test SMS:

# replace SID, TOKEN, numbers
curl -X POST https://api.twilio.com/2010-04-01/Accounts/$SID/Messages.json \
  --data-urlencode "To=+15551234567" \
  --data-urlencode "From=+15557654321" \
  --data-urlencode "Body=Hello from Twilio" \
  -u $SID:$TOKEN

Cheaper / alternative options

For transactional email instead of SMS, SendGrid or Resend are far cheaper per message. For SMS specifically, Vonage, MessageBird and AWS SNS compete with Twilio — compare per-country rates, since the carrier fee often dominates.

FAQ

How much does Twilio SMS cost?

US outbound SMS ≈ $0.0079/segment, inbound ≈ $0.0075, a phone number ≈ $1.15/month. Varies a lot by country and carrier fees.

How do I get a Twilio API key?

Sign up for the free trial; your Account SID and Auth Token are on the Console dashboard. For production, create a standalone API Key under Account → API keys & tokens.

Is there a free trial?

Yes — about $15 of credit, but trial accounts can only text verified numbers and add a trial prefix until you upgrade.

Not affiliated with Twilio. Prices are reference estimates — always verify on the official pricing page.