
Build with your API key
Build a website with your xAI (Grok) API key
Facts last verified: . Provider pricing and free tiers change — check their site for current numbers.
Yes — you can build complete websites with your own xAI API key. Grok 4.3 is a capable coding model with competitive per-token pricing. Create a key at console.x.ai, paste it into OpenThorn (free, encrypted server-side), describe your site, and deploy — you pay xAI directly with no platform markup.
Get your key
Official pricing
Free tier
No standing free tier; xAI uses prepaid credit, which doubles as a spend cap.
Recommended models
- Grok 4.3 — xAI's current flagship — strong code generation for complete sites.
- Grok 4.20 Reasoning — Explicit reasoning variant for more complex builds.
How to build your website
- Create an xAI API keySign in at console.x.ai, add prepaid credit, and create an API key.
- Note the prepaid capPrepaid credit is a hard spend limit — usage stops when the balance runs out.
- Connect the key to OpenThornSign up free at openthorn.app, open the Providers page, choose xAI, and paste your key. It is encrypted server-side with AES-256-GCM and never exposed raw.
- Describe your website and ship itCreate a project, pick a Grok model, and describe the site. Preview it live, iterate, then deploy to Netlify or export the source.
What it costs
Grok pricing is competitive with mid-to-flagship Western models — a typical website costs roughly $0.50–$2 in API usage.
Common questions
Is Grok good at building websites?
Yes — Grok 4.3 performs competitively on coding tasks and handles complete website generation well in OpenThorn, including multi-page sites. The reasoning variant helps with more intricate component logic.
How much does a website cost with the xAI API?
Roughly $0.50–$2 per complete site at Grok's published per-token rates, depending on size and revisions. OpenThorn adds no markup or subscription.
Is my xAI API key safe in OpenThorn?
Keys are encrypted server-side with AES-256-GCM using per-user derived keys and are never exposed raw to the browser. Prepaid credit caps your maximum exposure.
New here? Read how to build a website with AI using your own key, how to get an AI API key, or compare model pricing. Other providers: OpenAI · Anthropic · Google Gemini · DeepSeek · Mistral AI · Groq · Together AI · Cohere · Perplexity · OpenRouter · Ollama · Fireworks AI · Cerebras · Azure OpenAI · Amazon Bedrock · NVIDIA NIM
