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
热度 23.01
最近更新 2026-05-11 17:40:12

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add cloudcompile/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)