@dartix-software-solutions/ai-gate weekly downloads statistics
By dartix-software-solutions · npm · AI SDKs
Official TypeScript/JavaScript client for AI Gate — one API for chat and image models across providers with capacity-aware routing, failover, internet/reasoning options, and daily request + token quotas
@dartix-software-solutions/ai-gate has 123 recorded weekly downloads on npm, a change of -77.3% over the past 7 days, ranking #1718 of 2,322 tracked listings.
About @dartix-software-solutions/ai-gate
@dartix-software-solutions/ai-gate
Official TypeScript / JavaScript client for AI Gate — one API key for chat and image models across many providers, with latency-tuned auto routing and automatic failover.
Keywords: AI · LLM · SDK · OpenAI · Gateway · OpenRouter · NVIDIA · TypeScript · Gemini · Groq · Anthropic · Cerebras · Together · DeepSeek · Hugging Face
What this package does
AI Gate sits between your app and AI providers. Instead of wiring each vendor SDK yourself, you call this client once.
| Capability | What you get |
| Chat generation | Send a prompt (and optional context) and get text back | | Streaming chat | Token-by-token responses over SSE | | Image generation | Text-to-image; returns a URL or data URI | | Model catalog | List available chat / image models by free or premium tier | | Latency-tuned auto routing | Picks a healthy, low-latency free model when you omit model | | Failover | Retries other models/providers in the same pool if one fails | | Dual-key tiers | Free via platform keys; premium via keys you save on the project | | Usage metadata | Provider used, tokens, latency, and full attempt history | | Daily project quotas | 30 requests + 30,000 API tokens / UTC day (see Usage limits) | | Internet + reasoning | Optional internet and reasoningLevel on generate / stream |
Dual-key model (how keys work)
| Tier | When | Keys needed |
| free (default) | You don’t ask for premium | AI Gate project key only — free models use platform provider keys | | premium | tier: "premium" | Project key + your provider API key on the project (any provider: OpenAI, OpenRouter, Hugging Face, Groq, …) | | auto | Mix free + available premium | Free via platform keys; premium only for providers where you saved a key |
Chat and image never mix. Failover stays inside the same modality + tier pool.
Supported providers
| Free (platform keys) | Premium (your project keys) |
| Gemini, NVIDIA NIM, OpenRouter, Pollinations, Groq, Cerebras, Together AI, DeepSeek, Hugging Face, Eden AI, ShareAI | Same providers plus OpenAI, Anthropic — add any provider key on the project to unlock that provider’s premium models |
What’s included
This npm package ships:
| Export | Description |
| AIClient | Main client class | | AIClientOptions | Constructor options (apiKey) | | generate() | Non-streaming chat → POST /v1/generate | | stream() | Streaming chat → POST /v1/generate/stream | | image() | Image generation → POST /v1/images/generate | | listModels() | Catalog → GET /v1/models | | TypeScript types | GenerateRequest, GenerateResponse, ImageGenerateRequest, ImageGenerateResponse, AIChunk, CatalogModel, Tier, Modality, … |
No extra runtime dependencies (uses Node’s built-in fetch). Types are bundled — you do not need a separate @ai-gate/types install.
Requirements
• Node.js 18+ (also works with Bun / Deno where fetch is available) • An AI Gate project API key (ai_live_…) from aigate.dartix.live
Install
How to use
-
Get an API key
-
Open aigate.dartix.live and sign in 2. Create a project 3. Copy the project key (ai_live_…) 4. Store it in env on your server / BFF — never ship it in browser-exposed client code
-
Create a client
| Option | Required | Description |
| apiKey | Yes | Project API key from the dashboard |
- Chat (generate)
Defaults: tier: "free", chat modality, auto model (fastest healthy free chat model via latency-tuned routing).
Optional fields:
| Field | Default | Notes |
| tier | "free" | "free" | "premium" | "auto" | | provider / model | unset / auto | Pin first choice; failover stays in pool | | maxTokens | server default | Cap output (max 4000) | | internet | false | When true, free DuckDuckGo results may be injected for live-info questions | | reasoningLevel | "auto" | "auto" | "low" | "medium" | "high" |
-
Stream chat
-
Generate an image
-
List models (for UI pickers)
Catalog modalities include chat, image, and also audio / embedding / other for browsing (generate/image runtimes today are chat + image).
Response shape
Error handling
| Status | Meaning |
| 401 | Invalid or missing API key | | 402 | Premium requested but no provider key on the project | | 429 | Rate / request / token quota (see Usage limits) | | 501 | Requested feature not enabled yet (e.g. RAG) |
Usage limits
Each AI Gate project has daily request and API token budgets (UTC calendar day). generate, stream, and image share those project meters. Dashboard personal chat uses a separate chat token budget per user (default 40,000 tokens/day).
| Limit | Default |
| Requests / UTC day / project | 30 (hard max for standard accounts) | | API tokens / UTC day / project | 30,000 | | Chat tokens / UTC day / user (dashboard) | 40,000 | | Period | UTC calendar day (resets at 00:00 UTC) |
Need higher limits? Message the admin — do not try to raise them from the client SDK.
Email dartix.software.solutions@gmail.com with:
• your dashboard account email • project name (and id if you have it) • why you need a higher limit
You can check today’s usage on the project page in the dashboard. In-app docs: aigate.dartix.live/docs.
A 429 response means you hit rate limiting, the daily request cap, or a token budget — back off and/or request a higher limit from admin.
TypeScript
Links
| | | |--|--| | Official website | https://dartix.live | | Product / dashboard | https://aigate.dartix.live | | In-app docs | https://aigate.dartix.live/docs | | Model browser | https://aigate.dartix.live/models | | npm | https://www.npmjs.com/package/@dartix-software-solutions/ai-gate | | Source code | https://github.com/deveshmaurya1996/ai-gate | | Issues / bugs | https://github.com/deveshmaurya1996/ai-gate/issues |
Contributing
Contributions are welcome.…
Description from the npm listing.
- ai
- llm
- sdk
- openai
- gateway
- openrouter
- nvidia
- typescript
- javascript
- nodejs
- node
- api
- client
- ai-gateway
- llm-gateway
- ai-sdk
- llm-sdk
- openai-compatible
- openai-api
- chat
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (543)Similar npm AI SDKs plugins
All 20 @dartix-software-solutions/ai-gate alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@dartix-software-solutions/ai-gate. First seen Oct 16, 2026; last successful collection Oct 17, 2026. See the methodology.