POST

Generate a chat completion from a prompt (optional system prompt, max_tokens, temperature). Powered by Anthropic Claude 3.7 Sonnet

/v1/llm/claude-3.7-sonnet

Powered by Anthropic

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/llm/claude-3.7-sonnet
Content-Type: application/json

{
  "prompt": "Summarize this text in one sentence.",
  "max_tokens": 1024,
  "temperature": 0.7,
  "top_p": 1
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Generate a chat completion from a prompt (optional system prompt, max_tokens, temperature). Powered by Anthropic Claude 3.7 Sonnet via Replicate.

AI safety company building the Claude family of models.

Request schema

Body: JSON · application/json

FieldTypeDescription
promptstringrequired
system_promptstringoptional
max_tokensintegerrequiredmin: 1024
temperaturenumberrequiredmin: 0
top_pnumberrequiredmin: 0
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/llm/claude-3.7-sonnet \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "Summarize this text in one sentence.",
  "max_tokens": 1024,
  "temperature": 0.7,
  "top_p": 1
}'

402 payment flow omitted — see Integrations for settlement.