This skill teaches your coding agent how to integrate LemonData’s 300+ AI APIs just by describing what you need. It is packaged as one shared agent-first skill and works with any coding agent that supports skill or 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.
This page documents a reusable skill packaging layer, not a protocol-compatibility surface. If you need endpoint, SDK, or client setup guidance, use the dedicated integration pages for those tools.
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
Use the canonical non-interactive install command:This installs the shared
lemondata-api-integration skill from the LemonData skills repository.If your tool does not support the installer, copy the skills/lemondata-api-integration/ folder from the repository into your tool’s shared skills or rules directory.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-5.4, 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 coding agent that supports shared skill or rules directories. When the installer is supported,
npx skills add places the shared lemondata-api-integration skill in the detected location automatically.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 support@lemondata.cc