1RPC.AI logo
28+ Models
Results for: “Claude 3.5 Sonnet
Claude 3.5 Sonnet logo
Claude 3.5 Sonnet
Claude 3.5 Sonnet is Anthropic's streamlined model optimized for lightweight natural language tasks prioritizing rapid execution. The model supports brief messaging interactions, concise summarization, quick question-answering tasks, short-form information extraction, and lightweight language-based workflows requiring speed.
200K Tokens
Python
Typescript
Shell
Loading...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import requests
import json

response = requests.post(
    url="https://1rpc.ai/v1/chat/completions",
    headers={
        "Authorization": "Bearer <1RPC_AI_API_KEY>",
        "Content-type": "application/json",
    },
    data=json.dumps ({
        "model": "claude-3-5-sonnet-20241022",
        "max_tokens": 1024,
        "messages": [
            {
                "role": "user",
                "content": "What is the meaning of life?"
            }
        ]
    })
)