LLM Model Gateway API logo
18 REST & MCP APIs 5 modulių Dual Market

LLM Model Gateway API (OpenAI Compat)

OpenAI-compatible routing with failover, structured outputs, rerank, payload pruning, PII redaction & budget caps

Bazinis / 1K
$0.01+
REST Base URL
api.apioka.com/v1
MCP Endpoint
/llm-routing/mcp
Throughput / Tokens
Unified Key · ~520t
Oficialus portalas
platform.openai.com/docs

Chat & Responses

5 APIs
Method Endpoint Santrauka Parametrai Bazinis / 1K
POST /v1/llm/chat/completions OpenAI-compatible chat completions routing Claude, GPT, Gemini & DeepSeek model, messages, temperature, max_tokens, stream $0.28
POST /v1/llm/responses Unified stateful Responses API with native MCP tool calling model, input, tools, reasoning_effort, max_output_tokens $0.30
POST /v1/llm/chat/structured Enforce strict JSON Schema output with automatic retry validation model, messages, json_schema, strict $0.32
POST /v1/llm/chat/fallback Route primary model with ordered failover list on 429 / 5xx errors models, messages, timeout_ms $0.30
POST /v1/llm/chat/compare Run identical prompt across 2–4 models in parallel for A/B evals models, messages, max_tokens $0.90

Embeddings & RAG

4 APIs
Method Endpoint Santrauka Parametrai Bazinis / 1K
POST /v1/llm/embeddings Generate dense vector embeddings (text-embedding-3, BGE, Gemini) model, input, dimensions, encoding_format $0.05
POST /v1/llm/rerank Cross-encoder document reranking to boost RAG top-K precision model, query, documents, top_n $0.25
POST /v1/llm/tokens/count Exact pre-flight tokenizer count & USD input cost estimate model, text, messages $0.01
POST /v1/llm/payload/prune Strip noisy social JSON fields into minimal LLM-ready Markdown payload, profile, keep_fields $0.15

Batch & Async

2 APIs
Method Endpoint Santrauka Parametrai Bazinis / 1K
POST /v1/llm/batch/create Submit async JSONL batch inference at up to 50% token discount model, requests, completion_window, webhook_url $0.14
GET /v1/llm/batch/status Inspect batch inference job completion counts & download URL batch_id $0.00

Safety & Guardrails

2 APIs
Method Endpoint Santrauka Parametrai Bazinis / 1K
POST /v1/llm/moderations Classify prompt/output safety, PII leaks & prompt injection risk input, categories $0.10
POST /v1/llm/pii/redact Mask emails, phone numbers, IDs & secrets prior to LLM inference text, entity_types, replacement_mode $0.12

Models & Routing

5 APIs
Method Endpoint Santrauka Parametrai Bazinis / 1K
GET /v1/llm/models List all active routed models, context lengths & live $/1M rates provider, capability $0.00
GET /v1/llm/models/health Check real-time TTFT latency & uptime metrics per upstream route model $0.00
GET /v1/llm/usage/summary Query metered request counts, tokens & spend grouped by model/tag start_date, end_date, group_by $0.00
POST /v1/llm/keys/budget-cap Configure hard USD spending cap & model allowlist for sub-keys key_id, max_usd, allowed_models, rpm_limit $0.00
GET /v1/llm/cache/stats Inspect prompt-cache hit rate & saved input token spend days $0.00
Greitas MCP prijungimas

LLM Model Gateway MCP Server (Claude / Cursor / Dify)

Prijunkite kiekvieną galinį tašką tiesiogiai prie AI agentų per Streamable HTTP nerašydami pasirinktinių adapterių.

{
"mcpServers": {
"apioka-llm-routing": {
"type": "http",
"url": "https://mcp.apioka.com/llm-routing/mcp",
"headers": { "Authorization": "Bearer YOUR_APIOKA_API_KEY" }
}
}
}
PAY-AS-YOU-GO · BE MĖNESINIO MOKESČIO

Automatinės dienos apimties nuolaidos

Dienos srautas Nuolaida Bazinė kaina / 1K
0 – 1,000 req / day Standard $1.00 / 1K
1,000 – 5,000 req / day 10% off $0.90 / 1K
5,000 – 10,000 req / day 20% off $0.80 / 1K
10,000 – 20,000 req / day 30% off $0.70 / 1K
20,000 – 30,000 req / day 40% off $0.60 / 1K
30,000+ req / day 50% off $0.50 / 1K

Kalba