OpenAI-compatible · 22 models · 8 providers

One API for every major LLM.

Linka is a unified inference gateway. Route to OpenAI, Anthropic, Google, DeepSeek, Meta, Mistral, Qwen, and xAI through a single OpenAI-compatible endpoint — prepaid credits, per-token pricing, no subscriptions.

terminal — first request
curl "https://api.linka.ink/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-linka-your-key" \
  -d '{
    "model": "openai/gpt-4o",
    "messages": [
      { "role": "system", "content": "You are a concise assistant." },
      { "role": "user", "content": "Explain an inference gateway in one sentence." }
    ]
  }'

# Response (truncated)
# {
#   "id": "chatcmpl-linka-9f2c71",
#   "model": "openai/gpt-4o",
#   "choices": [ { "message": { "role": "assistant", "content": "An inference gateway ..." } } ],
#   "usage": { "prompt_tokens": 41, "completion_tokens": 28, "cost_credits": 0.00038 }
# }
OpenAIAnthropicGoogleDeepSeekMetaMistralQwenxAI

Why Linka

The shortest path between your code and every frontier model.

One API, every model

Switch models by changing a single string. Linka normalizes request and response shapes across providers, so your integration never forks per vendor.

Prepaid credits, per-token pricing

Top up any amount and spend it down at published per-model rates. 1 credit = $1 of usage, deducted in real time. Credits never expire.

OpenAI-compatible drop-in

Point the official OpenAI SDK at api.linka.ink/v1 and keep your code. Works with the Python and Node SDKs, LangChain, LlamaIndex, and anything that speaks /chat/completions.

Smart routing & fallbacks

Pass a fallback chain and Linka reroutes automatically when an upstream provider is down, slow, or rate-limited. You are billed at the rate of the model that served the request.

Usage analytics

Per-key, per-model token and spend analytics in the console. Set per-key spend caps, export CSV, and query your balance programmatically.

No subscriptions, ever

No monthly minimums, no seat fees, no tiers to unlock. You pay only for the tokens you use, from the balance you already funded.

Supported models

Frontier, open-weight, and everything between.

Every model is available on the same endpoint, billed per token from the same prepaid balance. Prices in USD per 1M tokens.

View all 22 models →
ModelContextInput / 1MOutput / 1M
openai/gpt-4oPopular128K$2.50$10.00
anthropic/claude-sonnet-4.5Popular200K$3.00$15.00
google/gemini-2.5-proPopular1M$1.25$10.00
openai/gpt-4o-miniValue128K$0.15$0.60
google/gemini-2.5-flashValue1M$0.30$2.50
deepseek/deepseek-chat-v3Value164K$0.27$1.10
deepseek/deepseek-r1Reasoning164K$0.55$2.19
meta-llama/llama-3.3-70b-instructValue131K$0.12$0.30
anthropic/claude-opus-4.1200K$15.00$75.00
x-ai/grok-3131K$3.00$15.00

Pricing

Prepaid credits. Per-token rates. Nothing else.

  • 1 credit = $1 of usage — top up any amount from $10
  • Per-token rates deducted in real time at published per-model prices
  • Credits never expire
  • Volume bonuses: +2% on top-ups of $500+, +5% on $2,000+
  • Unused credits refundable within 14 days of top-up
See full pricing

Worked example

Your app sends 2,000 requests/day, averaging 600 input and 250 output tokens on openai/gpt-4o-mini:

Input · 1.2M tokens × $0.15$0.18
Output · 0.5M tokens × $0.60$0.30
Daily total$0.48
A $50 top-up lasts~104 days

FAQ

Questions, answered.

Linka is a unified LLM inference gateway. You call one OpenAI-compatible endpoint and we relay your request to the model you choose — OpenAI, Anthropic, Google, DeepSeek, Meta, Mistral, Qwen, xAI, and more — then return the response in a consistent format. One integration, one balance, every major model.

Route your first request in under two minutes.

Create an account, top up any amount, and call any model on the same endpoint. Credits land instantly after payment.