Environment
OPENAI_BASE_URL=https://api.tokenpatch.com/v1 OPENAI_API_KEY=tp_live_... OPENAI_MODEL=deepseek-v4-pro
The structured tokenpatch executor is the primary product path. Use this OpenAI-compatible endpoint only for compatibility scenarios that cannot use tokenpatch patch runs directly.
OPENAI_BASE_URL=https://api.tokenpatch.com/v1 OPENAI_API_KEY=tp_live_... OPENAI_MODEL=deepseek-v4-pro
curl https://api.tokenpatch.com/v1/chat/completions \
-H "Authorization: Bearer tp_live_..." \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-pro",
"messages": [
{"role": "user", "content": "Explain this diff"}
]
}'Compatibility calls are planned for private beta accounts. The first public release focuses on BYOK tokenpatch patch runs.