{"package":"@ai-sdk/xai","ecosystem":"npm","latest_version":"4.0.25","description":"The **[xAI Grok provider](https://ai-sdk.dev/providers/ai-sdk-providers/xai)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the xAI chat and completion APIs.","license":"Apache-2.0","license_risk":"permissive","commercial_use_notes":"Permissive: commercial closed-source use OK; preserve the copyright notice.","homepage":"https://ai-sdk.dev/docs","repository":"https://github.com/vercel/ai","downloads_weekly":2050561,"health":{"score":94,"risk":"low","breakdown":{"maintenance":25,"popularity":17,"security":25,"maturity":15,"community":12,"popularity_floor":0},"deprecated":false,"max_score":100},"vulnerabilities":{"count":0,"critical":0,"high":0,"medium":0,"low":0,"details":[]},"versions":{"latest":"4.0.25","total_count":491,"recent":["3.0.110","4.0.16","2.0.81","2.0.82","3.0.111","4.0.17","4.0.18","4.0.19","4.0.20","2.0.83","3.0.112","4.0.21","4.0.22","2.0.84","3.0.113","0.0.0-07500555-20260730161446","0.0.0-32724956-20260730201501","4.0.23","4.0.24","4.0.25"]},"metadata":{"deprecated":false,"deprecated_message":null,"maintainers_count":3,"first_published":"2024-11-18T09:46:23.624Z","last_published":"2026-07-31T22:18:58.889Z","dependencies_count":3,"dependencies":["@ai-sdk/provider","@ai-sdk/provider-utils","@ai-sdk/openai-compatible"]},"github_stats":{"stars":25951,"forks":4895,"open_issues":1713,"is_archived":false,"pushed_at":"2026-08-02T08:00:07Z","subscribers_count":144},"bundle":null,"typescript":{"score":10,"has_types":true,"types_source":"bundled","types_package":null},"known_issues":{"bugs_count":0,"bugs_severity":{},"status_breakdown":{},"link":null,"scope":"none"},"historical_compromise":null,"recommendation":{"action":"safe_to_use","issues":[],"use_version":"4.0.25","version_hint":null,"summary":"@ai-sdk/xai@4.0.25 is safe to use (health: 94/100)"},"version_scoped":null,"_meta":{"endpoint":"check","tier":"full","philosophy":"DepScope is free. Use the cheapest endpoint that answers your real question.","cheaper_alternatives":[{"endpoint":"/api/exists/npm/%40ai-sdk%2Fxai","tokens_estimated":12,"use_when":"you only need to know if the package exists (hallucination guard)"},{"endpoint":"/api/health/npm/%40ai-sdk%2Fxai","tokens_estimated":80,"use_when":"you only need a 0-100 score for go/no-go (>=70 = safe)"},{"endpoint":"/api/prompt/npm/%40ai-sdk%2Fxai","tokens_estimated":280,"use_when":"you want a plain-text LLM-friendly brief instead of JSON"},{"endpoint":"POST /api/check_bulk","tokens_estimated":60,"use_when":"you have 5+ packages to check; sends one round-trip instead of N"}],"docs":"https://depscope.dev/integrate","hint_bulk":"You've called /api/check 72 times in 60s. Save bandwidth + tokens with POST /api/check_bulk (1 round-trip for N pkgs)."},"requested_version":null,"_cache":"hit","_response_ms":0,"_powered_by":"depscope.dev — free package intelligence for AI agents","typosquat":{"is_suspected":false},"maintainer_trust":{"available":false},"malicious":{"is_malicious":false},"scorecard":{"available":false},"quality":{"available":true,"criticality_score":null,"criticality_tier":null,"velocity_pct":null,"velocity_trend":null,"publish_security":"signed"},"co_used_with":[{"package":"@cacheable/node-cache","occurrences":7},{"package":"@langchain/core","occurrences":5},{"package":"@lightfeed/extractor","occurrences":5},{"package":"@modelcontextprotocol/sdk","occurrences":5},{"package":"@perplexity-ai/mcp-server","occurrences":5}],"version_history_summary":{"total_versions":20,"first_release_age_days":622,"last_release_days_ago":1,"avg_days_between_releases":33,"release_velocity":"active"}}