Docs
Claude Messages API
Updated 2026-07-21
Endpoint
POST https://api.rokoapi.com/v1/messages
For models such as the Claude series that support the Anthropic Messages protocol. Verify that the endpoint includes messages in the model landing page or development guide.
Request example
curl https://api.rokoapi.com/v1/messages \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "claude-sonnet-4",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello"}
]
}'
For most use cases, you can also use the same model via OpenAI-compatible calls if the channel also supports chat completions. Refer to the documentation for available models.