@host = 127.0.0.1 #@host = [2409:8a3c:2730:1840:ad89:a71:d6e1:ff67] #@host = 10.126.126.1 @port = 8317 @bearer = a1234567 @managementKey = a1234567 # http://127.0.0.1:8317/v1 ### 获取模型列表 GET http://{{host}}:{{port}}/v1/models Authorization: Bearer {{bearer}} ### 获取 usage GET http://{{host}}:{{port}}/v0/management/usage X-Management-Key: a1234567 ### Chat Completions 测试 POST http://{{host}}:{{port}}/v1/chat/completions Authorization: Bearer {{bearer}} Content-Type: application/json { "model": "gpt-5.4", "messages": [ { "role": "user", "content": "写一个C++ hello world" } ] } ### ### Responses API 测试 POST http://{{host}}:{{port}}/v1/responses Authorization: Bearer {{bearer}} Content-Type: application/json { "model": "gpt-5.4", "input": "用C++写一个快速排序" }