Autopilot32 Tests

Cehpoint AI API

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

No API key Streaming Public
Read the full API Documentation →Quick start

India-built, OpenAI-compatible, and made to grow with you. Start free with no key, scale to the Commercial API for production, and request any capability your team needs — we ship customer-requested features every month.

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-aiSmart, fast, general-purpose — the default. Use it for everything.
cehpoint-ai-multilingualTuned for strong multilingual work, including Indian languages (Hindi, Bengali & more).
Tip: Set "model": "cehpoint-ai" for general use, or "cehpoint-ai-multilingual" for multilingual tasks. Any other value falls back to cehpoint-ai — you are never charged for a model you didn't get.

Agent Tools (Function Calling)

Cehpoint AI is not just a text model — it is an agent. When your prompt needs a live fact, a calculation, a lookup or a page read, it automatically calls the right built-in tool and answers using the real result. This works on both the free and commercial endpoints — no setup, no extra parameters. Just ask naturally; the model decides when to use a tool.

ToolWhat it does
web_searchSearches the live web for current facts, news, prices and definitions — anything that may have changed since training.
read_urlFetches and reads the main text of any public web page or PDF by URL.
calculateEvaluates a math expression — arithmetic, %, powers, sqrt, trigonometry, logs.
current_datetimeReturns the current date & time in both UTC and IST.
finance_quoteLatest stock / market / crypto quote and trend for a company or ticker.
dns_lookupDNS records (A/AAAA/MX/NS/TXT/CNAME) for a public domain.
whois_lookupDomain registration / WHOIS details for a public domain.
http_checkChecks if a website is up and returns its HTTP status and key headers.
cve_lookupAuthoritative details (description, CVSS, fix status) for a CVE id like CVE-2021-44228.
lookup_ifsc IndiaLooks up an Indian bank branch by IFSC code.
lookup_pincode IndiaLooks up Indian post offices / area for a 6-digit PIN code.
validate_gstin IndiaValidates an Indian GSTIN (format + checksum) and decodes its state and embedded PAN.
generate_qr IndiaGenerates a QR-code image for text, a URL or a UPI string — ready to scan.
How to use: nothing special — send a normal chat request. For example, “What’s the branch for IFSC SBIN0001234, and generate a UPI QR for ₹500 to that account?” triggers lookup_ifsc then generate_qr automatically, and the reply includes the resolved data. Tools can be chained in a single answer.

Vision — Send Images

Cehpoint AI accepts images alongside text, so it can read documents, extract data from screenshots, describe photos, or analyse diagrams. Use the standard OpenAI-compatible multimodal message format — an image_url content part (a public URL or a data: base64 URI):

curl https://ai.cehpoint.co.in/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "cehpoint-ai",
    "messages": [{ "role": "user", "content": [
      { "type": "text", "text": "Extract the invoice number and total from this image." },
      { "type": "image_url", "image_url": { "url": "https://example.com/invoice.jpg" } }
    ]}]
  }'

Commercial keys use the same format on the /capi/v1/chat/completions endpoint. Both hosted images (public URLs) and inline base64 data: URIs are supported.

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

Text-to-Speech

Convert text to natural speech. Premium accounts get Sarvam AI's Bulbul HD neural voice; free and anonymous requests use the standard voice. Returns binary audio (audio/wav or audio/mpeg).

MethodEndpointPurpose
POST/v1/ttsConvert text to speech — returns binary audio.
GET/v1/tts/voicesList voices, languages and whether HD is active for you.
FieldTypeNotes
textstringRequired. The text to speak.
langstring2-letter language code (e.g. en, hi). Default en.
genderstringmale or female. Default male.
curl https://ai-api.cehpoint.co.in/v1/tts \
  -H "Content-Type: application/json" \
  -d '{"text":"Hello from Cehpoint AI","lang":"en","gender":"female"}' \
  --output speech.wav

Image Generation

Generate an image from a text prompt. The call is synchronous — images typically return in under ten seconds — and the response is OpenAI-compatible, so an existing SDK can be pointed at Cehpoint without code changes. Assets are served from Cehpoint infrastructure.

MethodEndpointPurpose
POST/capi/v1/images/generationsCreate an image from a prompt.
curl https://ai-api.cehpoint.co.in/capi/v1/images/generations \
  -H "Authorization: Bearer $CEHPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a red ceramic teacup on a wooden table, soft daylight, product photo",
    "aspect_ratio": "16:9",
    "size": "2K"
  }'
{
  "created": 1786326431,
  "size": "2K",
  "aspect_ratio": "16:9",
  "data": [
    { "url": "https://ai-api.cehpoint.co.in/v1/media/file/a152d9049d0ce8262999.png" }
  ]
}
FieldTypeNotes
promptstringRequired. Up to 1200 characters.
aspect_ratiostringOne of 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9. Default 1:1.
sizestringDetail tier: 1K, 2K, 3K or 4K. Default 2K. An OpenAI-style pixel size such as 1024x1024 is also accepted and is mapped to the nearest tier and ratio.

