Welcome to the Chasm API documentation. This guide provides all the information you need to start using our OpenAI-compatible API endpoint. Whether you're a public user or a Scout member with an API key, this documentation will help you understand how to interact with the Chasm Orchestrator effectively.
Introduction
The Chasm API allows developers to integrate advanced language processing capabilities into their applications. Our API is designed to be compatible with OpenAI's API, making it easy to switch or integrate alongside existing solutions.
Public users can start using the API immediately without any authentication. However, public access is subject to rate limits to ensure fair usage.
Public Rate Limits:
10 requests per minute
100 requests per day
API Key Access
For higher usage needs, users can obtain an API key by becoming a Scout member. With an API key, you benefit from increased rate limits.
API Key Rate Limits:
100 requests per minute
5,000 requests per day
Authentication
Using an API Key
To authenticate your requests using an API key, include the following header in your HTTP requests:
Replace YOUR_API_KEY with the API key generated from your Scout account.
Without an API Key
If you're using the API without an API key, no additional headers are required. Simply make your requests to the endpoint, keeping in mind the public rate limits.
Rate Limits
Rate limits are enforced to maintain the quality of service for all users.
{
"model": "gemma2-9b-it",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Can you tell me a joke?"}
]
}
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1700000000,
"model": "gemma2-9b-it",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Why did the computer show up at work late? It had a hard drive!"
},
"finish_reason": "stop"
}
]
}