Overview
The LemonData API is OpenAI-compatible, which means you can use the official OpenAI SDK with just a base URL change. We also support native Anthropic and Gemini request formats.Base URL
Authentication
All API endpoints require authentication using a Bearer token:Supported Endpoints
Chat & Text Generation
| Endpoint | Method | Description |
|---|---|---|
/v1/chat/completions | POST | OpenAI-compatible chat completions |
/v1/messages | POST | Anthropic-compatible messages API |
/v1/responses | POST | OpenAI Responses API |
Embeddings & Rerank
| Endpoint | Method | Description |
|---|---|---|
/v1/embeddings | POST | Create text embeddings |
/v1/rerank | POST | Rerank documents |
Images
| Endpoint | Method | Description |
|---|---|---|
/v1/images/generations | POST | Generate images from text |
/v1/images/edits | POST | Edit images |
Audio
| Endpoint | Method | Description |
|---|---|---|
/v1/audio/speech | POST | Text-to-speech (TTS) |
/v1/audio/transcriptions | POST | Speech-to-text (STT) |
Video
| Endpoint | Method | Description |
|---|---|---|
/v1/videos/generations | POST | Create video generation task |
/v1/videos/generations/{id} | GET | Get video task status |
Music
| Endpoint | Method | Description |
|---|---|---|
/v1/music/generations | POST | Create music generation task |
/v1/music/generations/{id} | GET | Get music task status |
3D Generation
| Endpoint | Method | Description |
|---|---|---|
/v1/3d/generations | POST | Create 3D model generation task |
/v1/3d/generations/{id} | GET | Get 3D task status |
Models
| Endpoint | Method | Description |
|---|---|---|
/v1/models | GET | List all available models |
/v1/models/{model} | GET | Get specific model info |
Response Format
All responses follow a consistent format:Success Response
Error Response
Rate Limits
Rate limits vary by account tier:| Tier | Requests/min |
|---|---|
| User | 1,000 |
| Partner | 1,500 |
| VIP | 2,000 |
OpenAPI Specification
OpenAPI Spec
Download the complete OpenAPI 3.0 specification