
AI21 Labs is a leading AI research company specializing in advanced language models. Their Jurassic-2 (J2) and Jamba series models leverage state-of-the-art technology to deliver exceptional performance in natural language processing and instruction-following tasks. The models are available through various providers integrated with APIpie's routing system.
The Jurassic-2 series offers powerful base models optimized for enterprise use, while the Jamba series represents their latest advancement in large language models, featuring extended context windows and enhanced instruction-following capabilities. Both series are built on AI21's proprietary training techniques and architectures detailed in their technical documentation.
| Model Name | Max Tokens | Response Tokens | Providers | Subtype | Type |
|---|---|---|---|---|---|
| j2-grande-instruct | 8,192 | 8,192 | Bedrock | LLM | LLM |
| j2-mid | 8,000 | 8,191 | Bedrock | LLM | LLM |
| j2-mid-v1 | 8,192 | 8,192 | Bedrock | LLM | LLM |
| j2-ultra-v1 | 8,192 | 8,192 | Bedrock | LLM | LLM |
| jamba-instruct-v1 | - | - | Bedrock | LLM | LLM |
| jamba-instruct | 256,000 | 4,096 | OpenRouter | ChatX | LLM |
| jamba-1-5-large | 256,000 | 4,096 | OpenRouter | ChatX | LLM |
| jamba-1-5-mini | 256,000 | 4,096 | OpenRouter | ChatX | LLM |
| jamba-1-5-large-v1 | 256,000 | 4,096 | Bedrock | LLM | LLM |
| jamba-1-5-mini-v1 | 256,000 | 4,096 | Bedrock | LLM | LLM |
Below is an example of how to use the Chat Completions API to interact with a model from the AI21 Series, such as jamba-instruct.
curl -L -X POST 'https://apipie.ai/v1/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
--data-raw '{
"provider": "openrouter",
"model": "jamba-instruct",
"max_tokens": 150,
"messages": [
{
"role": "user",
"content": "Can you explain how photosynthesis works?"
}
]
}'
The expected response structure for the AI21 model might look like this:
{
"id": "chatcmpl-12345example12345",
"object": "chat.completion",
"created": 1729535643,
"provider": "openrouter",
"model": "jamba-instruct",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Photosynthesis is the process by which green plants, algae, and some bacteria convert light energy into chemical energy. Here's how it works:\n\n1. **Light Absorption**: Plants capture light energy using a pigment called chlorophyll, which is found in chloroplasts.\n\n2. **Water and Carbon Dioxide**: They absorb water through their roots and carbon dioxide from the air.\n\n3. **Glucose Production**: The light energy is used to convert water and carbon dioxide into glucose (a sugar) and oxygen. The equation is:\n \n 6CO2 + 6H2O + light energy → C6H12O6 + 6O2\n\nThis process provides energy for the plant and releases oxygen into the atmosphere."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 15,
"completion_tokens": 125,
"total_tokens": 140,
"prompt_characters": 45,
"response_characters": 520,
"cost": 0.00225,
"latency_ms": 3100
},
"system_fingerprint": "fp_123abc456def"
}
jamba-instruct or others suited to your task. See Models Guide.This example demonstrates how to seamlessly query models from the AI21 Series for conversational or instructional tasks.
When choosing between AI21 models, APIpie provides comprehensive monitoring tools to help make informed decisions:
Performance Monitoring:
Pricing & Cost Analysis:
Health Metrics:
This monitoring system helps users:
The AI21 models are powerful tools that should be used responsibly. Users should implement appropriate safeguards and consider potential biases in model outputs. For guidance on responsible AI usage, see AI21's Responsible use Guidelines.
AI21 models are available through commercial licensing agreements. For detailed licensing information and terms of use, consult the AI21 Labs Terms of Service..
Grok API Overview: Unlock Real-Time AI Solutions
Discover xAI's Grok models with real-time knowledge, vision tasks, and unique personality. Compare features and find the perfect solution today!
Hermes Overview: Key Features & Integration Guide
Discover Nous Research's Hermes models, including Mixtral and Mistral. Compare features, token limits, and integration options today!