Utilisation
Envoyez vos requêtes avec l'en-tête Authorization: Bearer VOTRE_CLE ou X-API-Key: VOTRE_CLE. Endpoint OpenAI-compatible : https://vyrox.deepstone.fr/v1/chat/completions
Ubuntu (curl)
Windows (PowerShell)
Node.js
Python
OpenCode
# Ubuntu / terminal
curl -X POST https://vyrox.deepstone.fr/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer vyx_VOTRE_CLE" \
-d '{"model":"vyrox","messages":[{"role":"user","content":"Bonjour Vyrox"}]}'
# Windows PowerShell
$body = @{ model = 'vyrox'; messages = @(@{ role = 'user'; content = 'Bonjour Vyrox' }) } | ConvertTo-Json
Invoke-RestMethod -Uri 'https://vyrox.deepstone.fr/v1/chat/completions' `
-Method Post `
-Headers @{ 'Content-Type' = 'application/json'; 'Authorization' = 'Bearer vyx_VOTRE_CLE' } `
-Body $body
# Ou avec curl.exe
curl.exe -X POST https://vyrox.deepstone.fr/v1/chat/completions `
-H "Content-Type: application/json" `
-H "Authorization: Bearer vyx_VOTRE_CLE" `
-d '{\"model\":\"vyrox\",\"messages\":[{\"role\":\"user\",\"content\":\"Bonjour Vyrox\"}]}'
// Node.js (fetch)
const res = await fetch('https://vyrox.deepstone.fr/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer vyx_VOTRE_CLE'
},
body: JSON.stringify({
model: 'vyrox',
messages: [{ role: 'user', content: 'Bonjour Vyrox' }]
})
});
const data = await res.json();
console.log(data.choices[0].message.content);
# Python (requests)
import requests
r = requests.post(
'https://vyrox.deepstone.fr/v1/chat/completions',
headers={'Authorization': 'Bearer vyx_VOTRE_CLE'},
json={'model': 'vyrox', 'messages': [{'role': 'user', 'content': 'Bonjour Vyrox'}]}
)
print(r.json()['choices'][0]['message']['content'])
// opencode.json
{
"provider": {
"vyrox": {
"npm": "@ai-sdk/openai-compatible",
"name": "Vyrox AI",
"options": {
"baseURL": "https://vyrox.deepstone.fr/v1",
"apiKey": "vyx_VOTRE_CLE"
},
"models": {
"vyrox": { "name": "Vyrox" }
}
}
}
}