API reference

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
FieldTypeDescription
modelRequiredstringA Claude-compatible model ID available to the API key.
max_tokensRequiredintegerThe maximum number of output tokens to generate.
messagesRequiredarrayAlternating user and assistant messages in Anthropic format.
systemstring | arraySystem instructions supplied separately from messages.
streambooleanReturn 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:generateContent
POST/v1beta/models/:model:streamGenerateContent
Request · 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:embedContent
POST/v1/engines/:model/embeddings

Format selection