Mailgun vs Portkey
Email API for developers with deep deliverability tooling
vs. Enterprise AI gateway + observability + guardrails + prompt mgmt
Pricing tiers
Mailgun
Free
100 emails/day. 1 custom domain, 1-day log retention, 1 inbound route. No credit card.
Free
Basic
$15/month. 10,000 emails/month, no daily limit, 5 inbound routes.
$15/mo
Foundation
$35/month (1st month free). 50,000 emails/month, 1,000 custom domains, 5-day retention.
$35/mo
Scale
$90/month. 100,000 emails/month, SAML SSO, 5,000 email validations, dedicated IP pools, 30-day retention.
$90/mo
Enterprise
Custom. Deliverability services, managed onboarding.
Custom
Portkey
Developer (Free)
Free forever. 10k logs/month. Universal API + key management. 3 prompt templates. Basic observability.
Free
Gateway (OSS)
MIT-licensed gateway only (no observability UI). Self-host for routing/fallbacks.
$0 base (usage-based)
Production
$49/month. 100k logs ($9 per additional 100k). Fallbacks, load balancing, retries, semantic caching. Unlimited prompts. RBAC.
$49/mo
Enterprise
Custom. 10M+ logs/month. Custom guardrails, advanced evals, SSO, budget controls, VPC + on-prem, SOC2, HIPAA, GDPR.
Custom
Free-tier quotas head-to-head
Comparing free on Mailgun vs free on Portkey.
| Metric | Mailgun | Portkey |
|---|---|---|
| No overlapping quota metrics for these tiers. | ||
Features
Mailgun · 14 features
- Batch Sending — Send up to 1,000 recipients per API call via recipient variables.
- Dedicated IPs — IP pools with auto warmup. Scale+ tier.
- Deliverability Suite — Inbox placement testing, DMARC reporting, seed lists.
- Email Logs — Searchable log of all send attempts + events.
- Email Templates — Template builder + variables + versioning.
- Email Validation — Real-time email verification (syntax, MX, role accounts, disposable).
- EU Region — Data stored in EU for GDPR-sensitive customers.
- Inbound Routing — Route incoming emails to URLs/SMTP. Attachment forwarding.
- Mailing Lists — Unlimited mailing lists with bulk subscribe/unsubscribe.
- Open/Click Tracking — HTML + text tracking with configurable tracking domain.
- SAML SSO — Scale+ tier.
- Send API — REST/SMTP send with MIME + tracking.
- Tags — Tag messages to slice stats.
- Webhook Events — delivered, opened, clicked, unsubscribed, complained, permanent_fail, temporary_…
Portkey · 18 features
- AI Gateway — Unified OpenAI-compatible API to 250+ LLMs.
- Alerts — Thresholds on latency, error rate, cost, usage.
- Budget Controls — Per-key + per-team spending limits.
- Evaluations — Built-in evaluator templates + custom.
- Fallbacks — Config-driven provider fallback chains.
- Guardrails — Pre/post processors for safety + compliance.
- Load Balancing — Round-robin, weighted, least-latency across providers.
- MCP Support — Use MCP servers as tools through gateway.
- Observability — Logs, traces, feedback, alerts, cost tracking.
- OSS Gateway — Open-source gateway (portkey-ai/gateway).
- Prompt Library — Shared prompt library + public marketplace.
- Prompt Templates — Version + test + collaborate on prompts.
- Retries — Configurable retry policies per route.
- Role-Based Access Control — Team permissions on prompts + keys.
- Semantic Caching — Vector-based cache on query meaning.
- Simple Caching — Exact-match cache.
- Virtual Keys — Per-app keys with budget + rate limits + permissions.
- VPC Deployment (Ent) — Deploy in your own VPC for compliance.
Developer interfaces
| Kind | Mailgun | Portkey |
|---|---|---|
| CLI | — | Portkey CLI |
| SDK | mailgun.js (Node), mailgun-php, mailgun-python, mailgun-ruby | portkey-ai (Node), portkey-ai (Python) |
| REST | Mailgun REST API | Portkey API (OpenAI-compat) |
| MCP | — | Portkey MCP |
| OTHER | Inbound Routing, SMTP Relay, Webhooks | Portkey Dashboard |
Staxly is an independent catalog of developer platforms. Outbound links to Mailgun and Portkey are plain references to their official websites. Pricing is verified against vendor pages at publication time — reconfirm before buying.
Want this comparison in your AI agent's context? Install the free Staxly MCP server.