Skip to content
Halaman ini belum tersedia dalam bahasa anda, jadi kandungannya dipaparkan dalam bahasa Inggeris.
Anthropic · Claude Haiku

claude-haiku-4-5-20251001-thinking API

Build chat and extended-reasoning workflows with Claude Haiku on APISea.

PenaakulanSembang & TeksSegerakCaching prompt
ID model
claude-haiku-4-5-20251001-thinking

Harga API claude-haiku-4-5-20251001-thinking

Semua harga dalam USD. Kadar APISea dibandingkan dengan harga senarai rasmi bagi unit yang sama.

Jenis tokenAPISeaRasmiJimat
Input bagi setiap 1M token$0.88$1.00−12%
Input dicache bagi setiap 1M token$0.088$0.10−12%
Penulisan cache bagi setiap 1M token$1.10$1.25−12%
Penulisan cache (5 min) bagi setiap 1M token$1.10$1.25−12%
Penulisan cache (1 jam) bagi setiap 1M token$1.76$2.00−12%
Output bagi setiap 1M token$4.40$5.00−12%

Apakah itu claude-haiku-4-5-20251001-thinking?

Anthropic’s claude-haiku-4-5-20251001-thinking is a Claude Haiku model for chat and reasoning workflows. Its thinking suffix positions it for extended reasoning, while its date suffix indicates a pinned snapshot suited to reproducible model selection. Developers can use it for multi-turn assistants, document analysis, and tool-assisted workflows. APISea’s native Claude Messages interface supports text and image content, SSE streaming, tool definitions, and an extended thinking configuration. The model allows up to 200,000 input tokens and 64,000 output tokens.

Access it through APISea with one API key, using the OpenAI-compatible base URL https://api.apisea.ai/v1 or the native Claude Messages endpoint. Billing is pay-as-you-go and applies only to successful requests. Input costs $0.88 per 1M tokens, output costs $4.40 per 1M tokens, and cache reads cost $0.088 per 1M tokens. Cache writes are billed separately; the default configuration is about 12% below provider list price.

Sorotan claude-haiku-4-5-20251001-thinking

Extended Thinking Controls

The native Claude Messages API exposes a thinking object for extended reasoning. Responses may include thinking blocks when enabled.

Large Token Limits

Supports up to 200,000 input tokens and 64,000 output tokens. Set max_tokens to control the requested generation length.

Prompt Cache Support

Supports prompt-cache reads and writes, with documented 5-minute and 1-hour cache-write pricing. Cache reads cost $0.088 per 1M tokens.

Native Claude Integration

APISea’s Claude Messages endpoint supports multi-turn conversations, text and image content, tool use, and SSE streaming. Responses pass through without a response wrapper.

Cara memanggil API claude-haiku-4-5-20251001-thinking dalam 4 langkah

  1. 01

    Dapatkan API key

    Log masuk ke APISea, tambah nilai sekurang-kurangnya $50 dan cipta kunci sk-sea dalam konsol.

  2. 02

    Tetapkan base URL

    Gunakan https://api.apisea.ai/v1 sebagai base URL dalam SDK atau klien HTTP anda.

  3. 03

    Hantar permintaan

    Panggil POST /v1/chat/completions dengan "model": "claude-haiku-4-5-20251001-thinking" dan parameter di bawah.

  4. 04

    Urus respons

    Baca respons (atau strim token dengan stream: true). Penggunaan dan kos dipaparkan dalam konsol anda.

curl https://api.apisea.ai/v1/chat/completions \
  -H "Authorization: Bearer $APISEA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-4-5-20251001-thinking",
    "messages": [
      {"role": "system", "content": "You are a concise assistant."},
      {"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
    ],
    "stream": false
  }'

Parameter

