Drop-in compatibility
OpenAI- and xAI-compatible endpoints, native Google and BytePlus paths, plus a canonical core API. Keep the SDK you already use.
Kelid is a single gateway to OpenAI, Gemini, xAI and BytePlus. Keep your existing SDK, change the base URL — and get per-project keys, budgets, automatic failover and transparent usage billing.
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.KELID_API_KEY,
baseURL: "https://kelid.flashai.ir/openai/v1",
});
const res = await client.chat.completions.create({
model: "gpt-6-sol",
messages: [{ role: "user", content: "Hello!" }],
});
from openai import OpenAI
import os
client = OpenAI(
api_key=os.environ["KELID_API_KEY"],
base_url="https://kelid.flashai.ir/openai/v1",
)
res = client.chat.completions.create(
model="gpt-6-sol",
messages=[{"role": "user", "content": "Hello!"}],
)
curl https://kelid.flashai.ir/openai/v1/chat/completions \
-H "Authorization: Bearer $KELID_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 7f3c…" \
-d '{
"model": "gpt-6-sol",
"messages": [{"role":"user","content":"Hello!"}]
}'
Every request is estimated, reserved against your budget, routed to the best provider, retried if needed, and settled at your project's price — all in a single call.
Sign up in the Console, create a project and issue an API key. Secrets are shown once and stored hashed.
Charge your wallet in Toman. Each request reserves an estimate first, then settles the exact usage.
Point your SDK at Kelid. Any model from any provider is now one string away.
The infrastructure you would otherwise build yourself: keys, metering, routing and billing — production-ready from the first request.
OpenAI- and xAI-compatible endpoints, native Google and BytePlus paths, plus a canonical core API. Keep the SDK you already use.
Every request is logged with tokens, duration and exact charge — versioned pricing lets you reconstruct any bill.
Per-project keys, spend limits and rate limits. A request that would exceed the budget is stopped before it reaches a provider.
Bounded retries and automatic failover to a healthy provider. Idempotency keys guarantee a retry is never charged twice.
No foreign card required. Top up in Toman, see each model's price before you call it, and download a full history of charges.
Text, vision, embeddings, image generation and editing, video, speech and transcription — sync, streaming or async jobs.
The newest flagships from every provider — available with your existing key, no new account or SDK change.
OpenAI's new flagship family: Astra for the hardest end-to-end work, Sol for coding and agents, Luna for high-volume tasks.
gpt-6-astragpt-6-solgpt-6-lunaGoogle's most intelligent Flash model, built for long-horizon coding and autonomous agents.
gemini-3.8-flashgemini-3.1-pro-previewxAI's latest reasoning model with vision, tool calling and structured outputs.
grok-4.7DeepSeek V4.1 Flash and V4 Pro, GLM 5.3 Flash and GLM 5.2 — frontier reasoning at a fraction of the cost.
deepseek-v4-1-flashdeepseek-v4-proglm-5-3-flashSeedream 5.0 Flash and GPT Image 1 Mini for low-cost images; GPT Transcribe for accurate speech-to-text.
seedream-5-0-flashgpt-image-1-minigpt-transcribeA transparent, versioned catalog with context windows, modalities and your project's price for each model.
gpt-6-astraNewgpt-6-solNewgpt-6-lunaNewgpt-5.6-terra1M ctxgemini-3.8-flashNewgemini-3.1-pro-previewNewgemini-embedding-2Newveo-3.1videogrok-4.7Newgrok-4.6reasoninggrok-4.20-multi-agentagentsgrok-imagine-imageimagedeepseek-v4-1-flashNewglm-5-3-flashNewdola-seed-2-1-turbofastseedance-2-0videoNo. If you use the OpenAI or xAI SDK, change the base URL and API key. Google and BytePlus native paths are available too.
No. One Kelid key gives you access to every model in the catalog. Kelid manages the provider accounts for you.
From a prepaid wallet in Toman. Each request reserves an estimate and settles the actual usage at your project's price; unused reservations are released.
Kelid retries within safe bounds and can fail over to another provider. The final provider and every attempt are visible in the request timeline.
Yes. Every project has its own keys, budgets and rate limits, and requests that would exceed the budget are rejected before they run.
Create your account, top up your wallet and make your first request in minutes.