Skip to main content

Lemonade

@indistinct_talk/lemonadev2026.07.18.2· 8d agoMODELS
01README

Swamp model for interacting with Lemonade AI server — chat, completions, streaming, model lifecycle, system health, audio, images, and backend management via OpenAI-compatible and Lemonade-specific APIs

02Release Notes

Bug fixes for v11.0.0: relax LoadedModelSchema.max_context_window and AvailableModelSchema.components for real server responses, and avoid stack overflow when base64-encoding large binary blobs (audioSpeech, audioGenerate, threeDGenerate, audioTranscribe).

03Models1
@indistinct_talk/lemonadev2026.07.18.2lemonade.ts
fn health()
Check server health status and loaded models
fn systemInfo()
Get system information including devices, GPUs, NPUs, and supported recipes
fn systemStats()
Get current host resource usage statistics
fn stats()
Get performance statistics from the last inference request (tokens, latency)
fn sync()
Sync local model data with the Lemonade Server — fetches models list and health status
fn modelsList()
List all available models registered with the Lemonade Server
fn modelsLoaded()
List models currently loaded in memory with recipe and device details
fn modelFiles(modelId: string, includePaths?: boolean)
List resolved local file metadata for a single model
ArgumentTypeDescription
modelIdstringModel ID (e.g. Qwen3-4B-GGUF)
includePaths?booleanInclude absolute filesystem paths (privacy-sensitive)
fn pull(modelName: string, source?: enum, checkpoints?: record)
Pull (download and install) a model — supports built-in models and custom Hugging Face checkpoints
ArgumentTypeDescription
modelNamestringModel name to pull (e.g. Qwen3-0.6B-GGUF or user.MyModel)
source?enumRemote registry source (default: huggingface)
checkpoints?recordMulti-file checkpoint map (e.g. { main: 'org/repo:file', mmproj: 'org/repo:mmproj' })
fn pullVariants(checkpoint: string)
Enumerate available GGUF quantizations for a Hugging Face checkpoint
ArgumentTypeDescription
checkpointstringHugging Face repo ID (e.g. unsloth/Qwen3-8B-GGUF)
fn delete(modelName: string)
Delete a model from local storage
ArgumentTypeDescription
modelNamestringModel name to delete
fn checkUpdates()
Manually check downloaded models for upstream updates
fn load(modelName: string)
Load a model into memory (installs if necessary)
ArgumentTypeDescription
modelNamestringModel name to load
fn unload()
Unload a model from memory (or all models if none specified)
fn downloadsList()
List active, paused, cancelled, and errored download jobs
fn downloadsControl(id: string, action: enum)
Control a download job — pause, cancel, or remove
ArgumentTypeDescription
idstringDownload job ID (e.g. model:Qwen3-0.6B-GGUF)
actionenumAction to perform
fn chat(model: string, messages: array, temperature?: number, maxTokens?: number, maxCompletionTokens?: number, topP?: number, frequencyPenalty?: number, presencePenalty?: number, seed?: number, stop?: union, tools?: array, toolChoice?: unknown, user?: string, extra?: record)
Chat completions — non-streaming
ArgumentTypeDescription
modelstringModel name (must be loaded)
messagesarrayChat messages
temperature?numberSampling temperature
maxTokens?numberMax tokens to generate
maxCompletionTokens?numberMax completion tokens
topP?numberNucleus sampling parameter
frequencyPenalty?numberFrequency penalty
presencePenalty?numberPresence penalty
seed?numberDeterministic sampling seed
stop?unionStop sequences
tools?arrayAvailable tools
toolChoice?unknownTool choice behavior
user?stringUser identifier for rate limiting
extra?recordAdditional OpenAI params forwarded as-is
fn chatStream(model: string, messages: array, temperature?: number, maxTokens?: number, maxCompletionTokens?: number, topP?: number, frequencyPenalty?: number, presencePenalty?: number, seed?: number, stop?: union, tools?: array, toolChoice?: unknown, user?: string, extra?: record)
Streaming chat completions — parses SSE and accumulates into a final response
ArgumentTypeDescription
modelstringModel name (must be loaded)
messagesarrayChat messages
temperature?numberSampling temperature
maxTokens?numberMax tokens to generate
maxCompletionTokens?numberMax completion tokens
topP?numberNucleus sampling parameter
frequencyPenalty?numberFrequency penalty
presencePenalty?numberPresence penalty
seed?numberDeterministic sampling seed
stop?unionStop sequences
tools?arrayAvailable tools
toolChoice?unknownTool choice behavior
user?stringUser identifier for rate limiting
extra?recordAdditional OpenAI params forwarded as-is
fn completions(model: string, prompt: string, temperature?: number, maxTokens?: number, topP?: number, frequencyPenalty?: number, presencePenalty?: number, stop?: union, seed?: number, extra?: record)
Text completions — legacy OpenAI textCompletion endpoint
ArgumentTypeDescription
modelstringModel name (must be loaded)
promptstringText prompt to complete
temperature?numberSampling temperature
maxTokens?numberMax tokens to generate
topP?numberNucleus sampling parameter
frequencyPenalty?numberFrequency penalty
presencePenalty?numberPresence penalty
stop?unionStop sequences
seed?numberDeterministic sampling seed
extra?recordAdditional OpenAI params forwarded as-is
fn embeddings(model: string, input: union, extra?: record)
Generate embeddings for input text
ArgumentTypeDescription
modelstringEmbedding model name (must be loaded)
inputunionInput text(s) to embed
extra?recordAdditional OpenAI params forwarded as-is
fn responses(model: string, input: union, instructions?: string, extra?: record)
OpenAI Responses API for structured outputs
ArgumentTypeDescription
modelstringModel name
inputunionInput messages or items
instructions?stringSystem instructions
extra?recordAdditional params forwarded as-is
fn audioTranscribe(model: string, file: string, language?: string, prompt?: string, timestampGranularities?: array)
Transcribe audio file to text
ArgumentTypeDescription
modelstringWhisper model name
filestringAudio file path (local path uses multipart upload; base64 string sent as JSON)
language?stringLanguage code (e.g. en, ja)
prompt?stringOptional transcription prompt
timestampGranularities?arrayOutput granularities
fn audioSpeech(model: string, input: string, voice?: string, responseFormat?: enum, speed?: number)
Generate speech from text
ArgumentTypeDescription
modelstringTTS model name
inputstringText to synthesize
voice?stringVoice to use
responseFormat?enumOutput format (mp3, wav, opus, pcm)
speed?numberSpeech speed (0.25–4.0)
fn audioGenerate(model: string, prompt: string, duration?: number, steps?: number, cfg?: number, seed?: number)
Generate music or sound effects from text prompt
ArgumentTypeDescription
modelstringMusic generation model name
promptstringText prompt for music/SFX
duration?numberDuration in seconds
steps?numberNumber of inference steps
cfg?numberClassifier-free guidance strength (ThinkSound only)
seed?numberRandom seed for reproducibility
fn imagesGenerate(model: string, prompt: string, negativePrompt?: string, numImages?: number, size?: string, steps?: number, cfgScale?: number, seed?: number, extra?: record)
Generate images from text prompts
ArgumentTypeDescription
modelstringImage generation model name (e.g. SD-Turbo, SD-1.5)
promptstringImage prompt
negativePrompt?stringNegative prompt
numImages?numberNumber of images to generate (n=1 supported)
size?stringImage size as WIDTHxHEIGHT (e.g. 512x512, 256x256)
steps?numberGeneration steps
cfgScale?numberClassifier-free guidance scale
seed?numberRandom seed for reproducibility
extra?recordAdditional params forwarded as-is
fn imagesEdit(model: string, image: string, mask?: string, prompt: string, numImages?: number, size?: string, steps?: number, cfgScale?: number, seed?: number, extra?: record)
Edit an existing image with a mask and prompt
ArgumentTypeDescription
modelstringImage generation model name
imagestringLocal file path (uses multipart upload) or base64-encoded image
mask?stringMask image for inpainting
promptstringEdit prompt
numImages?numberNumber of images (1-10)
size?stringOutput size as WIDTHxHEIGHT (e.g. 512x512)
steps?numberGeneration steps
cfgScale?numberClassifier-free guidance scale
seed?numberRandom seed for reproducibility
extra?recordAdditional params forwarded as-is
fn imagesVariation(model: string, image: string, numImages?: number, size?: string, extra?: record)
Create a variation of an existing image
ArgumentTypeDescription
modelstringImage generation model name
imagestringLocal file path (uses multipart upload) or base64-encoded image
numImages?numberNumber of variations (1-10)
size?stringOutput size as WIDTHxHEIGHT (e.g. 512x512)
extra?recordAdditional params forwarded as-is
fn threeDGenerate(model: string, image: string, resolution?: union, bgRemoval?: enum, seed?: number, dryRun?: boolean)
Generate a textured 3D mesh (GLB) from an image
ArgumentTypeDescription
modelstring3D generation model name (e.g. TRELLIS-3D)
imagestringBase64-encoded input image (optionally a data: URL)
resolution?unionCascade resolution: 512, 1024, or 1536
bgRemoval?enumBackground removal mode
seed?numberRandom seed for reproducibility
dryRun?booleanIf true, validate inputs without generating
fn backendInstall(recipe: string, backend: string, extra?: record)
Install or update a backend (llamacpp, whispercpp, cloud, etc.)
ArgumentTypeDescription
recipestringRecipe name (e.g. llamacpp, whispercpp, sd-cpp, flm)
backendstringBackend name within the recipe (e.g. vulkan, rocm, cpu, cloud)
extra?recordAdditional params forwarded as-is (e.g. stream, force)
fn backendUninstall(recipe: string, backend: string, extra?: record)
Remove a backend
ArgumentTypeDescription
recipestringRecipe name (e.g. llamacpp, whispercpp)
backendstringBackend name to remove (e.g. vulkan, cpu)
extra?recordAdditional params forwarded as-is
fn cloudAuth(provider: string, apiKey: string, extra?: record)
Set or update a cloud provider API key
ArgumentTypeDescription
providerstringCloud provider (e.g. hf for HuggingFace)
apiKeystringAPI key
extra?recordAdditional params forwarded as-is
fn cloudClearAuth(provider: string)
Clear a cloud provider API key
ArgumentTypeDescription
providerstringCloud provider to clear (e.g. hf)