ParameterJenisWajibLalaiPenerangan
modelstringWajibclaude-sonnet-4-6Model name
messagesarrayWajib—List of messages
rolestringWajibuserRole type
contentstringWajib—Message content
max_tokensintegerWajib—Maximum tokens to generate (**required**, same as Anthropic official)
thinkingobjectPilihan—Extended thinking configuration
systemstring | arrayPilihan—System prompt
temperaturenumberPilihan—Temperature parameter, range 0-1
top_pnumberPilihan—Nucleus sampling parameter, range 0-1
top_kintegerPilihan—Top-K sampling
streambooleanPilihan—Enable streaming
stop_sequencesarrayPilihan—Stop sequences
metadataobjectPilihan—Metadata
toolsarrayPilihan—Tool definitions
tool_choiceobjectPilihan—Tool choice strategy

Perkara yang boleh anda bina dengan claude-haiku-4-5-20251001-thinking

Document analysis assistants

Build assistants that work through supplied documents and answer follow-up questions, using the input allowance and multi-turn conversation support.

Reasoning-oriented chat

Use the extended thinking configuration for tasks that benefit from working through constraints before producing an answer.

Tool-assisted workflows

Define tools through the Claude Messages interface to let an assistant request application functions during a conversation.

Repeated-context applications

Build workflows that reuse shared prompt context, with prompt caching available to reduce the cost of cache-read tokens.

Petua untuk hasil yang lebih baik

  • 01

    Set an output budget

    Include max_tokens in native Claude Messages requests—it is required. Choose a budget appropriate to the task rather than always requesting the 64,000-token maximum.

  • 02

    Prefer explicit thinking configuration

    For easier migration to Anthropic’s official endpoint, the docs recommend a standard model name with the thinking object over a platform-side thinking alias. Preserve thinking-block signatures unchanged when returning those blocks in multi-turn conversations.

  • 03

    Plan cache lifetimes

    Cache writes with a 5-minute TTL cost $1.10 per 1M tokens; writes with a 1-hour TTL cost $1.76 per 1M tokens. Choose based on how long you expect to reuse the context, accounting for separate cache-read charges.

  • 04

    Keep API formats separate

    Use /v1/chat/completions for OpenAI-compatible requests or /v1/messages for native Claude requests. On the native interface, place system instructions in the separate system parameter, not in messages.

Had dan perkara yang perlu diketahui

  • Maximum input is 200,000 tokens, and maximum output is 64,000 tokens.

  • Native Claude Messages requests require max_tokens; the model may stop before reaching that limit.

  • Returning thinking blocks with altered signatures causes the upstream to reject the request.

Soalan lazim API claude-haiku-4-5-20251001-thinking

How much does claude-haiku-4-5-20251001-thinking cost on APISea?

Input costs $0.88 per 1M tokens, output costs $4.40 per 1M tokens, and cached input costs $0.088 per 1M tokens. Cache writes cost $1.10 per 1M tokens, including the 5-minute TTL option; the 1-hour TTL option costs $1.76 per 1M tokens. The default configuration is about 12% below provider list price, with billing only for successful requests.

How do I call this model through APISea?

Set model to claude-haiku-4-5-20251001-thinking and send an authenticated request to https://api.apisea.ai/v1/chat/completions for the OpenAI-compatible format. For native Claude Messages, use https://api.apisea.ai/v1/messages with messages and the required max_tokens parameter.

Which parameters control extended thinking and streaming?

The native Claude Messages interface accepts a thinking object for extended thinking and stream for SSE streaming. It also exposes system, temperature, top_p, top_k, tools, and tool_choice controls; the docs recommend using either temperature or top_p, not both.

What are the input and output token limits?

The model supports a maximum of 200,000 input tokens and 64,000 output tokens. On the native Claude Messages interface, max_tokens is required and sets the requested generation cap, but the model may stop earlier.

Can I use this model commercially?

Commercial use is subject to the provider’s terms. Review Anthropic’s applicable terms and APISea’s terms for your intended application.

What do the thinking and date suffixes mean?

The thinking suffix positions this variant for extended reasoning, and the date suffix indicates a pinned snapshot for reproducible model selection. The docs recommend using a standard model name plus the thinking parameter when portability to Anthropic’s official endpoint matters.

Model berkaitan

Pilihan: 250+ model · Tambah nilai minimum $50

Mula membina dengan claude-haiku-4-5-20251001-thinking

Satu kunci, bayar mengikut penggunaan bermula daripada $50, hanya dicaj untuk permintaan yang berjaya.