How do I get an API key?
How do I get an API key?
Sign up for a free account at app.swytcho.com, navigate to API Keys in the left sidebar, and click Create new key. Copy the key immediately — for security reasons, Swytcho only displays it once.Store your key in an environment variable (e.g.
SWYTCHO_API_KEY) and never hard-code it in source files or commit it to version control. If a key is compromised, rotate it instantly from the same page.Is Swytcho compatible with the OpenAI SDK?
Is Swytcho compatible with the OpenAI SDK?
Yes. Swytcho implements the same REST API contract as OpenAI’s Chat Completions, Embeddings, and Models endpoints. To switch an existing OpenAI integration, set the No other code changes are required in most cases. See the SDKs page for a full walkthrough.
base_url (Python) or baseURL (Node.js) parameter to https://api.swytcho.com/v1 and replace your OpenAI key with your Swytcho key.What AI models are available?
What AI models are available?
Swytcho provides access to a curated set of leading models from multiple providers through a single API — including models from OpenAI, Anthropic, Google, Meta, and Mistral. The full up-to-date list is available via the models endpoint or the Models page in your dashboard.Different models have different context lengths, pricing tiers, and capabilities (chat, embeddings, vision, tool use). Check the model card for each one to choose the best fit for your workload.
How is pricing calculated?
How is pricing calculated?
Swytcho charges per token — separately for input (prompt) tokens and output (completion) tokens. Prices vary by model and are listed on the Pricing page.A few things to keep in mind:
- System prompts, few-shot examples, and conversation history all count as input tokens.
- Streaming responses are billed identically to non-streaming responses.
- Your dashboard shows real-time usage and a per-day cost breakdown so you can monitor spend before surprises appear on your invoice.
What is the maximum context length?
What is the maximum context length?
Context length depends on the model you select. Most models support at least 8 000 tokens, several support 128 000 tokens, and some frontier models support up to 1 000 000 tokens. Check the context_window field returned by the models endpoint for the exact limit of each model.If your request (prompt + max_tokens) exceeds the model’s context window, the API returns a
400 error. Truncate your input or switch to a model with a larger context window.How do I reduce my API costs?
How do I reduce my API costs?
Several techniques can meaningfully lower your token spend:
- Choose the right model. Smaller, cheaper models (e.g. GPT-4o mini, Mistral 7B) handle many tasks just as well as larger ones at a fraction of the cost.
- Trim your system prompt. Every token in every request costs money. Keep system prompts concise and remove boilerplate.
- Truncate conversation history. In multi-turn applications, only send the last N turns instead of the full history.
- Set
max_tokensexplicitly. Cap the output length to avoid unexpectedly long completions. - Cache repeated prompts. If you send the same prompt many times (e.g. a classification prefix), consider caching responses at the application layer.
Can I use Swytcho for production workloads?
Can I use Swytcho for production workloads?
Yes. Swytcho is designed for production use and operates with a 99.9% uptime SLA on paid plans. Infrastructure is distributed across multiple regions with automatic failover.For production deployments, we recommend:
- Using a server-side environment to keep your API key secure.
- Implementing retry logic with exponential backoff for transient
5xxerrors. - Monitoring the Swytcho status page or subscribing to incident notifications.
- Setting up usage alerts in the dashboard to avoid unexpected overages.
How do I report a bug or request a feature?
How do I report a bug or request a feature?
Bugs: Open an issue in the relevant GitHub repository — swytcho-python or swytcho-node — or email support@swytcho.com with a minimal reproduction.Feature requests: Post in the #feature-requests channel on Discord or use the feedback form in the dashboard. Upvoting existing requests is the fastest way to surface them to the product team.To help the team investigate quickly, include your account region, the model name, a sanitised request/response pair, and the
request-id response header value from the failed request.What happens if my request exceeds the rate limit?
What happens if my request exceeds the rate limit?
When you exceed your rate limit, the API returns a If you consistently hit rate limits, consider upgrading your plan or batching requests. Current limits are displayed on the Usage page in your dashboard.
429 Too Many Requests response immediately — your request is not queued. The response includes a Retry-After header indicating how many seconds to wait before trying again.To handle this gracefully:Does Swytcho store my prompts or completions?
Does Swytcho store my prompts or completions?
By default, Swytcho retains request and response data for 30 days to support debugging and abuse detection. You can opt out of retention entirely in Settings → Privacy in the dashboard, or by setting the Swytcho does not use your data to train models. For details on how data is handled, processed, and protected, see the Privacy Policy and Terms of Service.
X-Swytcho-No-Store: true request header on a per-request basis.Opting out of data retention disables the request inspector and replay tools in the dashboard for those requests.