Anthropic
Overview
Anthropic is an AI research and product company founded by former OpenAI researchers. The company is best known for its strong emphasis on AI safety, interpretability, and long-term alignment. Anthropic describes its mission as building “reliable, interpretable, and steerable” AI systems that can be safely deployed at scale.
Its product lineup spans lightweight Haiku models for fast inference, Sonnet models aimed at general-purpose production workloads, and Opus models designed for advanced reasoning, coding, and research tasks. Beyond chat assistants, Anthropic is actively expanding into agentic tooling with products such as Claude Code and enterprise integrations focused on automation, software engineering, and organizational workflows.
The chat models from this provider have some unique characteristics. Models from Anthropic can be accessed not only via the standard /v1/chat/completions endpoint but also through dedicated endpoints — /messages and /v1/batches.
The sections below describe their API schemas, usage specifics, and example requests.
Supported capabilities:
Text completions: Build advanced chat bots or text processors.
Function Calling: Utilize tools for specific tasks and API calling.
Stream mode: Get the text chat model responses as they are generated, rather than waiting for the entire response to be completed.
Batch Processing: Send multiple independent requests in a single API call.
Vision Tasks: Process and analyze images.
Text Completions
Ask something and get an answer in a chat-like conversation format.
Example: Simple Text Response
Function Calling
To process text and use function calling, follow the examples below:
Example: Get Weather Information
Streaming Mode
To enable streaming of responses, set stream=True in your request payload.
Batch Processing
Due to the complexity of its description, this capability has been placed on a separate page.
Vision
Note: API only support Base64 string as image input.
Possible media types:
image/jpegimage/pngimage/gifimage/webp
Response Format
The responses from the AI/ML API for Anthropic models will typically include the generated text or results from the tool called. Here is an example response for a weather query:
Last updated
Was this helpful?