テーマ
言語

認証

GetVibe API へのリクエストを認可する方法:sk-pv-… キー、Authorization: Bearer ヘッダーと x-api-key ヘッダー、IP 許可リスト。curl、Python、Node の例。

すべてのリクエストは、sk-pv-で始まるあなたのキーで認証されます。2 つのヘッダーがサポートされています — クライアントが期待する方を選んでください。

キーを渡す2つの方法

パラメータータイプ説明
Authorization: BearerheaderOpenAI / Codex CLI 標準。Authorization: Bearer sk-pv-…
x-api-keyheaderAnthropic / Claude Code 形式。x-api-key: sk-pv-… — 同じキーです。
両方のヘッダーは同じキーsk-pv-…を受け付けます。どちらか一方を渡すだけで十分です。

Bearer(OpenAI形式)

curl https://getvibeapi.com/v1/chat/completions \
  -H "Authorization: Bearer $GETVIBE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-6.1-sol","messages":[{"role":"user","content":"ping"}]}'

x-api-key(Anthropic 形式)

# same key, x-api-key header (for Anthropic-format clients such as Claude Code)
curl https://getvibeapi.com/v1/messages \
  -H "x-api-key: $GETVIBE_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-opus-5.5","max_tokens":256,"messages":[{"role":"user","content":"ping"}]}'

IP 許可リスト

キーには IP 許可リストを設定できます。設定されている場合、他のアドレスからのリクエストは 403 を受け取ります。デフォルトではリストは空です — 制限なし。ダッシュボードで設定します。

キーが欠落しているか不正です — 401。レスポンスコードの詳細はエラーと制限のセクションをご覧ください。
api.openai.com からの 403 Country, region, or territory not supported は、GetVibe がお使いの国でブロックされていることを意味するのではなく、GetVibe キーが認識されなかったことを意味します。
GetVibe API 認証 — Bearer と x-api-key | GetVibe API