# The sg.llm.* API

*Source: <https://llms.sgit.ai/documents/api.html> · site v0.2.0 · the markdown twin of this page, generated from it.*

---

[llms.sgit.ai](../index.md) / [documents](index.md) / api

# The sg.llm.* API

The API as the brief describes it: the ten calls, the streaming contract's three guarantees, the nine error codes, the image traps including the 8190 chunking bug, voice, and the table of seven concerns the host handles that an app does not have to. It also sets the instruction this site followed: extract the reference, but generate it rather than hand-copying it.

Document

02__the-sg-llm-api.md

Kind

Reference brief

Length

about 1.3k words

Pack

llms.sgit.ai brief pack v0.33.62, 24 August 2026

Licence

CC BY 4.0, Dinis Cruz, with AI co-authorship

Raw

[briefs/02__the-sg-llm-api.md](../briefs/02__the-sg-llm-api.md) is the source of truth

## What it produced on this site

- [The generated reference](../api/index.md)
- [The traps](../api/traps.md)
- [Why it is generated](../api/index.md)

## The document, in full

Rendered from the raw file below. The raw markdown is the source of truth: this page is presentation, and nothing here is edited.

[Open the raw markdown](../briefs/02__the-sg-llm-api.md)

 [← Every document](index.md) [What is shipped →](../shipped/index.md)
