Execution Limits
| Limit | Default | Maximum |
|---|---|---|
| Request timeout | 30 seconds | 60 seconds |
| Memory per container | 256 MB | 512 MB |
| Request body size | 10 MB | 10 MB |
| Response body size | 10 MB | 10 MB |
504 Gateway Timeout. The timeout is not set in func.toml — there is no timeout_seconds field. Budget your own upstream calls below the platform limit (for example, a 25-second timeout on outbound requests) so you can return a real error instead of a 504.
Memory. Each container has a fixed allocation. Exceed it and the container is terminated; the next request starts a fresh one (a cold start). Stream large payloads instead of buffering them, and don’t let in-memory caches grow unbounded — memory is per-container and disappears on restart anyway. For durable state, see Where state lives.
Function Limits
| Limit | Value |
|---|---|
| Function code size | 50 MB (compressed) |
| Environment variables per function | 64 |
| Environment variable name size | 256 bytes |
| Environment variable value size | 5 KB |
| Secrets per organization | 100 |
| Secret value size | 10 KB |
Network Limits
| Limit | Value |
|---|---|
| Outbound connections per request | 100 |
| Outbound request timeout | Set by your code, bounded by the request timeout |
| DNS resolution timeout | 5 seconds |
Rate Limits
| Limit | Value |
|---|---|
| Deployments per hour | 60 |
| API requests per minute | 1,000 |
| Concurrent function invocations | No hard limit (auto-scales) |
telnyx-edge new-func registers the function server-side at scaffold time, and rapid successive calls return 429. Wait and retry.
There is no hard cap on concurrent invocations — the platform scales containers with traffic. Each new container pays a cold start, so sharply spiky traffic sees higher tail latency.
Account Limits
| Limit | Value |
|---|---|
| Functions per organization | 100 |
Need higher limits? Contact support@telnyx.com.
KV Storage Limits
| Limit | Value |
|---|---|
| Key length | 256 characters — over returns 400 |
| Key characters | a-z A-Z 0-9 - _ / = . (no colons) |
| Value size | 1 MiB (1,048,576 bytes) — over returns 413 |
| TTL | Whole seconds, minimum 1 |
When a Limit Is Exceeded
| Error | Code | Meaning |
|---|---|---|
| Request Timeout | 504 | Function didn’t respond in time |
| Memory Exceeded | 500 | Container terminated due to memory |
| Payload Too Large | 413 | Request/response body exceeded limit |
| Rate Limited | 429 | Too many requests or deployments |
Related
- Pricing — free tier and usage rates
- Execution Model — container lifecycle and cold starts
- KV Best Practices — full KV limits and guidance