AI21
Use AI21's Jamba models with Nexus — OpenAI-compatible API.
AI21's Jamba models use an OpenAI-compatible chat completions endpoint. Uses an OpenAI-compatible API.
import "github.com/xraph/nexus/providers/ai21"
provider := ai21.New(os.Getenv("AI21_API_KEY"))
gw := nexus.New(
nexus.WithProvider(provider),
)
| Option | Description |
|---|
ai21.WithBaseURL(url) | Override the API base URL (default: https://api.ai21.com/studio/v1) |
| Capability | Supported |
|---|
| Chat | Yes |
| Streaming | Yes |
| Embeddings | No |
| Vision | No |
| Tools | Yes |
| Thinking | No |
| Model | Context | Max Output | Input Price | Output Price |
|---|
jamba-1.5-large | 256K | 4,096 | $2.00/M | $8.00/M |
jamba-1.5-mini | 256K | 4,096 | $0.20/M | $0.40/M |