Resources

models(1d)— List of available models from the Lemonade Server
health(ephemeral)— Lemonade Server health status and loaded models
systemInfo(ephemeral)— System information and device enumeration
systemStats(ephemeral)— Current host resource usage (CPU, memory, disk)
requestStats(ephemeral)— Performance stats from the last inference request
downloadJobs(ephemeral)— Active and recent model download jobs
chatOutput(ephemeral)— Chat completion output
responsesOutput(ephemeral)— Responses API output
completionOutput(ephemeral)— Text completion output
embeddingOutput(ephemeral)— Embedding output
audioOutput(ephemeral)— Audio generation/transcription output
imageOutput(ephemeral)— Image generation output
threeDOutput(ephemeral)— 3D mesh generation output (GLB)
checkUpdatesOutput(ephemeral)— Model update check results
modelFilesOutput(ephemeral)— Resolved local file metadata for a model
04Previous Versions3
2026.07.18.1

Added v11.0.0 support: 3D generation (threeDGenerate), model update checks (checkUpdates), model file listing (modelFiles), ModelScope source selection on pull, collection.router x_lemonade_route fields.

Modified 1 models

2026.07.16.2

Re-publish to re-verify the public repository (v10.10.0 support); no functional changes

2026.07.16.1

Initial release with v10.10.0 support

05Stats
A
100 / 100
Downloads
0
Archive size
42.3 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels