32 Tests

Cehpoint AI API

Zero-friction chat completions. No auth. One model. Unlimited possibilities.

No API key Streaming Public

Endpoint

POST https://ai-api.cehpoint.co.in/v1/chat/completions

Send requests to this URL. No authentication headers needed. Just Content-Type: application/json and your messages.

32
Tests Passed
7
Use Cases
4
Languages
0
Auth Required

Model

ModelDescription
cehpoint-aiThe only model — smart, fast, general-purpose. Use it for everything.
Tip: Always set "model": "cehpoint-ai" in your requests. Other models will return a 400 error.

Request Parameters

ParamTypeDefaultRequiredDescription
modelstringYescehpoint-ai
messagesarrayYesArray of {role, content} objects
temperaturenumber1.0No0–2. Lower = more precise
max_tokensnumber4096NoMax response length
streamboolfalseNoSSE streaming

The only two things you must send are model and messages. Everything else is optional.

Message Roles

RolePurpose
systemSets assistant behavior and constraints
userYour questions or instructions
assistantPrevious AI replies for multi-turn context

Use system to control personality/tone. Use assistant for follow-up conversations.

Response Format

{
  // standard chat completion response
  "model": "cehpoint-ai",
  "provider": "ai-api.cehpoint.co.in",
  "choices": [{
    "message": { "content": "Hello!" },
    "finish_reason": "stop"
  }],
  "usage": { "total_tokens": 52 }
}

Standard JSON response structure. The provider field is set to our domain. model is always cehpoint-ai.

Error Codes

CodeCause
400Missing or unknown model — make sure model is cehpoint-ai
502Upstream provider unavailable — try again in a few seconds

Limits

LimitValue
Max tokens per response4096
Rate limitNone enforced (please use responsibly)
AuthenticationNone required

Use Cases

Every example below was tested live against the API. Pick a category, copy the code, and run it.

General
Engineering
Support
Business
Content
Data
Healthcare
1
General Knowledge — Quantum Computing
curl
Tested
Ask the AI to explain quantum computing in simple terms. This is the most basic kind of prompt — just a direct question.
curl https://ai-api.cehpoint.co.in/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "cehpoint-ai",
    "messages": [{"role": "user", "content": "Explain quantum computing in 3 sentences."}]
  }'
import requests

resp = requests.post(
    "https://ai-api.cehpoint.co.in/v1/chat/completions",
    json={
        "model": "cehpoint-ai",
        "messages": [{"role": "user", "content": "Explain quantum computing in 3 sentences."}]
    },
)
print(resp.json()["choices"][0]["message"]["content"])
const resp = await fetch("https://ai-api.cehpoint.co.in/v1/chat/completions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    model: "cehpoint-ai",
    messages: [{ role: "user", content: "Explain quantum computing in 3 sentences." }],
  }),
});
const data = await resp.json();
console.log(data.choices[0].message.content);
from openai import OpenAI

client = OpenAI(
    base_url="https://ai-api.cehpoint.co.in/v1",
    api_key="x",
)

resp = client.chat.completions.create(
    model="cehpoint-ai",
    messages=[{"role": "user", "content": "Explain quantum computing in 3 sentences."}],
)
print(resp.choices[0].message.content)
2
Python — Banking Class
curl
Tested
Generate a working Python class with deposit, withdraw, and balance check methods — including error handling. Great for code generation testing.
curl https://ai-api.cehpoint.co.in/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "cehpoint-ai",
    "messages": [{"role": "user", "content": "Write a Python class for a banking account with deposit, withdraw, and balance check. Include error handling."}]
  }'
import requests

resp = requests.post(
    "https://ai-api.cehpoint.co.in/v1/chat/completions",
    json={
        "model": "cehpoint-ai",
        "messages": [{"role": "user", "content": "Write a Python class for a banking account with deposit, withdraw, and balance check. Include error handling."}]
    },
)
print(resp.json()["choices"][0]["message"]["content"])
const resp = await fetch("https://ai-api.cehpoint.co.in/v1/chat/completions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    model: "cehpoint-ai",
    messages: [{ role: "user", content: "Write a Python class for a banking account with deposit, withdraw, and balance check. Include error handling." }],
  }),
});
const data = await resp.json();
console.log(data.choices[0].message.content);
from openai import OpenAI

