Pi에서 Opencode와 함께 Ox Alpha를 사용하려는 분들을 위한 설정
For anyone need to use the Ox Alpha with Opencode in Pi
핵심 요약
Pi 환경에서 Ox Alpha 모델을 연동하기 위한 models.json 설정 코드를 공유합니다.
- 설정 코드 공유 — models.json에 추가할 Ox Alpha 모델 연동용 JSON 스니펫을 제공함
- 모델 사양 명시 — 컨텍스트 윈도우 100만 토큰 및 무료 비용 구조를 포함함
- API 키 필요성 — 사용을 위해 Opencode API 키와 구독이 필요할 것으로 보임
Add this code to models.json:
{
"providers": {
"opencode-zen": {
"apiKey": "...",
"baseUrl": "https://opencode.ai/zen/v1",
"api": "openai-completions",
"models": [
{
"id": "x-preview-f-free",
"name": "Ox Alpha Free",
"reasoning": true,
"thinkingLevelMap": {
"minimal": null,
"low": "low",
"medium": null,
"high": "high",
"xhigh": null,
"max": "max"
},
"input": [
"text",
"image"
],
"contextWindow": 1000000,
"maxTokens": 131072,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
}
}
]
}
}
}

