Raw Proxy Access
Use Echo from any language or platform by calling the OpenAI-compatible proxy directly
Raw Proxy Access
Echo exposes an OpenAI-compatible proxy that can be used from any language or HTTP client. This is ideal for platforms and languages where no Echo SDK exists.
Base URL
All requests should be sent to:
https://echo.router.merit.systems
Authentication
Include your Echo API key or OAuth access token in the Authorization header:
Authorization: Bearer your_echo_api_key_or_token
Endpoints
Echo proxies the standard OpenAI API endpoints:
Chat Completions
POST https://echo.router.merit.systems/v1/chat/completions
Refer to OpenAI API Reference for more details.
Responses
POST https://echo.router.merit.systems/v1/responses
Refer to OpenAI API Reference for more details.
Images
POST https://echo.router.merit.systems/v1/images/generations
Refer to OpenAI API Reference for more details.
Videos
POST https://echo.router.merit.systems/v1/videos
Refer to OpenAI API Reference for more details.
Examples
curl https://echo.router.merit.systems/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your_echo_api_key" \
-d '{
"model": "gpt-4",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Streaming
To enable streaming, add "stream": true
to your request:
curl https://echo.router.merit.systems/v1/chat/completions \
-H "Authorization: Bearer your_echo_api_key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4",
"messages": [{"role": "user", "content": "Hello!"}],
"stream": true
}'
Streaming responses use Server-Sent Events (SSE) format.
Response Format
Responses follow the OpenAI API format. See the OpenAI API documentation for complete response schemas.
Example response:
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "gpt-4",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}
Error Handling
Echo returns standard HTTP error codes:
401 Unauthorized
- Invalid or missing API key402 Payment Required
- Insufficient credits429 Too Many Requests
- Rate limit exceeded500 Internal Server Error
- Server error
The proxy is fully compatible with the OpenAI API specification. Any HTTP client or library that works with OpenAI will work with Echo by simply changing the base URL and API key.