登录注册
API 指南使用 Responses API

使用 Responses API

本站兼容 OpenAI 的 Responses 接口(POST /v1/responses),Codex 用的就是这个接口。base_url 与 Chat Completions 相同:https://api.tokenjoy.org/v1。

示例

curl https://api.tokenjoy.org/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${TOKENJOY_API_KEY}" \
  -d '{
        "model": "gpt-5",
        "instructions": "You are a helpful assistant.",
        "input": "Hello!"
      }'

在 Codex 中使用本站,见 接入 Codex。