本文へ移動
メイン ドキュメント
ドキュメント

Any OpenAI SDK

Verified

OpenAI SDK なら 1 行のベース URL 差し替えで動きます。

Setup

Shell
from openai import OpenAI
client = OpenAI(
  base_url="https://api.kotoba.cloud/v1",
  api_key="kc_pat_<your-token>",
)
r = client.chat.completions.create(
  model="qwen3.8-flash-next-whitehacker",
  messages=[{"role": "user", "content": "Reply with exactly: OK"}],
)

The research gates (verification, scope, free quota) are identical to the cookie session; the token only removes the origin gate.

← All tools