liter-llm

v2.7.8
io.github.xberg-io/liter-llm Checked 3 hours ago Published 2 days ago

Universal LLM API client MCP server: chat, embeddings and tools across 170+ providers.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cancel_batch

Cancel an in-progress batch processing job

ParameterTypeDescription
batch_id *stringThe batch job identifier.

cancel_response

Cancel an in-progress response (Responses API)

ParameterTypeDescription
response_id *stringThe response identifier.

chat

Send a chat completion request to an LLM

ParameterTypeDescription
messages *Array of message objects with `role` and `content` fields.
model *stringModel name (e.g. "openai/gpt-4o", "anthropic/claude-sonnet-4-20250514").
max_tokensinteger | nullMaximum number of tokens to generate.
temperaturenumber | nullSampling temperature (0.0 to 2.0).

create_batch

Create a new batch processing job

ParameterTypeDescription
completion_window *stringTime window for batch completion (e.g. "24h").
endpoint *stringAPI endpoint for batch processing (e.g. "/v1/chat/completions").
input_file_id *stringFile ID of the JSONL input file.

create_file

Upload a file to the LLM provider

ParameterTypeDescription
file_base64 *stringBase64-encoded file data.
filename *stringFilename for the uploaded file.
purpose *stringPurpose of the file (e.g. "assistants", "batch", "fine-tune", "vision").

create_response

Create a new response (Responses API)

ParameterTypeDescription
input *Input content for the response (string or structured input).
model *stringModel name for the response.

delete_file

Delete an uploaded file

ParameterTypeDescription
file_id *stringThe file identifier.

embed

Generate text embeddings for the given input

ParameterTypeDescription
input *Input text or array of texts to embed.
model *stringEmbedding model name.

file_content

Retrieve the raw content of an uploaded file

ParameterTypeDescription
file_id *stringThe file identifier.

generate_image

Generate images from a text prompt

ParameterTypeDescription
prompt *stringText description of the desired image.
modelstring | nullImage generation model name.
ninteger | nullNumber of images to generate.
sizestring | nullImage size (e.g. "1024x1024").

list_batches

List batch processing jobs

ParameterTypeDescription
afterstring | nullCursor for pagination (return batches after this ID).
limitinteger | nullMaximum number of batches to return.

list_files

List uploaded files

ParameterTypeDescription
limitinteger | nullMaximum number of files to return.
purposestring | nullFilter by purpose.

list_models

List available models from configured providers

moderate

Check content against moderation policies

ParameterTypeDescription
input *Text or array of texts to moderate.
modelstring | nullModeration model name.

ocr

Extract text from an image or document via OCR

ParameterTypeDescription
model *stringOCR model name.
image_base64string | nullBase64-encoded image data.
image_urlstring | nullURL of the image to process.
media_typestring | nullMIME type of the base64-encoded image (e.g. "image/png", "image/jpeg"). Defaults to "image/png" when omitted.

rerank

Rerank documents by relevance to a query

ParameterTypeDescription
documents *arrayList of documents to rerank.
model *stringReranking model name.
query *stringQuery to rank documents against.

retrieve_batch

Retrieve a batch processing job by ID

ParameterTypeDescription
batch_id *stringThe batch job identifier.

retrieve_file

Retrieve metadata for an uploaded file

ParameterTypeDescription
file_id *stringThe file identifier.

retrieve_response

Retrieve a response by ID (Responses API)

ParameterTypeDescription
response_id *stringThe response identifier.

speech

Generate speech audio from text (text-to-speech)

ParameterTypeDescription
input *stringText to convert to speech.
model *stringText-to-speech model name.
voice *stringVoice identifier (e.g. "alloy", "echo", "nova").

transcribe

Transcribe audio to text (speech-to-text)

ParameterTypeDescription
file_base64 *stringBase64-encoded audio file data.
model *stringTranscription model name.