Lewati ke konten utama
Logo Anthropic

API Claude Opus 4.6

Anthropic

Claude Opus 4.6 merupakan bagian dari keluarga model ClaudeLihat semua model Claude

Model berkemampuan tinggi dari Anthropic untuk penalaran kompleks dan tugas berdurasi panjang.

anthropic/claude-opus-4-6

Dokumentasi

Percakapan

Mulai percakapan

Model berkemampuan tinggi dari Anthropic untuk penalaran kompleks dan tugas berdurasi panjang.

Enter untuk kirim · Shift+Enter untuk baris baru

UnificAlly tidak menyimpan prompt dan balasan LLM Anda. Kami hanya menyimpan informasi penggunaan token untuk keperluan penagihan.

Menggunakan POST /v1/chat/completions dengan kunci API UnificAlly Anda. Mendukung system prompt dan user prompt, tools, streaming, dan mode berpikir bila tersedia.

Diperbarui

What is the Claude Opus 4.6 API?

The Claude Opus 4.6 API is live on UnificAlly as anthropic/claude-opus-4-6, from $0.75/1M tokens of input. Claude Opus 4.6 is Anthropic's February 2026 Opus model for coding, reasoning, research, long-context documents, and vision input. It sits between Opus 4.5 and the later Opus 4.7 and 4.8 releases, and runs on UnificAlly as anthropic/claude-opus-4-6. The important change is not a new style of chat. It is a bigger, more useful work model: 1M tokens of context, up to 128k output tokens, better long-context retrieval, stronger agentic coding, and more control over reasoning effort. Use it when the task has many moving parts: a large codebase, dense source documents, financial analysis, multi-step research, or visual inputs that need careful reasoning.

Claude Opus 4.6 API specs

Model IDanthropic/claude-opus-4-6
EndpointPOST https://direct-api.unifically.com/v1/chat/completions
Other API formatsPOST /v1/responses, POST /v1/messages
Request typesChat, streaming, tool calls
ResponseThe full reply in one JSON response, or server-sent events with stream set to true
Input rate$0.75/1M tokens
Output rate$3.75/1M tokens
Cache read rate$0.075/1M tokens
Cache creation rate$0.9375/1M tokens

Billing is per token, with no subscription. The Claude API pricing guide covers the rates for every Claude model.

How to use the Claude Opus 4.6 API

The Claude Opus 4.6 API uses /v1/chat/completions, the OpenAI-compatible endpoint shared by every language model on UnificAlly.

  1. Create an API key on the API keys page.
  2. Send a POST request to /v1/chat/completions on https://direct-api.unifically.com with the model ID and a messages array.
  3. Read the reply from choices[0].message.content in the same response.
curl -X POST https://direct-api.unifically.com/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "anthropic/claude-opus-4-6",
    "messages": [
      { "role": "user", "content": "Compare these two contract drafts and list every obligation that changed." }
    ]
  }'

The response comes back synchronously with the completion:

{
  "id": "3f8e2a1c-7b4d-4e9a-9c2f-5d1e8b7a6c40",
  "object": "chat.completion",
  "created": 1710000000,
  "model": "anthropic/claude-opus-4-6",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Three obligations changed between the drafts..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 28,
    "completion_tokens": 64,
    "total_tokens": 92,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    }
  }
}

The usage object holds the token counts for the request. Set "stream": true to receive tokens as they generate. The stream ends with data: [DONE].

Claude Opus 4.6 API parameters

ParameterTypeDefaultWhat it does
modelstringrequiredModel identifier, anthropic/claude-opus-4-6
messagesarrayrequiredNon-empty array of message objects with role and content (a string or a content parts array). Allowed roles are system, developer, user, assistant, tool, and function
streambooleanfalseIf true, the response is streamed using server-sent events
stream_optionsobjectnoneSet { "include_usage": true } to get a final chunk with token usage. Only used when stream is true
temperaturenumbernoneSampling temperature between 0 and 2. Higher values produce more random output
max_tokensintegernoneMaximum number of tokens to generate in the completion
max_completion_tokensintegernoneAccepted as an alias for max_tokens
reasoning_effortstringnoneHow much the model reasons before answering
top_pnumbernoneNucleus sampling parameter. Alternative to temperature
stopstring or arraynoneUp to four sequences where the model stops generating further tokens
toolsarraynoneList of tools the model may call. Each tool requires a type and function definition
tool_choicestring or objectnoneControls which tool is called, if any. Options are none, auto, required, or a specific tool
response_formatobjectnoneSet { "type": "json_object" } to enable JSON mode when supported by the model

The Claude Opus 4.6 API documentation has the full reference, with the Responses and Messages formats.

Messages request

Claude Opus 4.6 returns only the final answer on /v1/chat/completions, without the thinking text. To work in Anthropic's own format, call /v1/messages with the same key.

curl -X POST https://direct-api.unifically.com/v1/messages   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -H "anthropic-version: 2023-06-01"   -d '{
    "model": "anthropic/claude-opus-4-6",
    "max_tokens": 2048,
    "messages": [
      {"role": "user", "content": "Architect a microservices system for an e-commerce platform."}
    ]
  }'

