Messages

POST /v1/messages

POST/v1/messages

The Anthropic Messages API. Use the official Anthropic SDKs with base_url set to https://provider.texhub.ai.

bash
curl https://provider.texhub.ai/v1/messages \
  -H "x-api-key: $API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-fable-5-1",
    "max_tokens": 1024,
    "system": "You are concise.",
    "messages": [{"role": "user", "content": "What is a proxy?"}]
  }'

System prompts, multi-turn conversations, images, tools (tool_use / tool_result), prompt caching (cache_control), extended thinking and streaming are supported. Non-Anthropic models can also be called on this endpoint; requests are translated for you.