client = OpenAI(
    base_url="https://ai-api.cehpoint.co.in/v1",
    api_key="x",
)

resp = client.chat.completions.create(
    model="cehpoint-ai",
    messages=[{"role": "user", "content": "Write a Python class for a banking account with deposit, withdraw, and balance check. Include error handling."}],
)
print(resp.choices[0].message.content)
3
Order Issue Support
curl
Tested
Use a system prompt to set the AI's role as a friendly support agent. Then ask about a late order. Great template for customer service chatbots.
curl https://ai-api.cehpoint.co.in/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "cehpoint-ai",
    "messages": [
      {"role": "system", "content": "You are a friendly support agent."},
      {"role": "user", "content": "My order has not arrived yet."}
    ]
  }'
import requests

resp = requests.post(
    "https://ai-api.cehpoint.co.in/v1/chat/completions",
    json={
        "model": "cehpoint-ai",
        "messages": [
            {"role": "system", "content": "You are a friendly support agent."},
            {"role": "user", "content": "My order has not arrived yet."}
        ]
    },
)
print(resp.json()["choices"][0]["message"]["content"])
const resp = await fetch("https://ai-api.cehpoint.co.in/v1/chat/completions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    model: "cehpoint-ai",
    messages: [
      { role: "system", content: "You are a friendly support agent." },
      { role: "user", content: "My order has not arrived yet." }
    ],
  }),
});
const data = await resp.json();
console.log(data.choices[0].message.content);
from openai import OpenAI

client = OpenAI(
    base_url="https://ai-api.cehpoint.co.in/v1",
    api_key="x",
)

resp = client.chat.completions.create(
    model="cehpoint-ai",
    messages=[
        {"role": "system", "content": "You are a friendly support agent."},
        {"role": "user", "content": "My order has not arrived yet."}
    ],
)
print(resp.choices[0].message.content)
4
Business Email
curl
Tested
Generate a professional email apologizing for a delayed delivery. Great for automating customer communications — just plug in your details.
curl https://ai-api.cehpoint.co.in/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "cehpoint-ai",
    "messages": [{"role": "user", "content": "Write a professional email apologizing for a delayed delivery and offering a 10% discount."}]
  }'
import requests

resp = requests.post(
    "https://ai-api.cehpoint.co.in/v1/chat/completions",
    json={
        "model": "cehpoint-ai",
        "messages": [{"role": "user", "content": "Write a professional email apologizing for a delayed delivery and offering a 10% discount."}]
    },
)
print(resp.json()["choices"][0]["message"]["content"])
const resp = await fetch("https://ai-api.cehpoint.co.in/v1/chat/completions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    model: "cehpoint-ai",
    messages: [{ role: "user", content: "Write a professional email apologizing for a delayed delivery and offering a 10% discount." }],
  }),
});
const data = await resp.json();
console.log(data.choices[0].message.content);
from openai import OpenAI

client = OpenAI(
    base_url="https://ai-api.cehpoint.co.in/v1",
    api_key="x",
)

resp = client.chat.completions.create(
    model="cehpoint-ai",
    messages=[{"role": "user", "content": "Write a professional email apologizing for a delayed delivery and offering a 10% discount."}],
)
print(resp.choices[0].message.content)
5
Product Description
curl
Tested
Generate a compelling product description for a premium leather wallet. Great for e-commerce content automation.
curl https://ai-api.cehpoint.co.in/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "cehpoint-ai",
    "messages": [{"role": "user", "content": "Write a 50-word product description for a premium leather wallet."}]
  }'
import requests

resp = requests.post(
    "https://ai-api.cehpoint.co.in/v1/chat/completions",
    json={
        "model": "cehpoint-ai",
        "messages": [{"role": "user", "content": "Write a 50-word product description for a premium leather wallet."}]
    },
)
print(resp.json()["choices"][0]["message"]["content"])
const resp = await fetch("https://ai-api.cehpoint.co.in/v1/chat/completions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    model: "cehpoint-ai",
    messages: [{ role: "user", content: "Write a 50-word product description for a premium leather wallet." }],
  }),
});
const data = await resp.json();
console.log(data.choices[0].message.content);
from openai import OpenAI

