Documentation Index
Fetch the complete documentation index at: https://docs.lemondata.cc/llms.txt
Use this file to discover all available pages before exploring further.
Ikhtisar
LemonData mendukung tiga format API native dengan satu API key. Pilih format yang paling sesuai dengan kasus penggunaan Anda - tidak perlu mengubah konfigurasi.Format OpenAI
/v1/chat/completions
Format standar, kompatibilitas paling luasFormat Anthropic
/v1/messages
Extended thinking, fitur native ClaudeFormat Gemini
/v1beta/models/:model:generateContent
Integrasi ekosistem GoogleMengapa Multi-Format?
| Manfaat | Deskripsi |
|---|---|
| Tanpa berpindah SDK | Gunakan model apa pun dengan SDK pilihan Anda |
| Fitur native | Akses kemampuan spesifik format |
| Native-first migration | Keep native provider routes when behavior matters; use /v1 OpenAI compatibility for existing OpenAI-style clients |
| Penagihan tunggal | Satu akun, satu API key, semua format |
Perbandingan Format
| Fitur | OpenAI | Anthropic | Gemini |
|---|---|---|---|
| Endpoint | /v1/chat/completions | /v1/messages | /v1beta/models/:model:generateContent |
| Auth Header | Authorization: Bearer | x-api-key | Authorization: Bearer |
| Prompt Sistem | Dalam array messages | Field system terpisah | Dalam systemInstruction |
| Extended Thinking | ❌ | ✅ | ❌ |
| Streaming | ✅ SSE | ✅ SSE | ✅ SSE |
| Tool Calling | ✅ | ✅ | ✅ |
| Vision | ✅ | ✅ | ✅ |
Format OpenAI
Use this compatibility route for existing OpenAI SDK integrations and portable chat or embedding flows. For Claude or Gemini native behavior, use the Anthropic or Gemini format below.- Penggunaan umum
- Integrasi yang sudah menggunakan OpenAI SDK
- Kompatibilitas maksimal
Format Anthropic
API Native Anthropic Messages. Diperlukan untuk fitur spesifik Claude seperti extended thinking.Extended Thinking (Claude Opus 4.6)
Hanya tersedia dalam format Anthropic:- Fitur spesifik Claude
- Mode extended thinking
- Pengguna Anthropic SDK native
Format Gemini
Format native Google Gemini untuk integrasi ekosistem Google.Streaming
- Integrasi Google Cloud
- Kode yang sudah menggunakan Gemini SDK
- Fitur native Gemini
/upload/v1beta/files, /v1beta/files, /v1beta/files:register, dan /v1beta/cachedContents. Files memakai channel upstream yang kompatibel dengan Gemini File API; resource Cache eksplisit juga dapat dirutekan melalui channel Vertex AI. Resource yang dibuat melalui LemonData diikat ke channel/key upstream yang sama untuk panggilan generateContent berikutnya.
Batas kompatibilitas tool
Function tool dapat dikonversi antar format jika rute tujuan mendukungnya. Tool native milik provider harus tetap berada di rute native-nya:- Tool hosted dan native OpenAI Responses seperti
tool_search,web_search,file_search,code_interpreter, MCP, shell/apply_patch, dan tool computer-use memerlukan/v1/responses. - Tool server/native Anthropic seperti
web_search_*,web_fetch_*,code_execution_*,tool_search_*, bash, computer-use, dan text-editor memerlukan/v1/messages. - Tool bawaan Gemini seperti
googleSearch,codeExecution,urlContext,computerUse, dan fieldtoolsserupa memerlukan/v1beta.
Memilih Format yang Tepat
Panduan Migrasi
Dari OpenAI Official API
Dari Anthropic Official API
Dari Google AI Studio
Kompatibilitas Lintas-Model
Keajaiban LemonData: gunakan SDK apa pun dengan model apa pun. Gateway secara otomatis menangani konversi format.Compatibility SDK → Portable Chat
OpenAI SDK → Portable Chat Models
Perbandingan Industri
| Platform | OpenAI Format | Anthropic Format | Gemini Format | Responses API |
|---|---|---|---|---|
| LemonData | ✅ All models | ✅ All models | ✅ All models | ✅ All models |
| OpenRouter | ✅ All models | ❌ | ❌ | ❌ |
| Together AI | ✅ All models | ❌ | ❌ | ❌ |
| Fireworks | ✅ All models | ❌ | ❌ | ❌ |
Meskipun cross-format bekerja untuk sebagian besar fitur, fitur spesifik format (seperti Anthropic extended thinking) memerlukan format native.