Documentation

One key, one base URL, your existing SDK.

Everything needed to make the first request, and to understand what it cost. API VERSE speaks three request formats, so the client you already have keeps working — you change the base URL and the key, and nothing else.

Quick start

  1. 01
    Sign up with Google.
  2. 02
    Top up your wallet by UPI or netbanking through PayU — minimum ₹100.
  3. 03
    Create an API key in the console. It is shown once, at creation — copy it and store it somewhere safe.
  4. 04
    Make your first request.

Authentication

Every request needs your API key in the Authorization header:

request header
1  Authorization: Bearer sk-live-your-key-here

Keys go in a header, never the URL: the Gemini route also accepts x-goog-api-key, and refuses ?key=.

Keys are never shown again after creation — they are stored hashed, so there is no plaintext for the console to show you. If you lose one, revoke it and create a new one. There is no recovery.

Endpoints

Three request formats are supported, matching the SDK you already use:

FormatBase URLUse when
OpenAI-compatiblehttps://apiverse.in/v1Using the OpenAI SDK, or calling GPT models.
Anthropic nativehttps://apiverse.in/anthropicUsing Claude models — required for prompt caching to work.
Gemini nativehttps://apiverse.in/geminiUsing Gemini models — required for native features to work.
Model listhttps://apiverse.in/v1/modelsGET every model id your key can call, in OpenAI format. Free; needs your key.
Imageshttps://apiverse.in/v1/images/generationsPOST to generate images, in OpenAI format. Billed per image or per token, depending on the model.
Embeddingshttps://apiverse.in/v1/embeddingsPOST to create embeddings, in OpenAI format. Billed on input tokens.
Videoshttps://apiverse.in/v1/videosPOST submits a video job and returns its id; GET /v1/videos/{id} returns its status and, once finished, the video. Billed when the job completes.

Switching models doesn’t mean switching endpoints. Change the model field inside your request — same URL, same key, every time:

request bodyjson
1  {
2    "model": "claude-sonnet-5",
3    "messages": [{"role": "user", "content": "Hello"}]
4  }

Example request

curl · native Anthropicbash
1  curl https://apiverse.in/anthropic/v1/messages \
2    -H "Authorization: Bearer sk-live-your-key-here" \
3    -H "Content-Type: application/json" \
4    -d '{
5      "model": "claude-sonnet-5",
6      "max_tokens": 1024,
7      "messages": [{"role": "user", "content": "Hello"}]
8    }'

Pricing

Every model’s real, current price is on the Models page. Prices there are shown in USD, matching the provider’s own published rate — check any row against Anthropic’s, OpenAI’s or Google’s pricing page and it will match.

What you are actually charged is that rate converted to rupees at ₹97.743 to the dollar, plus a 9% margin. That conversion rate is not the mid-market rate: it is the mid-market rate with the 5.1% fee our card charges to buy dollars already included, passed through at cost. The two compound, so the all-in cost over mid-market is 14.56%. Only the token counts the provider returns are ever priced — never an estimate of what you sent — and every call is itemised in ₹ on your Cost dashboard.

Rate limits

60 requests per minute, per API key, counted in fixed 60-second windows. A request over the limit is refused with a 429 carrying a retry-after header, and is not billed. If you need a higher limit for a specific use case, contact support.

Requests also have a concurrency limit: at most five in progress per account, across all of its keys. A streamed request counts until its stream ends. A sixth is refused with a 429 of type pending_limit_error, is not billed, and can be retried as soon as one finishes.

Image and video generation have a separate concurrency limit: at most three generations in progress per account, across all of its keys. An image counts until its response returns; a video counts from submission until it is completed or has failed — poll GET /v1/videos/{id} to collect it. A fourth is refused with a 429 of type pending_limit_error, is not billed, and can be retried as soon as one finishes.

Errors

