Overview
LemonData works with the official OpenAI SDKs by pointing the client tohttps://api.lemondata.cc/v1.
For new projects, prefer the Responses API. Keep Chat Completions only when a framework, plugin, or legacy code path still expects it.
This is the default LemonData SDK path for OpenAI-compatible usage, but it is not a promise that every Responses-native-only field works identically across every model and routed channel.
Python, JavaScript, and Go have official OpenAI SDKs. PHP works well with OpenAI-compatible community clients, but it is not an official OpenAI SDK.
Type: Native SDKPrimary Path: OpenAI-compatible / OpenAI ResponsesSupport Confidence: Supported core path
Installation
Responses-native-only fields such as some hosted tools,
include, service_tier, and truncation_strategy can depend on native /v1/responses passthrough support from the selected model and routed channel. If that support is unavailable, LemonData returns an explicit 400 or 503 instead of silently pretending the field worked.Configure the Client
Recommended: Responses API
Streaming with Responses
Tools / Function Calling
Vision with Responses
Embeddings
Chat Completions Compatibility
If your framework or plugin still expects Chat Completions, LemonData also supports the standard OpenAI-compatible path:Troubleshooting
Connection Error
Connection Error
- Verify the base URL is exactly
https://api.lemondata.cc/v1 - Check for proxy interference or custom HTTP client overrides
- Make sure your SDK version is current before debugging provider behavior
Authentication Failed
Authentication Failed
- Check that your API key starts with
sk- - Verify the key is active in LemonData dashboard
- Confirm the SDK is sending
Authorization: Bearer ...
Wrong API Path
Wrong API Path
responses.create(...)sends requests to/v1/responseschat.completions.create(...)sends requests to/v1/chat/completions- If your app only supports Chat Completions today, keep it on that compatibility path