Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/check-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
node-version: '22'
- name: Install Mintlify CLI
run: npm install --global mint@4.3.51
- name: Check publication exclusions
run: |
node --test scripts/checkPublishedContent.test.mjs
node scripts/checkPublishedContent.mjs
- name: Validate all MDX pages and navigation
run: mint validate
- name: Check internal documentation links
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check-link-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ jobs:
node-version: "22"
cache: "npm"
- run: npm ci
- name: Verify model quickstarts and API schema supplements
run: |
node --test scripts/materializeQuickstarts.test.mjs scripts/supplementOpenApi.test.mjs
node scripts/materializeQuickstarts.mjs --check
- name: Verify snapshot contract
run: npm run snapshot:check
6 changes: 6 additions & 0 deletions .mintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Repository maintenance and validation files, not model/tool documentation.
/scripts/
/util/
/bin/
**/AGENTS.md

MODEL-MATRIX.md
DESIGN.md
CLAUDE.md
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,25 @@ The documentation will be available at `http://localhost:3000` (or `http://local

For more details on Mintlify setup and configuration, visit the [official Mintlify documentation](https://mintlify.com/docs/quickstart).

### Model quickstarts

Shared quickstarts are rendered into literal Markdown code blocks on model pages. This keeps code copyable in both the website and `.md`/LLM exports. Edit the shared template or notebook, then regenerate:

```bash
uv run scripts/generate_snippets.py
node scripts/materializeQuickstarts.mjs
```

The `quickstart` comments in model pages retain the component name and parameters. Edit those parameters to change a model's example, then run the materializer again. CI checks both generated snippets and model-page output.

### Liquid API Reference

The **Hosted API** tab documents the hosted Liquid API served by Liquid Console. The endpoint pages under **API reference** are generated by Mintlify from [`api/openapi.json`](./api/openapi.json). Don't edit that file by hand: it is exported from the endpoint registry in the console repository (`apps/web/lib/api/docs.ts`). After an API change lands there, regenerate it from the console's `apps/web` directory and open a pull request here with the result:
The **Hosted API** tab documents the hosted Liquid API served by Liquid Console. The endpoint pages under **API reference** are generated by Mintlify from [`api/openapi.json`](./api/openapi.json). Export the baseline from the endpoint registry in the console repository (`apps/web/lib/api/docs.ts`), then apply the maintained schema supplements in this repository. The supplements describe runtime-validated fields that are not yet represented completely in the registry; keep them aligned with the endpoint validators when the API changes. After an API change lands there, regenerate it from the console's `apps/web` directory and open a pull request here with the result:

```bash
bun run openapi:export <path to this repo>/api/openapi.json
# From this docs repository:
node scripts/supplementOpenApi.mjs
```

The overview, quickstart, models page, and guides under `api/` are written by hand.
Expand Down
2 changes: 1 addition & 1 deletion api/guides/batch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Input files may be up to 200 MB.
</Step>
<Step title="Upload the file" titleSize="h2">
Request bodies are capped at 4.5 MB, so files are uploaded straight to storage through a presigned URL:

Check warning on line 24 in api/guides/batch.mdx

View check run for this annotation

Mintlify / Mintlify Validation (liquidai) - vale-spellcheck

api/guides/batch.mdx#L24

Did you really mean 'presigned'?

1. Call [`POST /v1/files`](/api/reference/large-uploads/create-upload-url) with the file's `purpose`, `filename`, and size in `bytes`. No file bytes are sent in this call. It returns a file id and a short-lived `upload_url`.
2. `PUT` the file to the `upload_url`. The URL is already signed, so this call carries no API key.
Expand Down Expand Up @@ -73,7 +73,7 @@
A completed batch has an `output_file_id`, and an `error_file_id` if any requests failed. Download each with [`GET /openai/v1/files/{id}/content`](/api/reference/files/retrieve-file-content). Each line of the output is one result, with the `custom_id` of its request, so match results to requests by `custom_id`.

```bash
curl https://api.liquid.ai/openai/v1/files/$OUTPUT_FILE_ID/content \
curl -L "https://api.liquid.ai/openai/v1/files/$OUTPUT_FILE_ID/content" \
-H "Authorization: Bearer $LIQUID_API_KEY" > batch_output.jsonl
```

Expand Down
2 changes: 1 addition & 1 deletion api/guides/decisions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Decision models answer typed questions about a state with calibrated probabilities instead of generated text. One request can ask several questions, and the model answers them all in a single forward pass with no generated tokens. Use them for classification, routing, scoring, yes/no gates, and reading values, passages, and objects from documents and pictures.

The endpoint, [`POST /decisions/v1/systemone`](/api/reference/decision-models/make-decisions), implements [TypeSafe's System One API](https://docs.typesafe.ai/api), so the official TypeSafe SDKs work with the base URL `https://api.liquid.ai/decisions`.

Check warning on line 8 in api/guides/decisions.mdx

View check run for this annotation

Mintlify / Mintlify Validation (liquidai) - vale-spellcheck

api/guides/decisions.mdx#L8

Did you really mean 'SDKs'?

<CodeGroup>

Expand Down Expand Up @@ -85,16 +85,16 @@

| Type | Answers | Use it for |
| ---- | ------- | ---------- |
| Noul | One probability that the answer is yes. | Yes/no gates, moderation, flags. |

Check warning on line 88 in api/guides/decisions.mdx

View check run for this annotation

Mintlify / Mintlify Validation (liquidai) - vale-spellcheck

api/guides/decisions.mdx#L88

Did you really mean 'Noul'?
| Choice | The most likely option, its confidence, and the full distribution over options. | Classification and routing. |
| Score | The most likely level, its confidence, and the full distribution over ordered levels. | Rating and prioritization. |
| Score | A probability-weighted value across ordered levels, its confidence, and the full distribution. | Rating and prioritization. |
| Choice with `multiple` | Every option that applies, each with its own probability. | Tagging and multi-label classification. |
| Text, Number, Date | A value read from the state, with the characters it came from, or "not found". | Extraction from documents, forms, and messages. |
| Number with `range` | An estimate with a likely range. | Counts and quantities. |
| Spans | Every passage of a kind in the state, with its position. | Redaction and highlighting. |
| Box, Boxes | A box around one object in the image, or every instance with a count. | Grounding and counting in pictures. |

Use the TypeSafe SDKs for Noul, Choice, and Score questions. They can't read the other answer types yet, so send typed questions, images, and audio over HTTP: see [Typed Answers](/lfm/models/d1#typed-answers).

Check warning on line 97 in api/guides/decisions.mdx

View check run for this annotation

Mintlify / Mintlify Validation (liquidai) - vale-spellcheck

api/guides/decisions.mdx#L97

Did you really mean 'SDKs'?

Check warning on line 97 in api/guides/decisions.mdx

View check run for this annotation

Mintlify / Mintlify Validation (liquidai) - vale-spellcheck

api/guides/decisions.mdx#L97

Did you really mean 'Noul'?

## Models

Expand Down
12 changes: 8 additions & 4 deletions api/guides/your-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@

How we handle your data depends on the endpoint you use.

## Standard endpoints
## Direct online inference

Liquid may save prompts and outputs and use them to improve our models and services.
The direct API endpoints `POST /openai/v1/chat/completions` and `POST /decisions/v1/systemone` use zero data retention (ZDR).

## ZDR endpoints
For these endpoints, we use request content, including prompts, system instructions, files, and responses, only to process and return the requested response. Other than temporary in-memory processing required to complete the request, we don't log, store, cache, or otherwise retain request content. Any temporary processing data is deleted when the request is complete. We don't use request content to train, fine-tune, evaluate, benchmark, or improve our models or services.

For endpoints identified as zero data retention (ZDR), we use request content, including prompts, system instructions, files, and responses, only to process and return the requested response. Other than temporary in-memory processing required to complete the request, we don't log, store, cache, or otherwise retain request content. Any temporary processing data is deleted when the request is complete. We don't use request content to train, fine-tune, evaluate, benchmark, or improve our models or services.
## Batch files and other surfaces

The Files and Batch APIs store uploaded inputs and generated outputs so asynchronous jobs can read them and you can download results. They are not covered by the online inference ZDR statement above. Do not treat a presigned file upload as temporary in-memory inference.

Check warning on line 16 in api/guides/your-data.mdx

View check run for this annotation

Mintlify / Mintlify Validation (liquidai) - vale-spellcheck

api/guides/your-data.mdx#L16

Did you really mean 'presigned'?

Console playgrounds and third-party platforms can have different data handling. Check the terms and data settings of the surface you use.

## Usage information

Expand Down
16 changes: 9 additions & 7 deletions api/models.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@

Call these through [chat completions](/api/guides/text-generation).

| Model | Input | Output | Context window | Best for |
| ----- | ----- | ------ | -------------- | -------- |
| `lfm3-1.7b` | Text | Text | 128,000 | Fast agents, tool use, and everyday chat. |
| `lfm3-vl-2b` | Text, images | Text | 128,000 | [Vision](/api/guides/vision): describing, reading, and reasoning about images. |
| `lfm3-audio-2b` | Text, audio | Text, speech | 128,000 | [Audio](/api/guides/audio): transcription, translation, and spoken replies. |
| `lfm3-omni-2b` | Text, audio, images | Text, speech | 128,000 | [Audio](/api/guides/audio) and images in one conversation. |
| `lfm2.5-24b-a2b` | Text | Text | 128,000 | Our largest model: a reasoning mixture of experts (24B, 2B active) for harder tasks. |
| Model | Input | Output | Best for |
| ----- | ----- | ------ | -------- |
| `lfm3-1.7b` | Text | Text | Fast agents, tool use, and everyday chat. |
| `lfm3-vl-2b` | Text, images | Text | [Vision](/api/guides/vision): describing, reading, and reasoning about images. |
| `lfm3-audio-2b` | Text, audio | Text, speech | [Audio](/api/guides/audio): transcription, translation, and spoken replies. |
| `lfm3-omni-2b` | Text, audio, images | Text, speech | [Audio](/api/guides/audio) and images in one conversation. |
| `lfm2.5-24b-a2b` | Text | Text | Our largest model: a reasoning mixture of experts (24B, 2B active) for harder tasks. |

Hosted input limits can differ from a checkpoint's native context length. Check the selected model in [Liquid Console](https://console.liquid.ai/dashboard/models) before sizing requests; the open-weight model card alone does not establish the hosted limit.

## Decision models

Expand All @@ -30,4 +32,4 @@

## Open-weight models

Most of these models are also open-weight, so you can run them yourself on laptops, phones, and GPUs. See [Liquid Foundation Models](/lfm/models/complete-library) for every model and how to run it.

Check warning on line 35 in api/models.mdx

View check run for this annotation

Mintlify / Mintlify Validation (liquidai) - vale-spellcheck

api/models.mdx#L35

Did you really mean 'GPUs'?
Loading
Loading