Features of Anthropic Models

Features

  • Text completions: Build advanced chat bots or text processors

  • Function Calling: Utilize tools for specific tasks and API calling.

  • Vision Tasks: Process and analyze images.

Example Requests

Vision

Note: API only support BASE64 String as Image input.

Possible Media Types

  • image/png

  • image/gif

  • image/webp

Function Calling

To process text and use function calling, follow the examples below:

Example Request 1: Get Weather Information

Example Request 2: Simple Text Response

Pro tip: you can assign a system role to the Claude models by using "system" parameter outside of messages array.

Example Response

The responses from the Apilaplas 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:

Streaming with Python SDK

To enable streaming of responses, set stream=True in your request payload.

Last updated