Softwr

Cloud · head to head

Dokku vs OpenAI API

Dokku logo

Dokku

Cloud

Single-server platform that accepts a git push and runs Heroku buildpacks on Docker

From
Free
Free plan
Yes
OpenAI API logo

OpenAI API

Machine Learning

Hosted API for OpenAI's language, embedding, image and audio models, billed per token

From
$0.15/per-million-tokens
Free plan
No

The short version

  • Dokku has a free plan, then $849 one-off; OpenAI API starts at $0.15/mo.
  • Only Dokku lists git push deploy; only OpenAI API lists text and reasoning models.

How do Dokku and OpenAI API differ?

Dokku and OpenAI API differ on starting price, pricing model and free tier (Yes against No). Only the attributes on which Dokku and OpenAI API actually diverge.

Attributes where Dokku and OpenAI API differ
AttributeDokkuOpenAI API
Starting priceFree$0.15/per-million-tokens
Pricing modelOpen source, no licence feeUsage-based
Free tierYesNo
PlatformsLinux, Self-hosted, APIAPI
CategoryCloudMachine Learning

Not yet recorded: founded for Dokku.

Which features does each one have?

They share no listed features; 6 appear only for Dokku and 10 only for OpenAI API. 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 Dokku

  • Git push deploy
  • Heroku buildpacks
  • Datastore plugins
  • Automatic certificates
  • Zero downtime deploys
  • Pluggable schedulers

Only in OpenAI API

  • Text and reasoning models
  • Embeddings
  • Speech and audio
  • Image generation
  • Function calling
  • Structured outputs
  • Batch processing
  • Prompt caching

What is each one used for?

The jobs each tool is most often brought in to do.

Dokku

  • Running a dozen side projects and client applications on one virtual private server with Heroku style deploymentnot OpenAI API
  • Moving off a managed platform when the monthly bill has grown faster than the traffic hasnot OpenAI API
  • A consultancy that wants buildpack deployments without teaching every client team Kubernetesnot OpenAI API
  • Keeping a legacy Procfile application alive on hardware you control after a managed platform deprecates its stacknot OpenAI API

OpenAI API

  • Adding summarisation, drafting or classification to an existing product where building a model would take longer than the product's whole roadmapnot Dokku
  • Retrieval-augmented question answering over internal documents, using the embedding and generation models togethernot Dokku
  • Extracting structured records from unstructured text, where schema-constrained output removes most of the parsing problemnot Dokku
  • Prototyping a language feature quickly to find out whether it is worth the cost of a self-hosted alternative laternot Dokku

Where do Dokku and OpenAI API fall short?

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

Dokku

  • One maintainer accounts for nearly all human commit activity and the project records roughly 10,500 US dollars of annual income on Open Collective, which is not enough to fund a maintainer, so continuity rests on one person continuing to volunteer
  • Dokku Pro asks 849 US dollars for a lifetime licence from a project with no disclosed legal entity behind the promise and no published refund terms, while the product is still described as in development at early bird pricing
  • Dokku is single-server by design, and the k3s scheduler that provides multi-node support is missing log retrieval, process inspection and content-based health checks, with a post-run hook the documentation says does not consistently fire
  • Supported operating systems are limited to Ubuntu 22.04 or 24.04 and Debian 11 or later, so organisations standardised on Red Hat, Rocky or Alma Linux cannot run it on their approved base image
  • Backups are separate commands per datastore plugin that you schedule yourself, with no unified snapshot, no point-in-time recovery and no tested restore path, so verifying that a restore works is entirely your responsibility

OpenAI API

  • Cost scales with tokens rather than with seats, so a successful feature's bill grows with its adoption, and an interface that lets users paste long documents has no natural ceiling on spend unless you build one yourself
  • Models are deprecated on the vendor's timetable, and a fine-tuned model built on a retired base goes with it, so the tuning work and the data curation behind it must be redone rather than migrated
  • Behaviour shifts between model versions in ways no test catches unless you wrote one, so prompts tuned over months against a particular snapshot can regress quietly on migration, which makes an evaluation suite a prerequisite rather than an improvement
  • It cannot run inside your own network, so data residency requirements, air-gapped environments and contracts forbidding third-party processing rule it out regardless of the provider's own security posture
  • You inherit its availability and its rate limits, so a provider incident is an outage in your product and a traffic spike can be throttled at precisely the moment the feature is proving itself

How much do Dokku and OpenAI API cost?

