Skip to main content

Overview

60db’s LM (Large Language Model) API provides intelligent chat completions with advanced text correction capabilities, streaming responses, and function calling support. Our Small Language Model (SLM) is optimized for fast, efficient responses.

Features

OpenAI Compatible

Drop-in compatible with OpenAI’s chat completion format

Text Correction

Smart text correction with dictionary and style options

Real-time Streaming

Server-Sent Events for instant response streaming

Function Calling

Built-in tool/function calling support

Basic Usage

Streaming Responses

Real-time streaming with Server-Sent Events:

Function Calling (Tools)

Define tools the model can use:

Streaming Response (SSE)

Application Contexts

Supported contexts for text correction:

Best Practices

  • Be specific in your system prompt
  • Provide examples for few-shot learning
  • Use appropriate tone for your use case
  • Test different prompts for optimal results
  • Use streaming for better UX - Handle connection errors gracefully - Buffer chunks for smooth display - Implement timeout handling
  • Cache common responses - Use shorter prompts when possible - Enable chat history for context - Monitor token usage
  • Use dictionary for domain-specific terms
  • Set appropriate app context
  • Test style options for your use case
  • Combine multiple style options

Use Cases

Customer Support Chatbot

Text Correction Service

AI Assistant with Tools

Pricing

Charges are based on token usage: Token usage is tracked and billed to your workspace. Monitor usage via the Analytics API.

API Reference

For detailed API documentation, see:

Chat

Complete API reference with all parameters and examples