Log in or create an account to get your API key and access the documentation.
Integrate Fable 5 and GPT 5.6 Sol into your application with just a few lines of code.
Use these keys to authenticate your requests. Keep them secure.
Make your first API call in under 30 seconds.
# pip install nexus-ai from nexus import NexusAI client = NexusAI(api_key="nx-...") response = client.chat.create( model="fable-5", messages=[{"role": "user", "content": "Explain quantum computing"}] ) print(response.choices[0].message.content)
// npm install nexus-ai import NexusAI from "nexus-ai"; const client = new NexusAI({ apiKey: "nx-..." }); const response = await client.chat.create({ model: "gpt-5.6-sol", messages: [{ role: "user", content: "Hello!" }] }); console.log(response.choices[0].message.content);
Create a model response for the given conversation.
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | REQUIRED | "fable-5" or "gpt-5.6-sol" |
| messages | array | REQUIRED | Array of message objects with role and content |
| stream | boolean | OPTIONAL | Enable streaming. Default: false |
| temperature | float | OPTIONAL | Sampling temperature (0.0–2.0). Default: 0.7 |
| max_tokens | integer | OPTIONAL | Maximum tokens in response. Default: 4096 |
curl https://api.nexus.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer nx-YOUR_API_KEY" \ -d '{ "model": "fable-5", "messages": [{"role": "user", "content": "What is 2+2?"}], "stream": false }'
{
"id": "nxs-7f3a9b2c",
"object": "chat.completion",
"created": 1718476800,
"model": "fable-5",
"choices": [{
"index": 0,
"message": {"role": "assistant", "content": "2 + 2 equals 4."},
"finish_reason": "stop"
}],
"usage": {"prompt_tokens": 18, "completion_tokens": 7, "total_tokens": 25}
}Retrieve all available models.
curl https://api.nexus.ai/v1/models \ -H "Authorization: Bearer nx-YOUR_API_KEY"
Standard HTTP error codes.
| Code | Meaning | Description |
|---|---|---|
| 400 | Bad Request | Invalid request body or parameters |
| 401 | Unauthorized | Invalid or missing API key |
| 429 | Rate Limited | Too many requests |
| 500 | Server Error | Internal error |
Current rate limits for your tier.
| Plan | Requests/min | Tokens/min | Concurrent |
|---|---|---|---|
| Free | 60 | 40,000 | 3 |
| Pro | 1,000 | 500,000 | 20 |
| Enterprise | 10,000 | 5,000,000 | 200 |