Model No Longer Available
This model has been delisted from the API. This page is preserved for reference purposes only.
claude-3-5-sonnet-20241022
Anthropic's claude-3-5-sonnet-20241022. thoughtful AI with strong ethics.
Quick Start Guide
import OpenAI from "openai";
const openai = new OpenAI({
baseURL: "https://api.okrouter.com/v1",
apiKey: "<YOUR_OKROUTER_KEY>",
});
async function main() {
const completion = await openai.chat.completions.create({
model: "claude-3-5-sonnet-20241022",
messages: [
{ role: "user", content: "Hello! What can you do?" }
],
});
console.log(completion.choices[0].message);
}
main();Getting started with claude-3-5-sonnet-20241022 is easy. Since OkRouter is fully compatible with the OpenAI SDK, you can use existing libraries to access this model immediately. claude-3-5-sonnet-20241022 is fully compatible with the OpenAI Chat Completions API. distinctive features include Expanded context window and Text support.
Frequently Asked Questions
?How much does claude-3-5-sonnet-20241022 cost?
claude-3-5-sonnet-20241022 costs $2.40 per 1M input tokens and $12.00 per 1M output tokens via OkRouter. This is 20% cheaper than OpenRouter with the same great performance.
?Is claude-3-5-sonnet-20241022 compatible with OpenAI SDK?
Yes! claude-3-5-sonnet-20241022 works seamlessly with all OpenAI SDKs (Python, JavaScript, Go, etc.). Simply change your base_url to api.okrouter.com and use your OkRouter API key. No code changes needed.
?What can I do with claude-3-5-sonnet-20241022's large context window?
With 200K context, you can process entire codebases, analyze multiple documents simultaneously, generate long-form content, and build sophisticated RAG applications without chunking.