Первый запрос
Подставь свой ключ и отправь сообщение. Ответ приходит в OpenAI-совместимом формате.
curl https://api.lndn.space/v1/chat/completions \
-H "Authorization: Bearer pxg_live_..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.6-flash-high",
"conversation_id": "my-first-chat",
"messages": [
{"role": "user", "content": "Привет! Объясни квантовую запутанность просто."}
]
}'from openai import OpenAI
client = OpenAI(
api_key="pxg_live_...",
base_url="https://api.lndn.space/v1",
)
response = client.chat.completions.create(
model="gemini-3.6-flash-high",
messages=[{"role": "user", "content": "Привет!"}],
extra_body={"conversation_id": "my-first-chat"},
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: "pxg_live_...",
baseURL: "https://api.lndn.space/v1",
});
const response = await client.chat.completions.create({
model: "gemini-3.6-flash-high",
messages: [{ role: "user", content: "Привет!" }],
conversation_id: "my-first-chat",
});
console.log(response.choices[0].message.content);conversation_id и можешь отправлять только новое сообщение — Proxagy подставит предыдущую историю.