For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DashboardSign Up
  • Getting Started
    • Welcome
    • Quick Start
    • Authentication
  • Native Mode
    • Overview
    • OpenAI
    • Anthropic
    • Gemini
  • Unified Mode
    • Overview
    • Python
    • TypeScript
    • cURL
  • Platform
    • Key Management
    • Rate Limits & Budgets
    • Usage & Billing
    • Error Reference
  • API Reference
      • POSTOpenAI
      • POSTAnthropic
      • POSTGemini
DashboardSign Up
API ReferenceNative Mode

Anthropic

POST
/anthropic/v1/messages
POST
/anthropic/v1/messages
$curl -X POST https://api.trygateway.ai/anthropic/v1/messages \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "model": "claude-sonnet-4-6",
> "messages": [
> {
> "role": "user",
> "content": "string"
> }
> ],
> "max_tokens": 1
>}'
200Successful
1{}

Transparent proxy to the Anthropic API. Your request is forwarded unmodified — the gateway only swaps your proxy key for the real Anthropic API key. Use exactly the same request body you would send to api.anthropic.com/v1/messages. The gateway sets anthropic-version: 2023-06-01 if you don’t include it.

Was this page helpful?
Previous

Gemini

Next
Built with

Authentication

AuthorizationBearer

Your proxy key (starts with sk-proxy-…). Create one in the dashboard at app.trygateway.ai.

Request

This endpoint expects an object.
modelstringRequired
Anthropic model identifier
messageslist of objectsRequired
max_tokensintegerRequired

Required by Anthropic — maximum tokens to generate

systemstringOptional
System prompt
streambooleanOptionalDefaults to false
temperaturedoubleOptional

Response

Anthropic messages response (returned unmodified from Anthropic)