Skip to navigation

Post Messages (anthropic)

Authentication

fg-api-keystring
API Key authentication via header

Headers

anthropic-versionstringRequired
The Anthropic API version. The gateway forwards it to Anthropic unchanged.

Request

This endpoint expects an object.
modelstringRequired

The model to use, for example claude-sonnet-4-5.

max_tokensintegerRequired
messageslist of objectsRequired

Response

OK

Errors

500
Internal Server Error