360 Secure SkillHub
360 安全技能中心

API Health Check

该 Skill 通过运行 Python 脚本,对 OpenAI、Anthropic、Google Gemini、Pollinations、OpenRouter、Stability AI、Groq 等服务的端点发起轻量 HEAD/GET 请求,检查 HTTP 状态码与响应时间,并以 UP、DOWN、SLOW 标记输出状态汇总表,用于排查服务是否可用。可带服务名参数只检查单个服务,不带参数则检查全部。

cloudcompile
cloudcompile
热度 42.31
最近更新 2026-05-11 17:40:12
分类:自动化依赖:代码执行 / 第三方 API应用场景:DevOps / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add api-health-check
Metadata
name
api-health-check
description
Check the health and status of popular AI APIs and services — OpenAI, Anthropic, Pollinations, OpenRouter, Gemini, and more. Use when the user wants to know if an API is down, verify service status, or troubleshoot connectivity issues.

API Health Check

Quickly checks if major AI APIs and services are operational. Perfect for troubleshooting or verifying service availability.

APIs Checked

  • OpenAI (api.openai.com)
  • Anthropic (api.anthropic.com)
  • Google Gemini (generativelanguage.googleapis.com)
  • Pollinations (image.pollinations.ai, text.pollinations.ai)
  • OpenRouter (openrouter.ai)
  • Stability AI (api.stability.ai)
  • Groq (api.groq.com)

Usage

check api status
is openai down?
check pollinations health

How it works

  1. Makes lightweight HEAD/GET requests to API endpoints
  2. Checks HTTP status codes and response times
  3. Reports status: ✅ UP, ❌ DOWN, ⚠️ SLOW
  4. Returns summary table of all services

Script

python scripts/check_apis.py [specific_api_name]

Without arguments, checks all APIs. With argument, checks only that service.

Output Example

API Health Status:
✅ OpenAI      - UP (234ms)
✅ Anthropic   - UP (189ms)
❌ Pollinations - DOWN (timeout)
✅ OpenRouter  - UP (412ms)