This skill teaches your coding agent how to integrate any of LemonData’s 300+ AI APIs by just describing what you need. It works with Claude Code, Cursor, GitHub Copilot, Windsurf, and any tool that supports skill/rules files.The API is Agent-First — even if the agent guesses a model name wrong, the error response tells it exactly how to fix it.
How It Works
- You describe what you need — “I want to use GPT-4 in my Python project”
- The agent calls the API — it may guess a model name or endpoint
- If anything goes wrong — the API returns structured hints (
did_you_mean,suggestions,retry_after) - The agent self-corrects — reads the hints and retries with the right parameters
- You get working code — typically on the first or second attempt
Install
- npx (Recommended)
- Claude Code
- Cursor
- GitHub Copilot
Installs to all detected coding agents automatically:Supports: Claude Code, Cursor, GitHub Copilot, and more.
Verify Installation
Ask your coding agent:lemondata-api-integration, the installation was successful.
Get Your API Key
Visit LemonData
Go to lemondata.cc
Get API Key
Navigate to Dashboard → API Keys and create a new key
Examples
Chat Completion
You say:gpt5), the API returns:
did_you_mean, corrects the model name, and retries — all automatically.
Image Generation
You say:Speech Recognition
You say:/v1/audio/transcriptions endpoint and audio file handling.
Agent-First Error Recovery
Every error response includes structured hints that any coding agent can parse. See the full Agent-First API reference for details.| Error | What the API Returns | What the Agent Does |
|---|---|---|
| Wrong model name | did_you_mean + suggestions | Auto-corrects and retries |
| Insufficient balance | balance_usd + cheaper suggestions | Switches to affordable model |
| Model unavailable | alternatives + retry_after | Switches to available model |
| Rate limited | retry_after (exact seconds) | Waits and retries |
| Context too long | suggestions with larger models | Switches to bigger context model |
Native Endpoint Optimization
When you call/v1/chat/completions with a Claude or Gemini model, the API returns optimization headers:
Model Discovery
No need to search documentation:Supported Capabilities
| Type | Examples |
|---|---|
| Chat | GPT-4o, Claude, Gemini, DeepSeek |
| Image Generation | Midjourney, Flux, Stable Diffusion |
| Video Generation | Sora, Runway, Kling, Luma AI |
| Music Generation | Suno |
| 3D Models | Tripo3D |
| Audio | Text-to-Speech, Speech-to-Text |
| Embeddings | text-embedding-3 |
| Rerank | bce-reranker, qwen3-rerank |
Best Practices
API Key Security
Use environment variables. Never commit keys to git or expose them in frontend code.
Cost Management
Set usage limits in your dashboard. Check
error.balance_usd to monitor costs programmatically.Be Direct
Say “I want to generate images in Python” instead of “Does LemonData have an image API?”
Describe Your Scenario
“I’m building a chatbot with GPT-4” gives the agent more context than “Use GPT-4”.
FAQ
Skill not triggering automatically?
Skill not triggering automatically?
Try mentioning “LemonData” or “LemonData API” in your request:
How does the API help the agent find the right model?
How does the API help the agent find the right model?
LemonData’s Agent-First API returns structured error hints. If the agent guesses a wrong model name, the error includes
did_you_mean with the correct name and suggestions with alternatives. The agent reads these and auto-corrects on the next attempt.Which coding agents are supported?
Which coding agents are supported?
Any tool that supports skill/rules files: Claude Code, Cursor, GitHub Copilot, Windsurf, and more. The
npx add-skill installer auto-detects and installs to all supported tools.How to update the skill?
How to update the skill?
Re-run the installer:
Resources
Agent-First API
Full reference for structured error hints
API Documentation
Complete API reference
Models
Browse all 300+ available models
llms.txt
Machine-readable API overview for AI agents
Have questions? Check our GitHub Issues or contact [email protected]