Theme
Language

Messages (Anthropic) and Responses

/v1/messages (Anthropic format, x-api-key) and /v1/responses — the paths for Claude Code and the Codex CLI. One base_url getvibeapi.com/v1, one key.

Besides /v1/chat/completions, anthropic-format and Responses endpoints are available — for Claude Code and Codex CLI. All three share one base address and one key sk-pv-….

Messages (Anthropic format)

POSThttps://getvibeapi.com/v1/messages

Authorize with the x-api-key: sk-pv-… header (as in the Anthropic API). The body is the Messages format: model, max_tokens, messages. SSE streaming is supported.

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": 1024,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
This is the path for Claude Code: set our base_url and key — see the Integrationssection.

Responses

POSThttps://getvibeapi.com/v1/responses

The Responses endpoint (OpenAI Responses API format) — the path for Codex CLI. Authorization Authorization: Bearer sk-pv-….

Server-side conversation state is not supported: previous_response_iddoes not continue a prior request, and the store field is ignored. Send the full conversation history in the input field of every request.

curl https://getvibeapi.com/v1/responses \
  -H "Authorization: Bearer $GETVIBE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6.1-sol",
    "input": "Hello!"
  }'
GetVibe accepts compatible Messages and Responses bodies but does not promise pass-through: public ids and supported fields may be normalized, and internal response fields and errors are mapped to the public contract.

Token counting: count_tokens

POSThttps://getvibeapi.com/v1/messages/count_tokens

A stub endpoint for compatibility with the Anthropic SDK and Claude Code: they call it automatically before sending a request to estimate the input token count. Authorize with the same key sk-pv-… in x-api-key or Authorization: Bearer.

curl https://getvibeapi.com/v1/messages/count_tokens \
  -H "x-api-key: $GETVIBE_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-5.5",
    "messages": [{"role": "user", "content": "Hello! Who are you?"}]
  }'
{ "input_tokens": 6 }
The counter is a heuristic estimate (~4 characters per token), not an exact tokenizer. Good enough to pre-check limits before a request. The messages and system bodies are passed as in the Anthropic API.
GetVibe API Messages and Responses — Claude Code, Codex | GetVibe API