OpenAI & Anthropic API Reference¶
Turing Engine includes a dual API gateway listening on port 8000.
1. OpenAI Chat Completions (POST /v1/chat/completions)¶
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "llama-3.1-70b",
"messages": [
{"role": "system", "content": "You are a fast AI assistant."},
{"role": "user", "content": "Explain Turing Engine."}
],
"temperature": 0.7,
"max_tokens": 128,
"stream": false
}'