OneMux/Docs/Quick Integration

Quick Integration

OneMux supports OpenAI-, Anthropic-, and Google Gemini-compatible APIs. Point the Base URL of the official SDK to OneMux to call mainstream models through a single integration.

Endpoint

  • Base URL: https://api.onemux.net/v1

Authentication

  • Authentication: API Key (sk-...)
curl --location --request POST 'https://api.onemux.net/v1' \
--header 'Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "Model ID",
    "messages": [
        {
            "role": "user",
            "content": "Hello, please reply with [Connection successful]"
        }
    ],
    "stream": false
}

Compatible Protocols

  • Supports the native Anthropic format (/v1/messages), OpenAI-compatible format (/v1/chat/completions), OpenAI Responses API (/v1/responses, GPT series only), native Gemini format (/v1beta/models/{model}:generateContent), and image generation (/v1/images)