API reference
Anthropic Messages
Connect Anthropic-style clients to the Messages gateway.
https://www.modelmesh.in/api/v1Use the correct base URL
The HTTP endpoint is /api/v1/messages. Anthropic SDKs append /v1/messages, so their base URL is the site origin plus /api, without trailing /v1. Use the Anthropic URL in Connections.
Request fields
Provide model, messages, and a positive max_tokens. A system prompt belongs at the top level. Authentication accepts x-api-key or Authorization: Bearer. Choose a published Claude model appropriate for your client.
Compatibility boundaries
The gateway adapts supported requests to the configured provider. Streaming and tools depend on that provider and model. Native token counting, files, and batches are not implemented by this app.
Request example
https://www.modelmesh.in/api/v1/messagesReplace the key placeholder before running this example. This page does not send requests. Paid requests consume your allowance or funds.
$env:MODELMESH_API_KEY = 'YOUR_MODELMESH_KEY'
Invoke-RestMethod -Method Post -Uri 'https://www.modelmesh.in/api/v1/messages' `
-Headers @{Authorization="Bearer $env:MODELMESH_API_KEY"} `
-ContentType 'application/json' `
-Body '{
"model": "YOUR_MODEL_ID",
"messages": [
{
"role": "user",
"content": "Say hello in one sentence."
}
],
"max_tokens": 64
}'