Tokaify APITokaify API
API Reference
AI Model APIText / ConversationClaude APIclaude-opus-4-7

Messages

claude-opus-4-7 Messages API

The model parameter is fixed to claude-opus-4-7.

POST
/v1/messages

Authorization

BearerAuth

AuthorizationBearer <token>

Model relay interface recognition. Request heading: Autoration: Bearer .

In: header

Request Body

application/json

model*string

Claude Model Name.

Default"claude-opus-4-7"
messages*

Message arrays, usually containing only _FD_PROTECT_0 _ and _FD_PROTECT_1 __. Dialogue message list. Scope: At least 1 message.

system?string|

System tip. Can be a string or block array. system string fields. Scope: Non-empty string or verification by business configuration.

max_tokens*integer

Max output Token. Maximum output number of Tokens. Scope: 1 to the maximum of the context of the model.

Range1 <= value
temperature?number

Sample temperature. Sample temperature. Range: 0 to 2; the larger the value, the more random.

Range0 <= value <= 2
stream?boolean

Enables flowback. Whether or not to enable flow output. Scope: True or false.

tools?

Claude Tool Definition. . Scope: The length of arrays and the complexity of schema are based on upstream limits.

Response Body

application/json

curl -X POST "https://api.tokaify.com/v1/messages" \  -H "Content-Type: application/json" \  -d '{    "model": "claude-opus-4-7",    "messages": [      {        "role": "user",        "content": "Hello, please introduce yourself in one sentence."      }    ],    "max_tokens": 1024  }'
{
  "id": "task_01JZ8M9Q4R7V2K8N9P0Q",
  "type": "text",
  "role": "user",
  "content": "Hello, please introduce yourself in one sentence.",
  "model": "claude-opus-4-7",
  "usage": {
    "prompt_tokens": 1,
    "completion_tokens": 1,
    "total_tokens": 1,
    "input_tokens": 1,
    "output_tokens": 1
  },
  "stop_reason": "string"
}

How is this guide?

Last updated on