Provider-native APIs
Use Anthropic Messages or Google Gemini request formats without rewriting your application to the OpenAI schema.
Anthropic Messages
The gateway accepts the native Messages API request and response contract.
POST
/v1/messages| Field | Type | Description |
|---|---|---|
modelRequired | string | A Claude-compatible model ID available to the API key. |
max_tokensRequired | integer | The maximum number of output tokens to generate. |
messagesRequired | array | Alternating user and assistant messages in Anthropic format. |
system | string | array | System instructions supplied separately from messages. |
stream | boolean | Return Anthropic server-sent events when true. |
Request · bash
curl "https://cisoma.com/v1/messages" \
-H "x-api-key: $Cisoma_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "claude-sonnet-4-5",
"max_tokens": 512,
"messages": [{"role": "user", "content": "Hello"}]
}'Google Gemini generateContent
Use the model action path for Gemini content generation and streaming.
POST
/v1beta/models/:model:generateContentPOST
/v1beta/models/:model:streamGenerateContentRequest · bash
curl "https://cisoma.com/v1beta/models/gemini-2.5-flash:generateContent" \
-H "x-goog-api-key: $Cisoma_API_KEY" \
-H "content-type: application/json" \
-d '{
"contents": [{
"role": "user",
"parts": [{"text": "Explain model routing."}]
}]
}'Gemini embeddings
Gemini model action paths are relayed through the same authentication, rate-limit, routing, and billing pipeline.
POST
/v1beta/models/:model:embedContentPOST
/v1/engines/:model/embeddings