APIs · head to head
Optuna vs Portkey

Optuna
APIs
Open-source Python framework for automated hyperparameter optimisation
- 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
- Optuna is an MIT-licensed hyperparameter optimisation framework.
- Optuna is free; Portkey prices on request.
- Where Optuna falls short: searches are only as good as the objective and search space defined.
How do Optuna and Portkey differ?
Optuna and Portkey differ on starting price (Free against On request) and free tier (Yes against No). Only the attributes on which Optuna and Portkey actually diverge.
Identical on both: platforms (Web).
Not yet recorded: pricing model for Portkey, category for Optuna.
Which features does each one have?
They share no listed features; 7 appear only for Optuna. 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 Optuna
- Define-by-run search spaces
- Pruning of unpromising trials
- Parallel and distributed search
- Framework-agnostic integrations
- Optuna Dashboard
- OptunaHub feature sharing
- Multiple search algorithms
Only in Portkey
Nothing recorded that Optuna does not also cover.
What is each one used for?
Optuna is most often brought in for tuning deep learning models; Portkey for accessing 1,600+ language models through unified API gateway. The jobs each tool is most often brought in to do.
Optuna
- Tuning deep learning modelsnot Portkey
- Tuning gradient-boosted treesnot Portkey
- Pruning slow experiments earlynot Portkey
- Parallel searches across machinesnot Portkey
Portkey
- Accessing 1,600+ language models through unified API gatewaynot Optuna
- Monitoring and observing LLM behavior in production environmentsnot Optuna
- Managing costs and setting budget limits for AI spendingnot Optuna
- Implementing guardrails and PII redaction for secure AI interactionsnot Optuna
Where do Optuna and Portkey fall short?
Optuna's most cited limit: searches are only as good as the objective and search space defined. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Optuna
- Searches are only as good as the objective and search space defined
- Distributed runs need a shared storage backend set up by the user
- Works only with Python code, so non-Python teams cannot use it
- Tuning only; no experiment tracking or deployment features
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 Optuna and Portkey cost?
Optuna is free to use. Plan by plan below, from each vendor's own pricing page.
Optuna
FreeNo published plan breakdown. See the Optuna review.
Portkey
On requestNo published plan breakdown. See the Portkey review.
Which should you pick?
Choose Optuna if
- You need define-by-run search spaces.
- You want to start without paying.
- You also want pruning of unpromising trials.
Choose Portkey if
Nothing in the data separates Portkey from Optuna on the points above - pick on price and on how each one feels to use.
Questions people ask
- Is Optuna or Portkey better?
- It depends on the job. Optuna fits tuning deep learning models; Portkey fits accessing 1,600+ language models through unified API gateway. Optuna starts at Free and Portkey at On request.
- Which is cheaper, Optuna or Portkey?
- Optuna has a free tier; the other does not. Paid plans start at Free for Optuna and On request for Portkey.
- Does Optuna or Portkey run on more platforms?
- Both run on Web, so platform support will not decide this one for you.
- Can I use Optuna for free?
- Yes. Optuna has a free tier, so you can try it without paying. Portkey starts at On request.
- What is Optuna best used for?
- Optuna is most often used for tuning deep learning models, tuning gradient-boosted trees, pruning slow experiments early, parallel searches across machines. Of those, tuning deep learning models and tuning gradient-boosted trees are not what Portkey is typically brought in for.
- What can Optuna do that Portkey cannot?
- Optuna covers Define-by-run search spaces, Pruning of unpromising trials, Parallel and distributed search, Framework-agnostic integrations.
Answered from the vendors’ own pages
Optuna: What licence does Optuna use?
The MIT License.
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
SourceOptuna: Who develops Optuna?
Preferred Networks, which first introduced it in 2018.
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
SourceOptuna: What Python version is needed?
Python 3.10 or newer.
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
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
- Optuna vs scikit-learn
- Optuna vs MLflow
- Optuna vs Weights & Biases
- Optuna vs Comet ML
- Optuna vs Streamlit
- Optuna vs PyTorch
- Optuna vs Gradio
- Optuna vs Kedro
- Optuna vs Metaflow
- Optuna vs DataRobot
- Optuna vs TensorFlow
- Optuna vs Kaggle
- Optuna vs Label Studio
- Optuna vs Labelbox
- Optuna vs LightGBM
- Optuna vs Keras
- Optuna vs Google AI Studio
- Optuna vs JAX
- Optuna vs LiteLLM
- Optuna vs Kong Gateway
- Optuna vs Apigee
- Optuna vs Tink
- Optuna vs AWS API Gateway
- Optuna vs WSO2 API Manager
- Optuna vs Treblle
- Optuna vs Volt
- Optuna vs 3scale
- Optuna vs Akana
- Optuna vs Mambu
- Optuna vs TrueLayer
- Optuna vs Basis Theory
- Optuna vs curl
- Optuna vs Flybits
- Optuna vs Moesif
- Optuna vs Neonomics
- Optuna vs Novu
- Portkey vs scikit-learn
- Portkey vs MLflow
- Portkey vs Weights & Biases
- Portkey vs Comet ML
- Portkey vs Streamlit
- Portkey vs PyTorch
- Portkey vs Gradio
- Portkey vs Kedro
- Portkey vs Metaflow
- Portkey vs DataRobot
- Portkey vs TensorFlow
- Portkey vs Kaggle
- Portkey vs Label Studio
- Portkey vs Labelbox
- Portkey vs LightGBM
- Portkey vs Keras
- Portkey vs Google AI Studio
- Portkey vs JAX
- 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
