Getting Started
We'd love your feedback!
How has your experience using Apertus been? Let us know at https://forms.gle/9TGSfTK1RfKj2b6X9
1. Get Your API Key
- Sign up: Click Login in the top right and sign up using single sign-on
- Create API Key: Go to API Keys and click Create API Key
- Generate: Enter a name, set expiration, and click Generate Key
2. Explore Available Models
Want to see what other models are available? You can list all models using:
Code
Or try it interactively:
3. Making Your First Request
Once you have an API key, you can start making requests to our AI models. Here's a simple example:
Code
Or try it interactively:
Authentication
All API requests require:
-
API Key: Include your key in the Authorization header:
Code -
User-Agent Header: Specify a User-Agent to prevent bot spamming:
Code
Model Configuration
Our recommended inference parameters, which we use on our consumer frontend at publicai.co:
- Context Window: 65,536 tokens
- Max Output Tokens: 8,192 tokens
- Temperature: 0.8 (recommended by swiss-ai)
- Top-p: 0.9 (recommended by swiss-ai)
Additional parameter tuning and documentation will be available in future updates.
Rate Limits
To ensure fair usage across all users:
- During Swiss AI Weeks: 20 requests per minute
Support
- Documentation: Explore the full API Reference
- Community: Join our discussions at github.com/forpublicai
- Issues: Report problems via GitHub Issues
What's Next?
- Explore the complete API Reference for detailed endpoint documentation
- Check out example implementations in our GitHub repositories
- Join our community to stay updated on new model releases
Last modified on