An unrecognised value is replaced with the default rather than rejected, so a request never fails because of a shape you cannot use. The response always states the size and aspect_ratio actually used — read those rather than assuming your request was applied verbatim.

Notes. The returned URL is permanent for the retention window configured on your plan and may be fetched without authentication, so it can be embedded directly. Prompts are limited to 1200 characters.

Video Generation

Generate a short video from a text prompt. Video takes appreciably longer than an image, so the request returns immediately with a job id and you poll for completion. The job is durable — it survives client disconnects, so you can submit now and collect the result later.

MethodEndpointPurpose
POST/capi/v1/videosSubmit a video generation job.
GET/capi/v1/videos/{id}Poll job status and collect the finished video.
curl https://ai-api.cehpoint.co.in/capi/v1/videos \
  -H "Authorization: Bearer $CEHPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a slow cinematic pan over calm ocean water at sunrise",
    "aspect_ratio": "16:9",
    "resolution": "1080p",
    "duration_seconds": 10
  }'
{ "id": "ddafad9dc549f51264da", "object": "video", "status": "queued", "created": 1786326487 }
FieldTypeNotes
promptstringRequired. Up to 1200 characters.
aspect_ratiostringOne of 16:9, 9:16, 1:1, 4:3, 3:4. Default 16:9. Note that 21:9, 3:2 and 2:3 are image-only.
resolutionstring480p, 720p or 1080p. Default 720p.
duration_secondsnumber5 or 10 seconds (the two supported lengths; any other value is snapped to the nearest). Default 5. Frames are produced at 24 fps, so the delivered length is rounded to the nearest whole frame — the job reports the true duration.

Frame sizes are standard for each combination — for example 1080p at 16:9 is 1920×1080, and at 9:16 is 1080×1920. The completed job reports resolution, aspect_ratio, duration_seconds and the exact pixel size delivered. Longer or higher-resolution videos take proportionally longer to render.

Poll until status is completed:

curl https://ai-api.cehpoint.co.in/capi/v1/videos/ddafad9dc549f51264da \
  -H "Authorization: Bearer $CEHPOINT_API_KEY"
{
  "id": "ddafad9dc549f51264da",
  "object": "video",
  "status": "completed",
  "url": "https://ai-api.cehpoint.co.in/v1/media/file/ddafad9dc549f51264da.mp4",
  "error": null
}
StatusMeaning
queuedAccepted and waiting for a worker.
runningBeing generated.
completedFinished — url is populated.
failedCould not be produced; see error. Failed jobs are not billed.

Polling guidance. Poll no more often than every five seconds. Most clips complete in one to two minutes; treat anything beyond twenty minutes as failed and resubmit.

Supported Shapes and Sizes

Rather than hard-coding the lists above, you can read them at run time. This endpoint is the same source our own interface uses, so it is always current.

MethodEndpointPurpose
GET/capi/v1/media/optionsList every supported aspect ratio, size tier, resolution and duration range.
curl https://ai-api.cehpoint.co.in/capi/v1/media/options \
  -H "Authorization: Bearer $CEHPOINT_API_KEY"
{
  "ok": true,
  "options": {
    "image": {
      "aspect_ratios": ["1:1","4:3","3:4","16:9","9:16","3:2","2:3","21:9"],
      "sizes": ["1K","2K","3K","4K"],
      "defaults": { "size": "2K", "aspect_ratio": "1:1" }
    },
    "video": {
      "aspect_ratios": ["16:9","9:16","1:1","4:3","3:4"],
      "resolutions": ["480p","720p","1080p"],
      "duration_options": [5, 10],
      "duration_seconds": { "options": [5, 10], "default": 5, "fps": 24 },
      "defaults": { "resolution": "720p", "aspect_ratio": "16:9", "duration_seconds": 5 }
    }
  }
}

Cehpoint Reader

Cehpoint Reader turns any web page or document URL into clean, readable text for LLM and RAG pipelines — it fetches the page, strips scripts, navigation and ads, and returns the main content, title and links as JSON. It runs on its own base URL and does not require a Cehpoint AI key.

MethodEndpointNotes
BASEhttps://r.cehpoint.co.inStandalone service base URL.
POST/Body { "url": "https://…" }. Anonymous is free (rate-limited per IP).

