Compatibility API

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.

Environment

OPENAI_BASE_URL=https://api.tokenpatch.com/v1
OPENAI_API_KEY=tp_live_...
OPENAI_MODEL=deepseek-v4-pro

Request

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"}
    ]
  }'

Billing

Compatibility calls are planned for private beta accounts. The first public release focuses on BYOK tokenpatch patch runs.