Key features of Claude Opus 4.6

1M token context window

Very large prompts and document sets fit in one call. Recall is strong deep into the window: it scores 76.0% on the 1M-token, 8-needle MRCR v2 retrieval test.

128k max output

Long reports, code changes, and structured analysis come back in fewer turns instead of being stitched together across requests.

Adaptive thinking

The model decides when deeper reasoning is useful, rather than forcing the same reasoning depth on every turn.

Effort controls

Four levels (low, medium, high, max) trade speed for more careful reasoning inside the same model.

Stronger coding and debugging

It scores 65.4% on Terminal-Bench 2.0, a benchmark of real terminal tasks, with gains in planning, code review, debugging, and larger codebase work.

Top document and search rankings

On Arena, the thinking variant ranks #1 on the Document board at 1505±7 and the search variant ranks #1 on the Search board at 1253±5.

What Claude Opus 4.6 is best for

  • Large codebase review

    Migration planning and bug diagnosis across a whole repository.

  • Long document analysis

    Contracts, filings, research papers, or policy packs compared in one context.

  • Multi-step research

    Source synthesis with careful citations and hard-to-find facts.

  • Professional knowledge work

    Finance and legal first drafts built from filings and spreadsheets.

  • Vision reasoning

    Charts, diagrams, screenshots, and scientific figures as input.

  • Long-session agents

    Goals held across long traces without losing the thread.

Claude Opus 4.6 use cases

Build a code review agent that reads a whole repository, finds risky changes, and writes a focused review. Build a document analyst that compares long contracts, extracts obligations, and flags conflicts. Build a research workflow that searches, reads, and summarizes many sources into a traceable brief. Or turn filings and spreadsheets into a first-pass finance memo for human review. Opus 4.6 is strongest when the job needs context, planning, and judgment more than raw response speed.

Claude Opus 4.6 limitations

Opus 4.6 can spend more reasoning than needed on simple prompts. Use lower effort for routine extraction, classification, or short answers.

Large context is not a free pass to paste everything. Recall can degrade as context grows, so curated inputs still matter.

Safety testing also flags over-eager behavior in some agentic GUI and computer-use settings. Give it clear permission boundaries when actions can change files, accounts, data, or external systems.

High-stakes legal, financial, medical, and security work still needs human review. The model is good at first-pass analysis, not final accountability.

Claude Opus 4.6 vs Claude Opus 4.5

Claude Opus 4.6 is the better choice for long-context and long-running work. It adds a 1M-token context window, 128k output, adaptive thinking, and the max effort level. Opus 4.5 has a smaller 200k context window and 64k max output.

The benchmark picture is also clear: Opus 4.6 improves over Opus 4.5 on Terminal-Bench 2.0, ARC-AGI-2, OpenRCA, OSWorld-Verified, long-context retrieval, and BrowseComp. SWE-bench Verified is roughly flat, so the upgrade is less about one more coding point and more about deeper context and longer work.

When to use Claude Opus 4.6

Use Claude Opus 4.6 when the task is too large or too ambiguous for a faster general model. It is a good fit for careful plans, deep code understanding, dense document work, and research where missing one detail matters. If the task is short, repetitive, or latency-sensitive, a smaller model is usually enough.

FAQ

Pertanyaan yang sering diajukan tentang Claude Opus 4.6

anthropic/claude-opus-4-6, called through the OpenAI-compatible POST /v1/chat/completions endpoint with your UnificAlly API key.

Head to the API keys page after signing up and copy a key for the Authorization: Bearer header. Opus 4.6 is anthropic/claude-opus-4-6 on https://direct-api.unifically.com, where the OpenAI-compatible chat endpoint lets an OpenAI SDK connect through its base URL setting.

Post anthropic/claude-opus-4-6 and your messages to /v1/chat/completions; the reply returns in the OpenAI chat completions format, with the text in choices[0].message.content. Set reasoning_effort to control thinking depth (up to max), and switch to /v1/messages if you prefer Anthropic's own format.

Text and image input, with text output. It is a reasoning and analysis model, not an image, audio, or video generation model.

1M tokens. That covers large document sets, long agent traces, and codebases with many related files.

Up to 128k output tokens in a single response. Use it for long reports, large structured outputs, and multi-part technical writeups.

It lets the model decide when deeper reasoning is useful. It pairs with effort levels, so you can ask for lighter or deeper reasoning without changing models.

low, medium, high, and max. Use max for the hardest reasoning and planning work; use lower settings for simple or repeated tasks.

For long-context work, agentic coding, document analysis, and research, yes. It adds a 1M context window (up from 200k), 128k output (up from 64k), adaptive thinking, and stronger results across many evaluations.

For simple, high-volume tasks where a smaller model answers well. Also be careful with autonomous actions - give clear rules, require review for risky steps, and keep humans in control of high-impact decisions.

Panduan dan perbandingan Claude Opus 4.6

Tinjau harga, batasan, dan hasil pengujian sebelum menjalankan model ini.