API access requires a Business or Enterprise plan. Startup and free trial accounts cannot call the REST API, even with a valid key.
What you can build
Start with the AI visibility endpoints — they are the core of the API.
Plan eligibility
Requests authenticated with an API key on a lower plan receive:
Base URL
/v1.
Authentication
Send your API key in theapi-key request header on every call:
krastie_ prefix, expire 30 days after generation, and are shown only once when created. Store them securely.
Create and manage keys
Key management uses your logged-in Krastie session (cookie auth), not the API key itself.
Generate key response (200):
Usage and limits
- Each successful AI text or chat request consumes 1 AI credit from your monthly plan allowance.
- Visibility report refresh limits vary by plan. See the pricing page.
- Image generation increments image-generation usage separately.
- When credits are exhausted, endpoints return
403with a plan-specific limit message. - Usage resets monthly for paid plans.
o1, o3-mini, gpt-5, gpt-4.5) require a paid plan (Startup or above), not just API access.
Response headers
All/v1 routes include:
Error format
Errors return JSON withmessage and usually errCode:
Supported models
Text and chat endpoints accept model IDs from supported providers:- OpenAI:
gpt-4o,gpt-4o-mini,gpt-4.1,o1,o3-mini, and related GPT-family IDs - Anthropic: Claude models (IDs containing
claude) - Google: Gemini models (IDs containing
gemini)
Quick start
- Upgrade to Business or Enterprise.
- Log in at app.krastie.ai and generate an API key under account settings.
- Run a visibility report:
API sections
AI visibility
Reports, prefill, history, and workspace context.
AI traffic
Track visits from AI assistants and pull traffic analytics.
AI generation
Content generation, SEO scoring, and improvement.
Chat sessions
Assistant with visibility-aware workspace context.
Brand voice
Manage brand voices for consistent content.