Get your first response from InferexAI in under 2 minutes.
Sign up at inferexai.cloudvoice.in/signup, then go to Dashboard → API Keys and create a new key. Copy the full key — it starts with sk-live-.
InferexAI is fully compatible with the official OpenAI SDK. Install it for your language:
pip install openainpm install openaiThe only change from the standard OpenAI SDK is the base_url and your API key.
from openai import OpenAI
client = OpenAI(
api_key="sk-live-your-key-here",
base_url="https://inferexapi.cloudvoice.in/v1",
)
response = client.chat.completions.create(
model="default",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: "sk-live-your-key-here",
baseURL: "https://inferexapi.cloudvoice.in/v1",
});
const response = await client.chat.completions.create({
model: "default",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);curl https://inferexapi.cloudvoice.in/v1/chat/completions \
-H "Authorization: Bearer sk-live-your-key-here" \
-H "Content-Type: application/json" \
-d '{
"model": "default",
"messages": [{"role": "user", "content": "Hello!"}]
}'Add stream=True to receive tokens as they are generated:
from openai import OpenAI
client = OpenAI(
api_key="sk-live-your-key-here",
base_url="https://inferexapi.cloudvoice.in/v1",
)
stream = client.chat.completions.create(
model="default",
messages=[{"role": "user", "content": "Tell me a short story."}],
stream=True,
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)