Flan-T5 XL on Replicate API

FLAN-T5 · Google DeepMind

ServerlessOpen Source

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

Why use Flan-T5 XL on Replicate API?

Replicate API offers Flan-T5 XL with competitive pricing. Replicate is a cloud-based platform that enables users to run machine learning models easily and efficiently.

Compare Flan-T5 XL across 2 providers to find the best fit for your use case
Input / 1M
-
Output / 1M
-
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(
    "replicate/flan-t5-xl",
    input={"prompt": "Hello"}
Model ID
replicate/flan-t5-xl

Request example

import replicate

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

Gotchas

  • Use provider model ID "replicate/flan-t5-xl", not the LLMReference slug "flan-t5-xl".
  • 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 Flan-T5 XL Across Providers

ProviderInput (per 1M)Output (per 1M)
IBM watsonx$0.60$0.60
Replicate API——

Capabilities

No model capability flags are currently sourced.

About Flan-T5 XL

Flan-T5 XL is Google DeepMind's FLAN-T5 model. It was released 2022-10-03.

Get Started

Model Specs

Released2022-10-03
Parameters3B
Context512
ArchitectureDecoder Only