For a higher daily allowance, create a Reader key (it begins with cehr_) from your dashboard and send it as Authorization: Bearer cehr_your_key.

curl https://r.cehpoint.co.in/ \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'

Cehpoint Code

Cehpoint Code is an AI engineer that turns a plain-language request into a finished, downloadable deliverable — a website or tool, a business document or model, a data analysis, or a report. Each build runs privately in an isolated sandbox and returns the produced files. Use it in the browser at /code, or via the API below with your Cehpoint AI key (cehp_) or a Commercial key (cehk_ — dedicated quota).

MethodEndpointNotes
POST/v1/code/runBody { "prompt": "...", "type": "web|doc|data|report|auto", "files": [{"name","content_b64"}] }. Returns { id, status }.
GET/v1/code/:idPoll a build → { status, deliverables:[{name,size}], summary }. status: queued / running / done / timeout / failed.
GET/v1/code/:id/file?name=...Download a produced deliverable.
GET/v1/code/quotaRemaining builds today for your key's plan.

The 5-minute policy. Every build has a strict five-minute limit so the queue stays fast. If a build needs longer it returns status: "timeout" — re-submit to run it again as a fresh build (which counts as your next build). Free keys get a daily allowance; Commercial keys get a dedicated, much higher quota.

curl https://ai.cehpoint.co.in/v1/code/run \
  -H "Authorization: Bearer cehp_your_key" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "Build a landing page for a bakery", "type": "web"}'

Team & Invites

A commercial licence owner can bring their team onto the same account. Invites are managed from the dashboard and via these session-authenticated endpoints.

MethodEndpointWhoPurpose
GET/v1/me/teamowner / memberList roster and pending invites.
POST/v1/me/team/inviteownerCreate a shareable invite link (raw token returned once).
GET/v1/invite/:tokenpublicDescribe an invite (org + role) before sign-in.
POST/v1/invite/:token/acceptinviteeJoin the org as a member after signing in.

Roles. Owner — full control of keys, grounding and team. Member — can use the API and manage the knowledge base, but not keys, grounding or team. Raw invite tokens are never stored (only a hash) and never logged.

Commercial API

The public endpoint above is free and key-less for builders and prototypes. When you ship to production — with commercial-use rights, higher throughput, dedicated support, GST invoicing and your own licence key — move to the Commercial API. It's the same OpenAI-compatible interface and the same cehpoint-ai model, just an authenticated, metered base URL. See plans & get a key →

Built to be extended — not a fixed wrapper. Commercial & enterprise customers can request any capability they need: custom models and tools, new endpoints, on-prem or private deployment, SSO, and data-residency controls. Requested features ship monthly, and proven capabilities roll out to everyone every quarter. Tell us your workload →

Authentication

Unlike the free endpoint, every commercial request is authenticated with your licence key as a Bearer token:

HEADERAuthorization: Bearer cehk_your_licence_key

Keys begin with cehk_ and are issued from your dashboard once a licence is active. Treat a key like a password — keep it server-side. Requests without a valid key return 401 Unauthorized.

Endpoint & migration

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

Same request and response shape as the free API — migrating is two lines: point base_url at /capi/v1 and add your key. Any OpenAI SDK or existing OpenAI integration works unchanged.

# Drop-in: same OpenAI SDK, two lines changed
from openai import OpenAI

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

resp = client.chat.completions.create(
  model="cehpoint-ai",
  messages=[{"role": "user", "content": "Hello"}],
)
# set stream=True for SSE, exactly like the free endpoint
EndpointMethodPurpose
/capi/v1/chat/completionsPOSTChat completions — streaming & non-streaming
/capi/v1/modelsGETList models available to your licence
Identical parameters: messages, temperature, max_tokens, stream and the system/user/assistant roles all behave exactly as documented above for the free API.

Plans & limits

Pricing is usage-sized — tell us your expected volume and our AI sizes a plan and quotes you in minutes. Every commercial plan includes commercial-use rights, dedicated support and a GST invoice for India.

PlanBest forRequests / monthRights & extras
Free (public)Prototypes, side-projects, learningFair-use · no keyNon-commercial
Monthly commercialGrowing products in productionCustom — sized to youCommercial-use · support · GST
Lifetime licenceOne-time purchase / on-premCustomPerpetual commercial-use
EnterpriseScale, SLAs, custom featuresCustom + SLAEverything + roadmap input
Usage & billing: commercial requests are metered by request and token count, visible live in your dashboard. Rate limits are set per plan, not globally. Get an AI-sized quote →

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!