Dokku has a free plan, with paid plans from $849 one-off; OpenAI API starts at $0.15/mo. Plan by plan below, from each vendor's own pricing page.

Dokku

Free
  • DokkuFree
    • MIT licensed, no usage limits
    • Command line and SSH only
    • All datastore and certificate plugins
  • Dokku Pro$849 one-off
    • Lifetime licence with free upgrades and no subscription
    • Covers 1 production and 2 pre-production servers
    • Web dashboard and JSON REST API

OpenAI API

$0.15/per-million-tokens
  • GPT-4o mini$0.15
    • Fast
    • Affordable
  • GPT-4o$5
    • Multimodal
    • 128K context

Which should you pick?

Choose Dokku if

  • You need git push deploy.
  • You want to start without paying.
  • You work on Linux, Self-hosted, API.
  • You also want heroku buildpacks.

Choose OpenAI API if

  • You need text and reasoning models.
  • You work on API.
  • You also want embeddings.

Questions people ask

Is Dokku or OpenAI API better?
It depends on the job. Dokku fits running a dozen side projects and client applications on one virtual private server with Heroku style deployment; OpenAI API fits adding summarisation, drafting or classification to an existing product where building a model would take longer than the product's whole roadmap. Dokku starts at Free and OpenAI API at $0.15/per-million-tokens.
Which is cheaper, Dokku or OpenAI API?
Dokku has a free tier; the other does not. Paid plans start at Free for Dokku and $0.15/per-million-tokens for OpenAI API.
Does Dokku or OpenAI API run on more platforms?
Dokku runs on Linux, Self-hosted, API. OpenAI API runs on API.
Can I use Dokku for free?
Yes. Dokku has a free tier, so you can try it without paying. OpenAI API starts at $0.15/per-million-tokens.
What is Dokku best used for?
Dokku is most often used for running a dozen side projects and client applications on one virtual private server with heroku style deployment, moving off a managed platform when the monthly bill has grown faster than the traffic has, a consultancy that wants buildpack deployments without teaching every client team kubernetes, keeping a legacy procfile application alive on hardware you control after a managed platform deprecates its stack. Of those, running a dozen side projects and client applications on one virtual private server with heroku style deployment and moving off a managed platform when the monthly bill has grown faster than the traffic has are not what OpenAI API is typically brought in for.
What can Dokku do that OpenAI API cannot?
Dokku covers Git push deploy, Heroku buildpacks, Datastore plugins, Automatic certificates. OpenAI API covers Text and reasoning models, Embeddings, Speech and audio, Image generation.

Answered from the vendors’ own pages

Dokku: Is Dokku still maintained?

Yes. Version 0.38.27 shipped in August 2026 with roughly six releases in the preceding two months. The caveat is that one maintainer writes nearly all of it.

OpenAI API: Is my data used to train the models?

API inputs and outputs are not used for training by default, which differs from the consumer product. Retention periods and enterprise terms change, so read the current data usage policy rather than trusting a summary.

Dokku: What does Dokku Pro give me over the free edition?

A web dashboard, a JSON REST API, git push over HTTPS, browser log tailing, team management and email support from the maintainers. It costs 849 US dollars once for one production and two pre-production servers.

OpenAI API: Can I run these models on my own hardware?

No. The weights are not distributed. If self-hosting is a requirement, you are looking at open-weight models instead, with the operational and quality trade-offs that implies.

Dokku: Can Dokku run across multiple servers?

Only through the k3s or Nomad schedulers. The k3s path is missing several commands and health check types, and the older Kubernetes scheduler is deprecated and no longer developed.

OpenAI API: How is it priced?

Per token, with input and output priced differently and each model priced differently. Batch processing and cached input prefixes reduce it. The practical consequence is that your bill is a function of prompt design, not just of request count.

Dokku: Will my Heroku application run on it unchanged?

Usually. Dokku runs the same buildpacks and reads a Procfile, so the application layer normally moves across. Add-ons, scaling behaviour and backups are the parts you have to rebuild.

OpenAI API: What is the difference from Azure OpenAI Service?

The same model family delivered by Microsoft under an Azure contract, with Azure identity, networking and regional controls, and a different release cadence for new models. Enterprises with an Azure agreement often choose it for procurement and data residency reasons rather than technical ones.

OpenAI API: How do I keep the cost under control?

Cap input length, cache repeated prefixes, route easy requests to smaller models, use the batch path where latency does not matter, and set per-user limits before launch rather than after the first surprising invoice.

Share

Related pages

Other head to heads