Error
A valid request URL is required to generate request examples{
"id": "<string>",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "<string>",
"thinking": "<string>",
"signature": "<string>",
"data": "<string>",
"tool_use_id": "<string>",
"id": "<string>",
"name": "<string>",
"input": {},
"server_name": "<string>",
"content": "<string>",
"source": {
"type": "base64",
"media_type": "<string>",
"data": "<string>",
"url": "<string>"
},
"cache_control": {
"type": "ephemeral",
"ttl": "<string>"
},
"citations": {
"enabled": true
},
"context": "<string>",
"title": "<string>"
}
],
"model": "<string>",
"stop_reason": "end_turn",
"stop_sequence": "<string>",
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"cache_creation_input_tokens": 123,
"cache_read_input_tokens": 123,
"cache_creation": {
"ephemeral_5m_input_tokens": 123,
"ephemeral_1h_input_tokens": 123
}
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
}
}Anthropic Integration
Create message (Anthropic format)
Creates a message using Anthropic Messages API format. Supports streaming via SSE.
Async inference: Send x-bf-async: true to submit the request as a background job and receive a job ID immediately. Poll with x-bf-async-id: <job-id> to retrieve the result. When the job is still processing, the response will have an empty content array. When completed, content will contain the full result. See Async Inference for details.
POST
/
anthropic
/
v1
/
messages
Error
A valid request URL is required to generate request examples{
"id": "<string>",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "<string>",
"thinking": "<string>",
"signature": "<string>",
"data": "<string>",
"tool_use_id": "<string>",
"id": "<string>",
"name": "<string>",
"input": {},
"server_name": "<string>",
"content": "<string>",
"source": {
"type": "base64",
"media_type": "<string>",
"data": "<string>",
"url": "<string>"
},
"cache_control": {
"type": "ephemeral",
"ttl": "<string>"
},
"citations": {
"enabled": true
},
"context": "<string>",
"title": "<string>"
}
],
"model": "<string>",
"stop_reason": "end_turn",
"stop_sequence": "<string>",
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"cache_creation_input_tokens": 123,
"cache_read_input_tokens": 123,
"cache_creation": {
"ephemeral_5m_input_tokens": 123,
"ephemeral_1h_input_tokens": 123
}
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
}
}Authorizations
BearerAuthVirtualKeyAuthApiKeyAuth
Headers
Body
application/json
Response
Successful response
Was this page helpful?

