---
title: Anthropic Models
---

# Anthropic Models
POST *https://api.turing.sh/text/anthropic*

## Parameters


- **messages**
  - Type: array
  - Required: true

- **model**
  - Type: string
  - Required: false
  - Options: claude-instant-1.2, claude-2.1
  - Default: claude-instant-1.2

- **max_tokens**
  - Type: number
  - Required: false
  - Default: 512

- **temperature**
  - Type: number
  - Required: false
  - Default: 0.9

- **stream**
  - Type: boolean
  - Required: false

## Response


- **cost**
  - Type: number
  - Description: Cost of the request in USD

- **result**
  - Type: string
  - Description: Result of the request

## Examples

<CodeGroup title="Anthropic Models example">
  ```typescript
  import axios from "axios";
  (async () => {
    let response = await axios({
      method: "post",
      url: 'https://api.turing.sh/text/anthropic',
      headers: {
        "Content-Type": "application/json",
        Authorization: "Bearer YOUR_API_KEY",
        "x-captcha-token": "Captcha key"
      },
      data: {
  "messages": "array",
  "model": "claude-instant-1.2",
  "max_tokens": 512,
  "temperature": 0.9
},
    })
  })();
  ```
  ```python
  import requests
  import json
  response = requests.post(
    "https://api.turing.sh/text/anthropic",
    headers={
      "Content-Type": "application/json",
      "Authorization": "Bearer YOUR_API_KEY",
      "x-captcha-token": "Captcha key"
    },
    data=json.dumps({
  "messages": "array",
  "model": "claude-instant-1.2",
  "max_tokens": 512,
  "temperature": 0.9
}),
  )
  ```
</CodeGroup>