Theme
Language

Authentication

How to authorize requests to GetVibe API: sk-pv-… keys, the Authorization: Bearer and x-api-key headers, and IP allowlisting. Examples in curl, Python and Node.

Every request is authorized with your key, which starts with sk-pv-. Two headers are supported — pick whichever your client expects.

Two ways to pass the key

ParameterTypeDescription
Authorization: BearerheaderThe OpenAI / Codex CLI standard. Authorization: Bearer sk-pv-…
x-api-keyheaderThe Anthropic / Claude Code format. x-api-key: sk-pv-… — the same key.
Both headers accept the same key sk-pv-…. Passing either one is enough.

Bearer (OpenAI style)

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 style)

# 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 allowlist

A key can have an IP allowlist. If set, requests from other addresses get a 403. By default the list is empty — no restriction. Configured in your dashboard.

Missing or wrong key — 401. More on response codes in the Errors and limitssection.
A 403 Country, region, or territory not supported from api.openai.com means your GetVibe key was not picked up, not that GetVibe is blocked in your country.
GetVibe API authentication — Bearer and x-api-key | GetVibe API