API使用

Overview


OpenAPI

模型列表

GET https://api.makecoder.com/v1/openapi/v1/models

请求参数


返回


示例

curl -X GET https://api.makecoder.com/v1/openapi/v1/models \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

OpenAI


Anthropic


Google


Health

健康检查

GET https://api.makecoder.com/v1/health

请求参数

This operation does not require authentication

返回

Status

Meaning

Description

Schema

200

OK

Successful Response

Inline

Returns:
    JSONResponse: 包含服务名称、状态、时间戳的 JSON 响应

{
    "service_name":"coder",
    "status":"ok",
    "timestamp":1765337375
}

示例

curl -X GET https://api.makecoder.com/v1/health \
  -H 'Accept: application/json'