Dolly 2.0 12B on Replicate API

Dolly 2.0 · Databricks Mosaic

ServerlessOpen Source

Last refreshed 2026-09-30. Next refresh: weekly.

Why use Dolly 2.0 12B on Replicate API?

Replicate API offers Dolly 2.0 12B with pay-as-you-go pricing at $0.10/1M input tokens. Replicate is a cloud-based platform that enables users to run machine learning models easily and efficiently.

Compare Dolly 2.0 12B across 2 providers to find the best fit for your use case
Input / 1M
$0.10
Output / 1M
$0.50
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install replicate
Auth
export REPLICATE_API_TOKEN=...
Call
import replicate
output = replicate.run(
    "dolly-2.0-12b",
    input={"prompt": "Hello"}
Model ID
dolly-2.0-12b

Request example

import replicate

# reads REPLICATE_API_TOKEN from env
# dolly-2.0-12b format: "owner/model-name" (latest version) or "owner/model-name:version-hash"
output = replicate.run(
    "dolly-2.0-12b",
    input={"prompt": "Hello"}
)
# Output is a list or generator depending on the model
print("".join(output))

Gotchas

  • Replicate uses "owner/model-name" format (e.g. "meta/meta-llama-3-8b-instruct") for the latest version, or "owner/model-name:version-sha" to pin to a specific version. The REST endpoint splits owner and model-name into the path: /v1/models/{owner}/{model-name}/predictions.
  • The examples expect REPLICATE_API_TOKEN; rename it only if your application config maps the new variable.

Compare Dolly 2.0 12B Across Providers

ProviderInput (per 1M)Output (per 1M)
Microsoft Foundry$0.07$0.07
Replicate API$0.10$0.50

Pricing

TypePrice (per 1M)
Input tokens$0.10
Output tokens$0.50

Capabilities

No model capability flags are currently sourced.

About Dolly 2.0 12B

Dolly 2.0 12B is an instruction-following large language model developed by Databricks. It is built on the Pythia-12b architecture with 12 billion parameters and trained on around 15,000 instruction-response pairs crafted by Databricks employees. This model is adept at handling tasks such as brainstorming, classification, open and closed question answering, text generation, information extraction, and summarization. Despite its versatility, Dolly 2.0 12B is not considered state-of-the-art and struggles with more complex prompts, programming, mathematical tasks, factual accuracy, and nuanced tasks like humor.

Get Started

Model Specs

Released2023-04-12
Parameters12b
ArchitectureDecoder Only