[LIVE] [wfu-work/proxy-api-lib] 3 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,152 characters
Status: [LIVE]
Endpoints found:
https://developers.openai.com/api/docs/guides/migrate-to-responses
Source: https://github.com/wfu-work/proxy-api-lib
# proxy-api-lib
[English](README.md) | [įŽäŊ䏿](README.zh-CN.md)
`proxy-api-lib` is a Go client and protocol toolkit for official AI services: OpenAI Platform, ChatGPT/Codex, and model catalogs from DeepSeek, Zhipu, MiMo, and Qwen. It contains no third-party relay logic.
The project keeps these boundaries explicit:
- `proxyapi` and `openai`: the public, stable OpenAI Platform API at `https://api.openai.com/v1`.
- `codexauth` and `chatgpt`: login protocols, token parsing, token refresh, usage limits, and subscription queries for official ChatGPT/Codex login accounts.
- `provider`: a unified entry point for official DeepSeek, Zhipu, MiMo, and Qwen model catalogs, plus DeepSeek balance queries. The original vendor packages remain compatibility entry points.
OAuth account-pool applications such as FreeAI use only the second boundary for upstream access. Platform API keys accepted by `proxyapi` are a separate library capability and are not a fallback credential for `chatgpt`.
The `chatgpt` package calls services on `auth.openai.com` and `chatgpt.com`, but the account usage and subscription endpoints are not part of the public, stable OpenAI Platform API. They can change with the ChatGPT/Codex protocol. Application code should use this package instead of depending directly on the internal JSON responses.
Module path:
```text
github.com/wfu-work/proxy-api-lib
```
## What it owns
- Official OpenAI Responses API, including SSE streaming and tool calls.
- Official Embeddings and Models resources.
- OpenAI API key and caller-managed bearer-token credentials.
- ChatGPT/Codex JWT display-field parsing and OAuth refresh-token exchange.
- Canonical OAuth account-file parsing and normalized export.
- ChatGPT/Codex wham limit windows, earned rate-limit reset credits, account lists, merged `accounts/check` + `subscriptions` data, and subscription expiry/renewal queries.
- Official Codex model discovery and Responses calls with `x-codex-*` response-header preservation.