Skip to content
J·BJon BishopIndependent growth marketer

Artificial intelligence · llms.txt file breakdown

Replicate llms.txt

Run AI with an API organizes Replicate content, including What You Can Do With Replicate, Run Open-Source Models, Fine-tune Models with Your Own Data, Deploy Custom Models and 3 additional sections.

The actual file

Source Markdown

The saved llms.txt text, displayed as source. The file belongs to its publisher; the live endpoint may change.

Open saved text ↗

Complete saved Markdown shown below.

# Run AI with an API

Run and fine-tune open-source models. Deploy custom models at scale. All with one line of code.

## What You Can Do With Replicate

- Generate images
- Generate text
- Caption images
- Generate music
- Generate speech
- Fine tune models
- Restore images

## Run Open-Source Models

Our community has already published thousands of models that are ready to use in production. You can run these with one line of code.

```python
import replicate

output = replicate.run(
    "black-forest-labs/flux-schnell:f2ab8a5bfe79f02f0789a146cf5e73d2a4ff2684a98c",
    input={
        "prompt": "An astronaut riding a rainbow unicorn, cinematic, dramatic",
        "num_outputs": 1,
        "aspect_ratio": "1:1",
        "output_format": "webp",
        "output_quality": 90
    }
)
print(output)
```

## Fine-tune Models with Your Own Data

You can improve open-source models with your own data to create new models that are better suited to specific tasks. Image models like Flux can generate images of a particular person, object, or style.

Train a model:

```python
import replicate

training = replicate.trainings.create(
    version="ostris/flux-dev-lora-trainer:1296f0ab2d695af5a1b5eeee6e8ec043145b",
    input={
        "input_images": "https://my-domain/my-input-images.zip",
    },
    destination="electricdreams/flux-fine-tuned"
)
print(training)
```

## Deploy Custom Models

You aren't limited to the models on Replicate: you can deploy your own custom models using Cog, our open-source tool for packaging machine learning models.

Define your environment in `cog.yaml`:

```yaml
build:
    gpu: true
    system_packages:
        - "libgl1-mesa-glx"
        - "libglib2.0-0"
    python_version: "3.10"
    python_packages:
        - "torch==1.13.1"
    predict: "predict.py:Predictor"
```

Define predictions in `predict.py`:

```python
from cog import BasePredictor, Input, Path
import torch

class Predictor(BasePredictor):
    def setup(self):
        """Load the model into memory to make running multiple predictions efficient"""
        self.model = torch.load("./weights.pth")

    def predict(self,
               image: Path = Input(description="Grayscale input image")
               ) -> Path:
        """Run a single prediction on the model"""
        processed_image = preprocess(image)
        output = self.model(processed_image)
        return postprocess(output)
```

## Pricing

Pay only for what you use:

- CPU: $0.000100/sec
- Nvidia T4 GPU: $0.000225/sec
- Nvidia A40 GPU: $0.000575/sec
- Nvidia A40 (Large) GPU: $0.000725/sec
- Nvidia A100 (40GB) GPU: $0.001150/sec
- Nvidia A100 (80GB) GPU: $0.001400/sec
- 8x Nvidia A40 (Large) GPU: $0.005800/sec

## Key Features

### Automatic Scaling
If you get a ton of traffic, Replicate scales up automatically to handle the demand. If you don't get any traffic, we scale down to zero and don't charge you a thing.

### Infrastructure Management
Forget about managing infrastructure. We handle API servers, dependencies, model weights, CUDA, GPUs, and batching.

### Monitoring & Logging
Built-in metrics let you monitor model performance, while detailed logs help you debug specific predictions.

## Get Started

Building with Replicate and Cloudflare, you can wake up with an idea and watch it hit the front page of Hacker News by the time you go to bed.

[Get started with Replicate today →](https://replicate.com)

Measured from the saved file

Links and embedded code

UTF-8 text size
3.3 KB3408 bytes
Token count
853o200k_base encoding
Markdown links
11 distinct URLs
Fenced code blocks
4119 lines in the file

Size measures the captured UTF-8 text, not compressed transfer size. Tokens are counted with a named tokenizer; other models can count differently. Neither measure establishes context compatibility or answer quality.

Project H1
Run AI with an API

Context architecture

How the content is divided

7 H2 sections organize 1 parsed Markdown links. 0 links point to .md or .markdown paths; 0 link occurrences use another hostname. Linked destinations have not been recursively validated.

H2 sectionLinksUTF-8 bytesTokens
What You Can Do With ReplicateLine 5012430
Run Open-Source ModelsLine 150509143
Fine-tune Models with Your Own DataLine 350524132
Deploy Custom ModelsLine 5401011231
PricingLine 920277113
Key FeaturesLine 104047391
Get StartedLine 115120649

Link counts exclude parsed fenced and inline code and resolve relative destinations against the final endpoint. Section sizes cover the text below each H2 until the next H2.

Embedded material

Code, installation and API examples

Fenced blocks
4 closed
Declared languages
python (3), yaml (1)
Package-install commands
0 detected in fenced or inline code
Authentication examples
0 fenced lines match API-key, Authorization, Bearer, OAuth or access-token patterns
HTTP request examples
0 fenced lines match request-method patterns
Authentication links
0 links have authentication-related labels

Embedded example text and links to further documentation are counted separately. A code block does not establish that a sample runs or that an authentication flow succeeds.

Publisher prioritization

The Optional section

No H2 section named “Optional” was detected in this file.

The community proposal uses Optional by convention for secondary links that can be skipped for a shorter context. This label does not establish that everything outside it is critical, or that the material inside it is deprecated.

Machine-readable routes

MCP references and configuration text

No MCP or Model Context Protocol term was detected in the captured file. 0 links have MCP-related labels or paths. 0 fenced lines match mcpServers, mcp_servers or an mcp add command.

These are text and link observations. No MCP server connection, authentication or tool call was tested.

Index and bundle

llms-full.txt companion

Not found at checked URLs

A verified text response establishes a companion at the checked URL. It does not prove the bundle contains all product documentation, that generation is automated, or that it fits an assistant’s context window.

Change evidence

What can be said about freshness

This capture establishes a baseline. Update frequency cannot be determined from one observation.

File changes can reveal documentation edits or navigation changes. They do not by themselves measure product release velocity, accuracy, agent adoption or AI visibility.

Capture identity and measurement method
Requested endpoint
https://replicate.com/llms.txt
Final endpoint
https://replicate.com/llms.txt
HTTP status
200
Content type
text/markdown; charset=utf-8
Text retrieval
Firecrawl literal text capture
Tokenizer
tiktoken 0.14.0 · o200k_base
SHA-256 of saved UTF-8 text
1b527e8c5a0dac11c63eb402f10c4ed8df1368dd91fc61ebb66bde424cdb5712

Counts use a deterministic parser, not a spec-compliance grade. Unusual Markdown and indented code can fall outside its recognized patterns. See the llms.txt proposal and tokenizer implementation.

Related tools and resources

Prefer to write? Send Jon a message.