Get Started
Deploy your AI Application using Inceptron
Deploy your first AI application in minutes. Leverage our serverless platform to scale effortlessly.
Here’s a quick example of how to create a chat completion using the Inceptron API with different programming languages:
Python — Non-streaming
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.inceptron.io/v1",
api_key=os.environ["INCEPTRON_API_KEY"],
)
completion = client.chat.completions.create(
model="zai-org/GLM-5.3",
messages=[
{
"role": "user",
"content": "How many moons are there in the Solar System?"
}
],
)
print(completion.choices[0].message)Python — Streaming
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.inceptron.io/v1",
api_key=os.environ["INCEPTRON_API_KEY"],
)
stream = client.chat.completions.create(
model="zai-org/GLM-5.3",
messages=[
{
"role": "user",
"content": "How many moons are there in the Solar System?"
}
],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content, end="")JavaScript — Non-streaming
import { OpenAI } from "openai";
const client = new OpenAI({
baseURL: "https://api.inceptron.io/v1",
apiKey: process.env.INCEPTRON_API_KEY,
});
const chatCompletion = await client.chat.completions.create({
model: "zai-org/GLM-5.3",
messages: [
{
role: "user",
content: "How many moons are there in the Solar System?",
},
],
});
console.log(chatCompletion.choices[0].message);JavaScript — Streaming
import { OpenAI } from "openai";
const client = new OpenAI({
baseURL: "https://api.inceptron.io/v1",
apiKey: process.env.INCEPTRON_API_KEY,
});
const stream = await client.chat.completions.create({
model: "zai-org/GLM-5.3",
messages: [
{
role: "user",
content: "How many moons are there in the Solar System?",
},
],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content || "");
}cURL — Non-streaming
curl https://api.inceptron.io/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $INCEPTRON_API_KEY" \
-d '{
"model": "zai-org/GLM-5.3",
"messages": [
{
"role": "user",
"content": "How many moons are there in the Solar System?"
}
]
}'cURL — Streaming
curl https://api.inceptron.io/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $INCEPTRON_API_KEY" \
-d '{
"model": "zai-org/GLM-5.3",
"messages": [
{
"role": "user",
"content": "How many moons are there in the Solar System?"
}
],
"stream": true
}'