API Quickstart
Start with one request and your Genesis API Key.
The Anzoth API is OpenAI-compatible. Use the base URL below, choose Anzoth-Core or Anzoth-Coder, and send your first chat completion request with the Authorization header.
Base URL
https://api.anzoth.com
Auth header
Authorization: Bearer YOUR_GENESIS_API_KEY
Supported fields
model, messages, max_tokens, temperature, stream
curl · Anzoth-Core
shell
curl https://api.anzoth.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "Anzoth-Core",
"messages": [
{ "role": "user", "content": "Say hello in one sentence." }
],
"max_tokens": 128,
"temperature": 0.2
}'General reasoning and chat
curl · Anzoth-Coder
shell
curl https://api.anzoth.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "Anzoth-Coder",
"messages": [
{ "role": "user", "content": "Write a TypeScript function that checks for primes." }
],
"max_tokens": 256
}'Coding and development tasks
Streaming
Stream responses as they generate.
Add "stream": true and read the chunks as they arrive. The final payload still includes the normal usage summary and finish reason when the request completes.
streaming example
shell
curl https://api.anzoth.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "Anzoth-Core",
"messages": [
{ "role": "user", "content": "Explain RAG in one paragraph." }
],
"stream": true
}'stream: true
Response shape
- id and choices return the assistant message and finish reason.
- usage.prompt_tokens, usage.completion_tokens, and usage.total_tokens summarize the request.
- choices[0].message.content contains the final text for non-stream responses.
- choices[0].delta.content appears while streaming, if supported.
Common request fields
model - Anzoth-Core or Anzoth-Coder
messages - Array of chat messages
max_tokens - Output cap for the assistant response
temperature - Optional generation style control
stream - Optional streaming toggle
Common errors
| Code | Meaning | What to do |
|---|---|---|
| 401 | Missing or invalid key | Check the Authorization header and make sure you pasted your Genesis API Key. |
| 403 | Model not allowed or verification required | Verify your email or confirm the key has access to the model you selected. |
| 404 | Unknown model | Use Anzoth-Core or Anzoth-Coder unless your account has access to another model. |
| 429 | Rate limited | Wait briefly and retry, or reduce request rate and output size. |
| 500/502 | Temporary backend issue | Retry after a short pause. If it persists, check status and try again later. |
Tip
If you see a model or permission error, open your dashboard and confirm the Genesis API Key is revealed, active, and allowed to use the model you requested.
Need more help?
Keep the dashboard open while you test.
Usage, models, Knowledge Bases, and account settings are all visible in your dashboard once you sign in.
