curl --request POST \
--url https://api.eddy.engineer/v1/llm.messages \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"max_tokens": 123,
"messages": "<array>",
"model": "<string>",
"stream": true,
"system": "<unknown>",
"tools": "<array>"
}
'import requests
url = "https://api.eddy.engineer/v1/llm.messages"
payload = {
"max_tokens": 123,
"messages": "<array>",
"model": "<string>",
"stream": True,
"system": "<unknown>",
"tools": "<array>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
max_tokens: 123,
messages: '<array>',
model: '<string>',
stream: true,
system: '<unknown>',
tools: '<array>'
})
};
fetch('https://api.eddy.engineer/v1/llm.messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/llm.messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'max_tokens' => 123,
'messages' => '<array>',
'model' => '<string>',
'stream' => true,
'system' => '<unknown>',
'tools' => '<array>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/llm.messages"
payload := strings.NewReader("{\n \"max_tokens\": 123,\n \"messages\": \"<array>\",\n \"model\": \"<string>\",\n \"stream\": true,\n \"system\": \"<unknown>\",\n \"tools\": \"<array>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/llm.messages")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"max_tokens\": 123,\n \"messages\": \"<array>\",\n \"model\": \"<string>\",\n \"stream\": true,\n \"system\": \"<unknown>\",\n \"tools\": \"<array>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/llm.messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"max_tokens\": 123,\n \"messages\": \"<array>\",\n \"model\": \"<string>\",\n \"stream\": true,\n \"system\": \"<unknown>\",\n \"tools\": \"<array>\"\n}"
response = http.request(request)
puts response.read_body{}An Anthropic Messages request, forwarded to the deployment's LLM gateway
The body is the Anthropic Messages shape (model, max_tokens, system, messages, tools, thinking, output_config, stream, …) and is forwarded byte for byte to the TrueFoundry gateway that fronts Claude on Google Cloud; the reply (JSON, or an SSE stream when stream is true) is answered with the gateway’s status and content type unchanged. The engine identifies the caller and tags the upstream request (x-tfy-metadata: subject, uid, role) for the gateway’s per-user cost ledger, refuses any model outside the caller’s allowlist typed (403 MODEL_NOT_ALLOWED) before the gateway sees it, and meters the call (model, token counts, wall time) beside the solves in /admin/usage. No gateway credential ever reaches a client.
curl --request POST \
--url https://api.eddy.engineer/v1/llm.messages \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"max_tokens": 123,
"messages": "<array>",
"model": "<string>",
"stream": true,
"system": "<unknown>",
"tools": "<array>"
}
'import requests
url = "https://api.eddy.engineer/v1/llm.messages"
payload = {
"max_tokens": 123,
"messages": "<array>",
"model": "<string>",
"stream": True,
"system": "<unknown>",
"tools": "<array>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
max_tokens: 123,
messages: '<array>',
model: '<string>',
stream: true,
system: '<unknown>',
tools: '<array>'
})
};
fetch('https://api.eddy.engineer/v1/llm.messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/llm.messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'max_tokens' => 123,
'messages' => '<array>',
'model' => '<string>',
'stream' => true,
'system' => '<unknown>',
'tools' => '<array>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/llm.messages"
payload := strings.NewReader("{\n \"max_tokens\": 123,\n \"messages\": \"<array>\",\n \"model\": \"<string>\",\n \"stream\": true,\n \"system\": \"<unknown>\",\n \"tools\": \"<array>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/llm.messages")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"max_tokens\": 123,\n \"messages\": \"<array>\",\n \"model\": \"<string>\",\n \"stream\": true,\n \"system\": \"<unknown>\",\n \"tools\": \"<array>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/llm.messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"max_tokens\": 123,\n \"messages\": \"<array>\",\n \"model\": \"<string>\",\n \"stream\": true,\n \"system\": \"<unknown>\",\n \"tools\": \"<array>\"\n}"
response = http.request(request)
puts response.read_body{}Body
Response
The Messages reply (or the SSE stream), as the gateway answered it
The response is of type object.