Appearance
在线测试 · 通用聊天 · Codex 专用接口
Curl 调用示例
如果你想先快速验证聊天接口是否可用,最直接的方法就是用 Curl。本页只保留鬼魅云通用聊天接口和 GPT-Codex 专用接口,不包含图片生成、Claude 或 Gemini。
API 在线测试
在下方输入你的 API Key,选择要测试的 API 和模型,就可以直接在页面里发起通信测试。
Curl 命令预览
通用聊天示例
大多数 OpenAI 兼容客户端都可以先用这个请求验证。这里使用 https://gvmz.systems/v1/chat/completions。
bash
curl https://gvmz.systems/v1/chat/completions \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {此处填写ApiKey}' \
-d '{
"model": "gpt-5.5",
"messages": [
{
"role": "user",
"content": "你好"
}
],
"stream": false
}'TIP
如果这个请求可以正常返回,说明 Key、BaseURL、模型名和基础网络基本没有问题。之后再接入 OpenCode、Codex、Hermes 等工具会更好排查。
Responses 接口参考
New API 的 Responses 接口使用标准 /v1/responses 路径。Codex、OpenCode 或其它支持 Responses API 的客户端,也应优先配置到 https://gvmz.systems/v1。
bash
curl https://gvmz.systems/v1/responses \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {此处填写ApiKey}' \
-d '{
"model": "gpt-5.5",
"input": [
{
"type": "message",
"role": "user",
"content": [
{
"type": "input_text",
"text": "你好"
}
]
}
],
"stream": true
}'