client = OpenAI(
    base_url="https://ai-api.cehpoint.co.in/v1",
    api_key="x",
)

resp = client.chat.completions.create(
    model="cehpoint-ai",
    messages=[{"role": "user", "content": "Write a 50-word product description for a premium leather wallet."}],
)
print(resp.choices[0].message.content)
6
Data Extraction — JSON
curl
Tested
Ask the AI to extract structured data from unstructured text and return it as JSON. Perfect for parsing invoices, receipts, or forms.
curl https://ai-api.cehpoint.co.in/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "cehpoint-ai",
    "messages": [{"role": "user", "content": "Extract names, dates, amounts as JSON: John paid $150 on March 5th, Sarah paid $75 on March 12th."}]
  }'
import requests

resp = requests.post(
    "https://ai-api.cehpoint.co.in/v1/chat/completions",
    json={
        "model": "cehpoint-ai",
        "messages": [{"role": "user", "content": "Extract names, dates, amounts as JSON: John paid $150 on March 5th, Sarah paid $75 on March 12th."}]
    },
)
print(resp.json()["choices"][0]["message"]["content"])
const resp = await fetch("https://ai-api.cehpoint.co.in/v1/chat/completions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    model: "cehpoint-ai",
    messages: [{ role: "user", content: "Extract names, dates, amounts as JSON: John paid $150 on March 5th, Sarah paid $75 on March 12th." }],
  }),
});
const data = await resp.json();
console.log(data.choices[0].message.content);
from openai import OpenAI

client = OpenAI(
    base_url="https://ai-api.cehpoint.co.in/v1",
    api_key="x",
)

resp = client.chat.completions.create(
    model="cehpoint-ai",
    messages=[{"role": "user", "content": "Extract names, dates, amounts as JSON: John paid $150 on March 5th, Sarah paid $75 on March 12th."}],
)
print(resp.choices[0].message.content)
7
AI in Healthcare
curl
Tested
Ask the AI to list AI applications in healthcare diagnostics. Great for research, presentations, or educational content.
curl https://ai-api.cehpoint.co.in/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "cehpoint-ai",
    "messages": [{"role": "user", "content": "List 3 AI applications in healthcare diagnostics."}]
  }'
import requests

resp = requests.post(
    "https://ai-api.cehpoint.co.in/v1/chat/completions",
    json={
        "model": "cehpoint-ai",
        "messages": [{"role": "user", "content": "List 3 AI applications in healthcare diagnostics."}]
    },
)
print(resp.json()["choices"][0]["message"]["content"])
const resp = await fetch("https://ai-api.cehpoint.co.in/v1/chat/completions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    model: "cehpoint-ai",
    messages: [{ role: "user", content: "List 3 AI applications in healthcare diagnostics." }],
  }),
});
const data = await resp.json();
console.log(data.choices[0].message.content);
from openai import OpenAI

client = OpenAI(
    base_url="https://ai-api.cehpoint.co.in/v1",
    api_key="x",
)

resp = client.chat.completions.create(
    model="cehpoint-ai",
    messages=[{"role": "user", "content": "List 3 AI applications in healthcare diagnostics."}],
)
print(resp.choices[0].message.content)

50 Complete Examples

cURL

curl https://ai-api.cehpoint.co.in/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "cehpoint-ai",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Python

import requests

resp = requests.post(
    "https://ai-api.cehpoint.co.in/v1/chat/completions",
    json={"model": "cehpoint-ai", "messages": [{"role": "user", "content": "Hello!"}]},
)
print(resp.json()["choices"][0]["message"]["content"])

JavaScript (Fetch)

const resp = await fetch("https://ai-api.cehpoint.co.in/v1/chat/completions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    model: "cehpoint-ai",
    messages: [{ role: "user", content: "Hello!" }],
  }),
});
const data = await resp.json();
console.log(data.choices[0].message.content);

OpenAI Python SDK

from openai import OpenAI

client = OpenAI(
    base_url="https://ai-api.cehpoint.co.in/v1",
    api_key="x",
)

resp = client.chat.completions.create(
    model="cehpoint-ai",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
Tip Use the OpenAI Python SDK — just set base_url to our endpoint and anything as api_key. No token needed.
Copied to clipboard!