Claude AI by APIpie: Overview & Key Features
For detailed information about using models with APIpie, check out our Models Overview and Completions Guide.
Description
The Claude Series represents Anthropic's family of state-of-the-art large language models. These models, developed using Constitutional AI, leverage cutting-edge technology to deliver exceptional performance in natural language processing, instruction-following tasks, and extended-context interactions. The models are available through various providers integrated with APIpie's routing system.
Key Features
- Extended Token Capacity: Models support context lengths from 8K to 200K tokens for handling various text processing needs.
- Multi-Provider Availability: Accessible across platforms like OpenRouter, EdenAI, Anthropic, and Amazon Bedrock.
- Diverse Applications: Optimized for chat, instruction-following, analysis, writing, and multimodal tasks.
- Constitutional AI: Built with advanced safety measures and ethical considerations.
- Multimodal Capabilities: Claude-3 models can understand and analyze images alongside text.
Model List in the Claude Series
Model List updates dynamically please see the Models Route for the up to date list of models
For information about model performance and benchmarks, see the Claude Technical Report. The Claude-3 and Claude-3.5 series (Opus, Sonnet, Haiku) represent the latest generations with enhanced capabilities including multimodal understanding and increased response token limits up to 8,192 tokens, while the Claude-2 series offers robust performance for text-based tasks.
Model Name | Max Tokens | Response Tokens | Provider | Type |
claude-3-opus | 200,000 | 4,096 | Anthropic | LLM |
claude-3-5-sonnet | 200,000 | 4,096 | Anthropic | LLM |
claude-3-opus | 200,000 | 4,096 | OpenRouter | LLM |
claude-3-sonnet | 200,000 | 4,096 | OpenRouter | Vision |
claude-3-haiku | 200,000 | 4,096 | OpenRouter | Vision |
claude-3-5-sonnet | 200,000 | 8,192 | OpenRouter | LLM |
claude-3-5-haiku | 200,000 | 8,192 | OpenRouter | LLM |
claude-3-5-haiku-20241022 | 200,000 | 8,192 | OpenRouter | LLM |
claude-2.0 | 100,000 | 4,096 | OpenRouter | LLM |
claude-2.1 | 200,000 | 4,096 | OpenRouter | LLM |
claude-3-sonnet | 200,000 | 4,096 | Bedrock | Vision |
claude-3-haiku | 200,000 | 4,096 | Bedrock | Vision |
claude-3-opus-20240229-v1 | 200,000 | 4,096 | Bedrock | LLM |
claude-3-5-sonnet | 200,000 | 4,096 | Bedrock | LLM |
claude-3-5-haiku-20241022-v1 | 200,000 | 4,096 | Bedrock | LLM |
claude-2 | 200,000 | 4,096 | Bedrock | LLM |
claude-instant-1 | 100,000 | 4,096 | Bedrock | LLM |
claude-3-haiku | 200,000 | 4,096 | EdenAI | Vision |
claude-3-sonnet | 200,000 | 4,096 | EdenAI | Vision |
claude-3-5-sonnet | 200,000 | 4,096 | EdenAI | LLM |
claude-2 | 200,000 | 4,096 | EdenAI | LLM |
claude-instant-1 | 100,000 | 4,096 | EdenAI | LLM |
Example API Call
Below is an example of how to use the Chat Completions API to interact with a model from the Claude Series, such as claude-3-opus
.
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": "anthropic",
"model": "claude-3-opus",
"max_tokens": 150,
"messages": [
{
"role": "user",
"content": "Can you explain how photosynthesis works?"
}
]
}'
Response Example
The expected response structure for the Claude model might look like this:
{
"id": "chatcmpl-12345example12345",
"object": "chat.completion",
"created": 1729535643,
"provider": "anthropic",
"model": "claude-3-opus",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Photosynthesis is the process by which plants convert sunlight into chemical energy. Here's how it works:\n\n1. **Light Absorption**: Plants capture sunlight using chlorophyll in their leaves\n\n2. **Water and CO2**: They take in water through roots and carbon dioxide through leaf pores\n\n3. **Chemical Reaction**: Using sunlight's energy, they convert H2O and CO2 into glucose and oxygen:\n 6CO2 + 6H2O + light → C6H12O6 + 6O2\n\nThis process produces food for the plant and releases oxygen as a byproduct."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 15,
"completion_tokens": 125,
"total_tokens": 140,
"prompt_characters": 45,
"response_characters": 520,
"cost": 0.002250,
"latency_ms": 3100
},
"system_fingerprint": "fp_123abc456def"
}
API Highlights
- Provider: Specify the provider or leave blank for automatic selection.
- Model: Use any model from the Claude Series suited to your task. See Models Guide.
- Max Tokens: Set the maximum response token count (e.g., 150 in this example).
- Messages: Format your request with a sequence of messages, including user input and system instructions. See message formatting.
This example demonstrates how to seamlessly query models from the Claude Series for conversational or instructional tasks.
Applications and Integrations
- Conversational AI: Powering chatbots, virtual assistants, and other dialogue-based systems. Try it with LibreChat or OpenWebUI.
- Analysis and Research: Leveraging Claude's strong analytical capabilities for data analysis and research tasks.
- Content Creation: Using Claude's writing abilities for content generation and editing.
- Extended Context Tasks: Processing long documents with models supporting up to 200K tokens. Learn more in our Models Guide.
- Educational Support: Providing detailed explanations and tutoring across various subjects.
- Multimodal Analysis: Using Claude-3's ability to understand and analyze images alongside text for richer interactions.
- Vision Tasks: Leveraging image understanding capabilities for tasks like visual analysis, chart interpretation, and document processing.
Ethical Considerations
Claude models are built with Constitutional AI principles to ensure safe and ethical behavior. Users should still implement appropriate safeguards and consider potential biases in model outputs. For guidance on responsible AI usage, see Anthropic's Safety Practices.
Licensing
The Claude Series is available through Anthropic's API and partner platforms. Usage is subject to Anthropic's Terms of Service and respective provider agreements. For detailed licensing information, consult Anthropic's documentation and respective hosting providers.
Try out the Claude models in APIpie's various supported integrations.