OpenAI 호환 엔드포인트로 모델을 호출하고 OpenToken 게이트웨이를 통해 응답을 실시간으로 스트리밍합니다.
curl https://api.opentoken.kr/v1/chat/completions \
-H "Authorization: Bearer $OPENTOKEN_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-haiku-4-5",
"stream": true,
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Say the single word: pong"}
],
"temperature": 0.7
}'