Skip to main content
Core.Today
|
AnthropicFastUltra

Claude 3.5 Sonnet

Anthropic's most intelligent model. Best-in-class for complex reasoning, nuanced understanding, and coding tasks with exceptional instruction following.

4 credits
per 1K tokens (avg)
200K context window
8K max output tokens
Vision capabilities
Computer use (beta)
Superior code generation
Exceptional instruction following

Model Specifications

Context Window
200K
tokens
Max Output
8K
tokens
Training Cutoff
2024-04
Compatible SDK
Anthropic

Capabilities

Vision
Function Calling
Streaming
JSON Mode
System Prompt

Token Pricing (per 1M tokens)

Token TypeCreditsUSD Equivalent
Input Tokens3,000$3.00
Output Tokens15,000$15.00
Cached Tokens300$0.30

* 1 credit โ‰ˆ $0.001 (actual charges may vary based on usage)

Quick Start

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "model": "claude-3.5-sonnet",
  "input": {
    "model": "claude-3-5-sonnet-20241022",
    "max_tokens": 4000,
    "system": "You are an expert analyst. Provide detailed, structured analysis.",
    "messages": [
      {
        "role": "user",
        "content": "Analyze the key themes and implications of this research paper: [paper text]"
      }
    ]
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
messagesarrayYes-Array of message objects with role and content
modelstringYesclaude-3-5-sonnet-20241022Model identifier
max_tokensintegerYes-Maximum tokens in response (required, up to 8192)
systemstringNo-System prompt for setting behavior
temperaturefloatNo1.0Sampling temperature (0-1)
streambooleanNofalseEnable streaming responses
toolsarrayNo-List of tools the model can use

Examples

Document Analysis

Analyze complex documents

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "model": "claude-3.5-sonnet",
  "input": {
    "model": "claude-3-5-sonnet-20241022",
    "max_tokens": 4000,
    "system": "You are an expert analyst. Provide detailed, structured analysis.",
    "messages": [
      {
        "role": "user",
        "content": "Analyze the key themes and implications of this research paper: [paper text]"
      }
    ]
  }
}'

Code Generation

Generate production-quality code

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "model": "claude-3.5-sonnet",
  "input": {
    "model": "claude-3-5-sonnet-20241022",
    "max_tokens": 4000,
    "messages": [
      {
        "role": "user",
        "content": "Create a TypeScript React component for a data table with sorting, filtering, and pagination. Use modern best practices."
      }
    ],
    "temperature": 0.3
  }
}'

Tool Use

Use tools/functions with Claude

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "model": "claude-3.5-sonnet",
  "input": {
    "model": "claude-3-5-sonnet-20241022",
    "max_tokens": 1000,
    "messages": [
      {
        "role": "user",
        "content": "Look up the current stock price of Apple."
      }
    ],
    "tools": [
      {
        "name": "get_stock_price",
        "description": "Get the current stock price for a given symbol",
        "input_schema": {
          "type": "object",
          "properties": {
            "symbol": {
              "type": "string",
              "description": "Stock ticker symbol"
            }
          },
          "required": [
            "symbol"
          ]
        }
      }
    ]
  }
}'

Tips & Best Practices

1max_tokens is required - always specify it
2Use system prompt for persona and constraints
3XML tags in prompts improve structured responses
4Temperature max is 1.0 (not 2.0 like OpenAI)
5Excellent at following complex, multi-step instructions
6Use caching for repeated context to reduce costs

Use Cases

Complex document analysis
Code generation and review
Research and analysis
Technical writing
Agentic workflows
Data extraction

Model Info

ProviderAnthropic
Version20241022
CategoryLLM
Price4 credits

API Endpoint

POST /llm/anthropic/v1/messages
Try in PlaygroundBack to Docs