Connection Details
Use these details to connect to the ChatProxy API. The API is OpenAI-compatible.
http://100.77.7.77:3003/v1nokeyhaikusonnetopus
Chat Completions
Send messages and receive AI-generated responses. Supports both streaming and non-streaming modes.
Streaming
bash
curl "http://100.77.7.77:3003/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer nokey" \
-d '{
"model": "sonnet",
"stream": true,
"messages": [
{"role": "user", "content": "Hello, who are you?"}
]
}'Non-Streaming
bash
curl "http://100.77.7.77:3003/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer nokey" \
-d '{
"model": "sonnet",
"stream": false,
"messages": [
{"role": "user", "content": "Hello, who are you?"}
]
}'Tool Calling (Function Calling)
Define tools/functions that the AI can call to interact with external systems and APIs.
bash
curl "http://100.77.7.77:3003/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer nokey" \
-d '{
"model": "sonnet",
"messages": [
{"role": "user", "content": "What is the weather in London?"}
],
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather in a given location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA"
}
},
"required": ["location"]
}
}
}
]
}'Image Input (Vision)
Send images along with text for multimodal AI analysis. Supports URLs and base64-encoded images.
bash
curl "http://100.77.7.77:3003/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer nokey" \
-d '{
"model": "sonnet",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/image.jpg"
}
}
]
}
]
}'