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
- JavaScript
- Python
- cURL
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:| Context | Description |
|---|---|
email | Professional email communication |
chat | Casual chat/messaging |
document | Formal documents/reports |
message | Short messages/notifications |
social | Social media posts |
Best Practices
Prompt Engineering
Prompt Engineering
- 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
Streaming
Streaming
- Use streaming for better UX - Handle connection errors gracefully - Buffer chunks for smooth display - Implement timeout handling
Cost Optimization
Cost Optimization
- Cache common responses - Use shorter prompts when possible - Enable chat history for context - Monitor token usage
Text Correction
Text Correction
- 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:| Metric | Cost |
|---|---|
| Per Token | ~$0.00002 |
API Reference
For detailed API documentation, see:Chat
Complete API reference with all parameters and examples