Developer Tools · head to head
AWS CDK vs Portkey

AWS CDK
Developer Tools
Open source framework for defining AWS infrastructure in programming languages
- From
- Free
- Free plan
- Yes

Portkey
APIs
Observe, govern, and secure every AI interaction across your enterprise
- From
- On request
- Free plan
- No
The short version
- AWS CDK is an Apache 2.
- AWS CDK is free; Portkey prices on request.
- Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.
How do AWS CDK and Portkey differ?
AWS CDK and Portkey differ on starting price (Free against On request), free tier (Yes against No) and platforms. Only the attributes on which AWS CDK and Portkey actually diverge.
Not yet recorded: pricing model for Portkey.
Which features does each one have?
They share no listed features; 8 appear only for AWS CDK. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in AWS CDK
- Construct Library of reusable components
- CDK CLI for synthesis and deployment
- Programmatic CDK Toolkit Library
- Support for TypeScript, JavaScript, Python, Java, C# and Go
- Deployment through AWS CloudFormation
- Custom and shareable constructs
- Construct Hub registry
- Open source under Apache 2.0
Only in Portkey
Nothing recorded that AWS CDK does not also cover.
What is each one used for?
AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python; Portkey for accessing 1,600+ language models through unified API gateway. The jobs each tool is most often brought in to do.
AWS CDK
- Defining AWS infrastructure in TypeScript or Pythonnot Portkey
- Reusable internal infrastructure modulesnot Portkey
- Serverless application stacksnot Portkey
- Testing infrastructure with unit testsnot Portkey
- Standardising environments across accountsnot Portkey
Portkey
- Accessing 1,600+ language models through unified API gatewaynot AWS CDK
- Monitoring and observing LLM behavior in production environmentsnot AWS CDK
- Managing costs and setting budget limits for AI spendingnot AWS CDK
- Implementing guardrails and PII redaction for secure AI interactionsnot AWS CDK
Where do AWS CDK and Portkey fall short?
AWS CDK's most cited limit: targets AWS only, so it does not provision resources on other clouds. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
AWS CDK
- Targets AWS only, so it does not provision resources on other clouds
- Deploys through CloudFormation, so its resource coverage and limits apply
- Infrastructure written in code can be harder to review than declarative templates
- The AWS resources it creates are billed separately at standard AWS rates
Portkey
- The free Developer tier records only 10,000 logs per month with 3 day log retention; the $49 per month Production tier raises that to 100,000 logs with $9 per additional 100,000 requests, as of August 2026
- The product is now sold to enterprises as Palo Alto Networks' Prisma AIRS AI Gateway, and the old pricing page redirects to Palo Alto content
How much do AWS CDK and Portkey cost?
AWS CDK is free to use. Plan by plan below, from each vendor's own pricing page.
AWS CDK
FreeNo published plan breakdown. See the AWS CDK review.
Portkey
On requestNo published plan breakdown. See the Portkey review.
Which should you pick?
Choose AWS CDK if
- You need construct library of reusable components.
- You want to start without paying.
- You work on Windows, macOS, Linux.
- You also want cdk cli for synthesis and deployment.
Choose Portkey if
Nothing in the data separates Portkey from AWS CDK on the points above - pick on price and on how each one feels to use.
Questions people ask
- Is AWS CDK or Portkey better?
- It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; Portkey fits accessing 1,600+ language models through unified API gateway. AWS CDK starts at Free and Portkey at On request.
- Which is cheaper, AWS CDK or Portkey?
- AWS CDK has a free tier; the other does not. Paid plans start at Free for AWS CDK and On request for Portkey.
- Does AWS CDK or Portkey run on more platforms?
- AWS CDK runs on Windows, macOS, Linux. Portkey runs on Web.
- Can I use AWS CDK for free?
- Yes. AWS CDK has a free tier, so you can try it without paying. Portkey starts at On request.
- What is AWS CDK best used for?
- AWS CDK is most often used for defining aws infrastructure in typescript or python, reusable internal infrastructure modules, serverless application stacks, testing infrastructure with unit tests. Of those, defining aws infrastructure in typescript or python and reusable internal infrastructure modules are not what Portkey is typically brought in for.
- What can AWS CDK do that Portkey cannot?
- AWS CDK covers Construct Library of reusable components, CDK CLI for synthesis and deployment, Programmatic CDK Toolkit Library, Support for TypeScript, JavaScript, Python, Java, C# and Go.
Answered from the vendors’ own pages
AWS CDK: Which languages does AWS CDK support?
The AWS documentation lists TypeScript, JavaScript, Python, Java, C# and .NET, and Go. Infrastructure is defined as constructs composed into stacks and apps.
SourcePortkey: What happens if I exceed my Portkey plan's request limit?
Production tier ($49/month) charges $9 per additional 100,000 requests beyond the included 100,000. Enterprise customers have custom limits determined through their service agreement. Source: https://portkey.ai/pricing
SourceAWS CDK: How does AWS CDK deploy resources?
CDK apps are synthesised and deployed through AWS CloudFormation. The documentation states this gives predictable, repeatable deployments with rollback on error.
SourcePortkey: Can I self-host Portkey to avoid per-request billing?
Yes. Portkey offers an Open Source self-hosted version with unlimited requests at no cost, including universal API, routing, guardrails, and load balancing features. Source: https://portkey.ai/pricing
SourceAWS CDK: Is AWS CDK free?
It is open source under the Apache 2.0 licence according to its GitHub repository. The AWS resources you provision with it are charged at their normal rates.
SourcePortkey: How long does Portkey retain my logs and metrics?
Free Developer tier retains logs 3 days and metrics 30 days. Production tier retains logs 30 days and metrics 90 days. Enterprise tier offers custom retention periods. Source: https://portkey.ai/pricing
SourceAWS CDK: When was AWS CDK first released?
Wikipedia reports a developer preview announced in 2018 and general availability on 11 July 2019. CDK v2 followed in 2021.
SourcePortkey: What compliance features are included in the Enterprise plan?
Enterprise tier includes SOC2 Type 2 certification, GDPR compliance, HIPAA compliance, VPC hosting, SSO, advanced guardrails, and dedicated support. Custom pricing required. Source: https://portkey.ai/pricing
SourceRelated pages
Other head to heads
- AWS CDK vs Terraform
- AWS CDK vs HCP Terraform
- AWS CDK vs Atlantis
- AWS CDK vs Pants Build
- AWS CDK vs Frappe
- AWS CDK vs Eclipse
- AWS CDK vs Spacelift
- AWS CDK vs Python
- AWS CDK vs Backstage
- AWS CDK vs Jitsu
- AWS CDK vs Notepad++
- AWS CDK vs Steampipe
- AWS CDK vs iTerm2
- AWS CDK vs JFrog Artifactory
- AWS CDK vs Leafmap
- AWS CDK vs LocalStack
- AWS CDK vs OrbStack
- AWS CDK vs PhpStorm
- AWS CDK vs LiteLLM
- AWS CDK vs Kong Gateway
- AWS CDK vs Apigee
- AWS CDK vs Tink
- AWS CDK vs AWS API Gateway
- AWS CDK vs WSO2 API Manager
- AWS CDK vs Treblle
- AWS CDK vs Volt
- AWS CDK vs 3scale
- AWS CDK vs Akana
- AWS CDK vs Mambu
- AWS CDK vs TrueLayer
- AWS CDK vs Basis Theory
- AWS CDK vs curl
- AWS CDK vs Flybits
- AWS CDK vs Moesif
- AWS CDK vs Neonomics
- AWS CDK vs Novu
- Portkey vs Terraform
- Portkey vs HCP Terraform
- Portkey vs Atlantis
- Portkey vs Pants Build
- Portkey vs Frappe
- Portkey vs Eclipse
- Portkey vs Spacelift
- Portkey vs Python
- Portkey vs Backstage
- Portkey vs Jitsu
- Portkey vs Notepad++
- Portkey vs Steampipe
- Portkey vs iTerm2
- Portkey vs JFrog Artifactory
- Portkey vs Leafmap
- Portkey vs LocalStack
- Portkey vs OrbStack
- Portkey vs PhpStorm
- Portkey vs LiteLLM
- Portkey vs Kong Gateway
- Portkey vs Apigee
- Portkey vs Tink
- Portkey vs AWS API Gateway
- Portkey vs WSO2 API Manager
- Portkey vs Treblle
- Portkey vs Volt
- Portkey vs 3scale
- Portkey vs Akana
- Portkey vs Mambu
- Portkey vs TrueLayer
- Portkey vs Basis Theory
- Portkey vs curl
- Portkey vs Flybits
- Portkey vs Moesif
- Portkey vs Neonomics
- Portkey vs Novu
