Vichar Docs

Introduction

Vichar is an OpenAI-compatible API gateway. One API key, one endpoint, many models.

Vichar gives your applications a single OpenAI-compatible API for models from many labs. You get one API key, one base URL, per-request cost tracking, and automatic provider failover.

  • Base URL: https://api.vichar.io/v1
  • Dashboard: app.vichar.io to create keys, top up credits, and inspect usage
  • Model list: vichar.io/models or GET /v1/models

How it works

You send a standard OpenAI chat-completions request with a vichar-* model ID. Vichar routes it to a healthy provider serving that model, meters the tokens, and deducts the cost from your prepaid credits. If a provider fails, the request is retried on another provider for the same model when one is available.

curl https://api.vichar.io/v1/chat/completions \
  -H "Authorization: Bearer $VICHAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "vichar-sonnet-5.5",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

What is included

Vichar dashboard overview
  • OpenAI-compatible /v1/chat/completions, /v1/models, and /v1/key
  • Anthropic-compatible /v1/messages
  • Streaming (SSE), tool calling, structured outputs, reasoning controls, and image input on supported models
  • Prepaid pay-per-token billing with a 5% platform fee on top-ups
  • Per-key spend limits, workspace roles, activity log, and analytics

Getting help

Open Help & support from the dashboard sidebar or the account menu to start a conversation with our team. Replies appear in the conversation and in the notification bell. Mark a conversation resolved when you are done; replying reopens it.

Next: Quick start.

How is this guide?

On this page