Краткий вывод

  • Supports Chat Completions for low-friction SDK migration.
  • Supports streaming and tool-calling for agent workflows.
  • Stabilize system/messages parameters before production rollout.

Ключевые параметры

  • model | string | обяз. | claude-haiku-4-5 | - | Exact model identifier from ToAPIs.
  • messages | object[] | обяз. | - | - | Conversation messages in chronological order.
  • max_tokens | integer | обяз. | - | >=1 | Maximum output tokens.
  • stream | boolean | опц. | false | - | Enable SSE streaming output.
  • tools | object[] | опц. | - | - | Tool/function definitions for tool-calling.

Частые ошибки

  • 400 invalid_request_error: триггер=Missing fields or invalid payload types.; исправление=Validate model/messages/max_tokens schema.; повтор=Retry only after payload fix.
  • 401 authentication_error: триггер=Missing or invalid API key.; исправление=Verify Authorization header and key scope.; повтор=Retry after authentication fix.

claude-haiku-4-5

claude-haiku-4-5 by Anthropic is designed for chat, reasoning, and tool-calling workflows with ToAPIs-aligned integration contracts.

Тип модели:
Цена: Input 60 кредитов/1M, Output 300 кредитов/1M
Type a message to test the model.

Примеры генерации

Примеры генерации claude-haiku-4-5

Создать с этой моделью
claude-haiku-4-5 guide example 1

claude-haiku-4-5 #1

claude-haiku-4-5 guide example 2

claude-haiku-4-5 #2

claude-haiku-4-5 guide example 3

claude-haiku-4-5 #3

Прозрачные цены

claude-haiku-4-5 pricing

Text usage is billed by actual token consumption. Final billing follows the current account quote.

Пополнить кредиты
Input 60 кредитов/1M, Output 300 кредитов/1M

Почему ToAPIs

Why call claude-haiku-4-5 through ToAPIs?

Keep model access, API keys, billing, and usage management in one workflow.

Chat and reasoning

Supports multi-turn context and structured outputs.

Streaming output

SSE token streaming for real-time UX.

Tool calling

Compose retrieval/execution workflows with tools.

Connect in three steps

Create a key, send a compatible chat request, and monitor usage.

  1. 1

    Step 1

    Set Authorization: Bearer <YOUR_API_KEY>.

  2. 2

    Step 2

    Call chat endpoint with model, messages, and max_tokens.

  3. 3

    Step 3

    Enable stream or tools when needed.

When to use claude-haiku-4-5

Use case 1

When building coding/Q&A assistants and task agents.

Use case 2

When streaming and tool-calling are required.

Частые вопросы

claude-haiku-4-5 FAQ

What is claude-haiku-4-5 best for?

Best for chat, reasoning, coding, and tool-calling assistant workflows.

claude-haiku-4-5 API

Start building with claude-haiku-4-5

Test a request here, then continue in the dashboard or API documentation.

Try claude-haiku-4-5 with one ToAPIs key.

Use the same account and API surface across supported text models.

Sign up to get free credits