AGENT SKILL
free-api-discovery
Discover which free or low-cost AI APIs are reachable from the current environment, verify them safely, and recommend a task-to-provider routing plan.
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- free-api-discovery
- tags
- [ "ai", "api", "discovery", "llm", "model", "free", "devops" ]
- version
- 1.0.1
- description
- Discover which free or low-cost AI APIs are reachable from the current environment, verify them safely, and recommend a task-to-provider routing plan.
03 SKILL.md 正文
Free AI API Discovery and Routing
When to use
- You need to find which AI APIs are reachable from the current environment.
- You want a low-cost fallback when a preferred provider is unavailable.
- You need a simple routing recommendation for chat, code, speech, or multimodal tasks.
Workflow
- Check network reachability. Probe candidate endpoints with a short timeout and record whether the host is reachable.
- Verify credentials only after approval. Ask for the minimum key needed and avoid printing full secrets in logs.
- Test one capability at a time. Confirm chat, model listing, speech, or image endpoints separately.
- Recommend routing. Map each task type to the lowest-cost reliable provider that actually worked.
Example reachability probe
import socket
import ssl
import urllib.error
import urllib.request
socket.setdefaulttimeout(8)
ctx = ssl.create_default_context()
services = {
"Groq": "https://api.groq.com",
"OpenRouter": "https://openrouter.ai/api/v1",
"DeepSeek": "https://api.deepseek.com",
"Mistral": "https://api.mistral.ai/v1",
}
for name, url in services.items():
try:
req = urllib.request.Request(url)
with urllib.request.urlopen(req, context=ctx, timeout=6) as resp:
print(f"{name}: HTTP {resp.status}")
except urllib.error.HTTPError as exc:
print(f"{name}: HTTP {exc.code} (reachable, auth may be required)")
except Exception as exc:
print(f"{name}: not reachable ({exc})")
Recommended output
- Reachable providers
- Providers that need valid credentials
- Best provider by task type
- Cost or quota notes
- Risks or missing coverage
Guardrails
- Do not store API keys unless the user explicitly approves it.
- Mask secrets in notes and logs.
- Keep routing recommendations based on verified results, not assumptions.
- Treat provider availability and quotas as time-sensitive and re-check when needed.
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
★ 3
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
★ 3
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
★ 3
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
★ 3
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
★ 3
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.
★ 3