CodeMeaning
400The request body is not valid JSON, has no model field, or asks /v1/responses to recall an earlier turn. Or, with error code long_context_unpriced, a grok-4.7 prompt of about 200,000 tokens or more, which is billed at a long-context rate we cannot price yet. Rejected before it reaches the provider.
401Missing, invalid or revoked API key.
402Wallet balance is ₹0, or this request could cost more than your balance allows. Every request is checked before it is sent: its most expensive possible outcome (your input plus the model’s maximum output, or plus your max_tokens for claude-haiku-4.5, claude-sonnet-5 and claude-opus-5.5 on /anthropic) must fit within what your other requests in progress leave of your balance, plus an allowance of the same amount again, up to ₹100. The message gives the figures. Top up, wait for running requests to finish, lower max_tokens, or choose a model with a smaller maximum output. You are not charged.
403Account suspended. Or, with error type insecure_transport, the request was sent over plain HTTP: revoke that key and use https.
404Error code model_not_found: the model does not exist or is not available. On /anthropic, Anthropic-style ids such as claude-opus-5-5 and claude-haiku-4-5-20251001 are accepted for the catalog’s claude-opus-5.5 and claude-haiku-4.5; elsewhere, use the catalog id.
413Error type request_too_large: the request body is larger than 1 MB. Reduce the image or PDF size. You are not charged.
429Rate limit exceeded — the response carries retry-after and x-ratelimit-limit headers. Or, with error type pending_limit_error, the account already has five requests, or three image or video generations, in progress.
502The provider could not be reached.
503Error type service_unavailable: the service is temporarily unavailable. You have not been charged for the request. Retry after a few minutes — the response carries a retry-after header. The same type is returned when a single request is temporarily too large to accept: try a smaller model, or retry later.
504Error type upstream_timeout: the provider did not respond in time — 600 seconds for a whole answer, 300 seconds for a stream’s first byte, 180 seconds for images, 60 seconds for embeddings and video submission. You have not been charged.
4xx / 5xxAny other error from the model provider keeps the provider’s status code, message, type and code — a 400 for a malformed prompt, for example.

You are never charged for a failed request.

Whatever the status code, a request that returned no usage is recorded and billed ₹0 — a charge is computed from the token counts the provider reports, and a failure reports none.

Streaming

Supported on all three endpoints. Responses stream token-by-token over server-sent events, in the same format as the underlying provider’s own streaming API — so an SDK that already parses their stream parses this one.

Usage is billed from the totals the provider sends in the final events of the stream. A stream you disconnect from early is still billed for what the provider generated, because that is what they charge us for. If the provider has not finished within 20 seconds of the disconnect, we stop reading it and the request is recorded unbilled. If the provider stops sending for 5 minutes, or a stream runs past 30 minutes, we end it with an error event in your SDK’s format. You are not charged unless the provider had already reported the usage.

Claude Code

Claude Code talks to /anthropic, the native Anthropic endpoint. Set these before starting it (on Windows PowerShell, use $env:NAME="value" instead of export):

Claude Code settings
1  export ANTHROPIC_BASE_URL=https://apiverse.in/anthropic
2  export ANTHROPIC_AUTH_TOKEN=sk-live-your-key-here
3  export ANTHROPIC_API_KEY=""
4  export ANTHROPIC_MODEL=claude-sonnet-5
5  export CLAUDE_CODE_MAX_OUTPUT_TOKENS=16000

ANTHROPIC_API_KEY must be empty, or Claude Code uses it instead of your key. Claude Code’s own model names, such as claude-haiku-4-5-20251001, are accepted on /anthropic for the catalog’s claude-haiku-4.5, so its background Haiku requests need no setting.

What it costs. You pay for every token at the live ₹ rate on the models page; a refused request costs nothing. In our test, a three-request session on claude-sonnet-5 (read a file, edit it, finish) cost about ₹24. The first request of each session writes Claude Code’s large prompt, about 40,000 tokens, to the prompt cache, roughly ₹11 on claude-sonnet-5; requests that reuse it read it back at a tenth of that price.

Keep at least ₹50 in your wallet. Before each request starts we hold the most it could cost: its input plus your max_tokens on claude-haiku-4.5, claude-sonnet-5 and claude-opus-5.5, or the model’s full maximum output on other models. With CLAUDE_CODE_MAX_OUTPUT_TOKENS=16000 that is about ₹37 per claude-sonnet-5 request; in our test a ₹25 wallet ran out of room on the second request. Lower CLAUDE_CODE_MAX_OUTPUT_TOKENS to hold less. A request refused with “could cost up to ₹…” is not charged.

Need help?

Contact us at krishchoudhary300@gmail.com, or read the FAQ on the homepage.