Docs
OpenAI-compatible requests, image generation, and model pricing.
curl
curl https://devix.one/api/v1/chat/completions \
-H "Authorization: Bearer mak_your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "llama-3.1-8b",
"messages": [{"role": "user", "content": "Explain usage-based billing"}]
}'python
from openai import OpenAI
client = OpenAI(
api_key="mak_your_key",
base_url="https://devix.one/api/v1"
)
response = client.chat.completions.create(
model="llama-3.1-8b",
messages=[{"role": "user", "content": "Explain usage-based billing"}],
)
print(response.choices[0].message.content)node
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "mak_your_key",
baseURL: "https://devix.one/api/v1"
});
const response = await client.chat.completions.create({
model: "llama-3.1-8b",
messages: [{ role: "user", content: "Explain usage-based billing" }]
});
console.log(response.choices[0].message.content);generic
curl https://devix.one/api/v1/run \
-H "Authorization: Bearer mak_your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "bge-base-en-v1.5",
"payload": { "text": ["Workers AI model catalog"] }
}'Models
| Name | Category | Price |
|---|---|---|
| llama-3.1-8b | text | $0.020 / 1K tok |
| sdxl | image | $0.020 / image |
| whisper | audio | $0.010 / min |
| llama-3.1-70b | text | $0.080 / 1K tok |