Softwr

Testing · head to head

k6 vs Portkey

k6 logo

k6

Testing

Load testing tool with JavaScript tests on a Go runtime, now owned by Grafana Labs

From
Free
Free plan
Yes
Portkey logo

Portkey

APIs

Observe, govern, and secure every AI interaction across your enterprise

From
On request
Free plan
No

The short version

  • k6 is free; Portkey prices on request.

How do k6 and Portkey differ?

k6 and Portkey differ on starting price (Free against On request), free tier (Yes against No) and platforms. Only the attributes on which k6 and Portkey actually diverge.

Attributes where k6 and Portkey differ
Attributek6Portkey
Starting priceFreeOn request
Free tierYesNo
PlatformsWindows, macOS, Linux, Self-hostedWeb
CategoryTestingAPIs

Not yet recorded: pricing model for Portkey.

Which features does each one have?

They share no listed features; 8 appear only for k6. 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 k6

  • JavaScript test scripts
  • Thresholds and checks
  • Protocol coverage
  • Browser module
  • Executors
  • xk6 extensions
  • Metrics output
  • Kubernetes operator

Only in Portkey

Nothing recorded that k6 does not also cover.

What is each one used for?

Portkey is most often brought in for accessing 1,600+ language models through unified API gateway. The jobs each tool is most often brought in to do.

k6

  • Gating a deployment pipeline on a threshold such as 95th percentile latency under a defined arrival ratenot Portkey
  • Generating tens of thousands of requests per second from a small number of machines without a load generator fleetnot Portkey
  • Testing gRPC and WebSocket services with the same tooling and thresholds used for HTTP endpointsnot Portkey
  • Correlating a load test against existing dashboards for an organisation already running Grafana and Prometheusnot Portkey

Portkey

  • Accessing 1,600+ language models through unified API gatewaynot k6
  • Monitoring and observing LLM behavior in production environmentsnot k6
  • Managing costs and setting budget limits for AI spendingnot k6
  • Implementing guardrails and PII redaction for secure AI interactionsnot k6

Where do k6 and Portkey fall short?

Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

k6

  • Tests run on a JavaScript engine embedded in Go rather than on Node.js, so npm packages, Node built-ins and existing shared test utilities generally do not work without being bundled to plain JavaScript, and often not even then
  • The open source binary runs on a single machine, so distributed load requires the Kubernetes operator or the cloud service, and the operator is infrastructure your team has to run and debug
  • The AGPL-3.0 licence on the core requires legal review at any company that intends to embed k6 in a product it distributes or offers as a service, which is a slower path than a permissively licensed tool
  • There is no result storage in the open source tool, so trend history means standing up Prometheus, InfluxDB or Grafana Cloud before load testing produces anything comparable over time
  • Since the Grafana Labs acquisition the roadmap serves the Grafana observability stack, so a buyer choosing k6 as a standalone tool should expect the standalone experience to receive less investment than the cloud and dashboard integration
  • Grafana Cloud billing is by virtual user hour, so a long soak test at modest concurrency costs far more than its peak load suggests, and cost planning has to be done in virtual user hours rather than in test runs

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 k6 and Portkey cost?

k6 is free to use. Plan by plan below, from each vendor's own pricing page.

k6

Free
  • k6 OSSFree
    • AGPL-3.0 licence
    • Full test engine, no virtual user limits
    • Runs on one machine unless distributed yourself
  • Grafana Cloud free tierFree
    • Includes a monthly allowance of virtual user hours
    • Hosted test results and dashboards
    • Shared with the rest of the Grafana Cloud free tier
  • Grafana Cloud k6On request
    • Billed by virtual user hours consumed
    • Load generation from multiple regions
    • Retained test history and comparison

Portkey

On request

No published plan breakdown. See the Portkey review.

Which should you pick?

Choose k6 if

  • You need javascript test scripts.
  • You want to start without paying.
  • You work on Windows, macOS, Linux, Self-hosted.
  • You also want thresholds and checks.

Choose Portkey if

Nothing in the data separates Portkey from k6 on the points above - pick on price and on how each one feels to use.

Questions people ask

Is k6 or Portkey better?
It depends on the job. k6 fits gating a deployment pipeline on a threshold such as 95th percentile latency under a defined arrival rate; Portkey fits accessing 1,600+ language models through unified API gateway. k6 starts at Free and Portkey at On request.
Which is cheaper, k6 or Portkey?
k6 has a free tier; the other does not. Paid plans start at Free for k6 and On request for Portkey.
Does k6 or Portkey run on more platforms?
k6 runs on Windows, macOS, Linux, Self-hosted. Portkey runs on Web.
Can I use k6 for free?
Yes. k6 has a free tier, so you can try it without paying. Portkey starts at On request.
What is k6 best used for?
k6 is most often used for gating a deployment pipeline on a threshold such as 95th percentile latency under a defined arrival rate, generating tens of thousands of requests per second from a small number of machines without a load generator fleet, testing grpc and websocket services with the same tooling and thresholds used for http endpoints, correlating a load test against existing dashboards for an organisation already running grafana and prometheus. Of those, gating a deployment pipeline on a threshold such as 95th percentile latency under a defined arrival rate and generating tens of thousands of requests per second from a small number of machines without a load generator fleet are not what Portkey is typically brought in for.
What can k6 do that Portkey cannot?
k6 covers JavaScript test scripts, Thresholds and checks, Protocol coverage, Browser module.

Answered from the vendors’ own pages

k6: Can I use npm packages in a k6 test?

Usually not. Scripts run on a Go-embedded JavaScript engine with no Node.js runtime, so packages depending on Node built-ins fail and pure JavaScript libraries must be bundled first.

Portkey: 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

Source
k6: Is k6 free?

The core tool is free under AGPL-3.0 with no virtual user limits. Grafana Cloud k6 is a paid service billed by virtual user hours, with a free monthly allowance.

Portkey: 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

Source
k6: Does the Grafana acquisition affect the open source tool?

The tool remains open source and maintained, but investment is directed at making it a data source for Grafana, so standalone use is supported rather than prioritised.

Portkey: 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

Source
k6: Can k6 replace a browser testing tool?

No. The browser module measures page-level metrics under load, but functional browser testing belongs in Playwright or a similar tool.

Portkey: 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

Source
Share

Related pages

Other head to heads