Developer Quickstart
Get started with CallMissed APIs in under a minute using just a few lines of code
Note
CallMissed APIs are OpenAI-compatible — use the official OpenAI SDK and change only the base URL and API key prefix (cm_).
from openai import OpenAI
client = OpenAI(api_key="cm_your_api_key", base_url="https://api.callmissed.com/v1")
response = client.chat.completions.create(
model="sarvam-105b",
messages=[{"role": "user", "content": "Hello in Hindi"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ apiKey: "cm_your_api_key", baseURL: "https://api.callmissed.com/v1" });
const response = await client.chat.completions.create({
model: "sarvam-105b",
messages: [{ role: "user", content: "Hello in Hindi" }],
});
console.log(response.choices[0].message.content);curl -X POST https://api.callmissed.com/v1/chat/completions \
-H "Authorization: Bearer cm_your_api_key" \
-H "Content-Type: application/json" \
-d '{"model":"sarvam-105b","messages":[{"role":"user","content":"Hello in Hindi"}]}'Get started
Create an API Key
In the CallMissed console, open Developer → API keys and create a new key. It is shown once, so copy it now. Keep this key secure — you'll need it to authenticate your requests.
Set up your environment
Export your API key as an environment variable:
export CALLMISSED_API_KEY="your_api_key_here"$env:CALLMISSED_API_KEY = "your_api_key_here"set CALLMISSED_API_KEY=your_api_key_hereInstall the SDK
Choose your preferred language and install the OpenAI SDK:
pip install openainpm install openaigo get github.com/openai/openai-gocomposer require openai-php/clientgem install ruby-openai# Add to pom.xml or build.gradle — use OkHttp or any HTTP clientMake your first API call
Use the same pattern as the hero example above — pass your cm_ API key and pick any free-tier model.
Tip
Store your API key in environment variables. Never commit keys to version control.
Ready to explore? See Chat Completion for streaming and tool calling, or browse the Model Catalog.
CallMissed APIs
Chat Completion
response = client.chat.completions.create(
model="sarvam-105b",
messages=[{"role": "user", "content": "Explain quantum computing"}],
stream=True
)
for chunk in response:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")const stream = await client.chat.completions.create({
model: "sarvam-105b",
messages: [{ role: "user", content: "Explain quantum computing" }],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content || "");
}curl -X POST https://api.callmissed.com/v1/chat/completions \
-H "Authorization: Bearer cm_your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "sarvam-105b",
"messages": [{"role": "user", "content": "Explain quantum computing"}],
"stream": true
}'Speech to Text
with open("audio.wav", "rb") as f:
response = client.audio.transcriptions.create(
model="saaras:v4",
file=f
)
print(response.text)import fs from "fs";
const response = await client.audio.transcriptions.create({
model: "saaras:v4",
file: fs.createReadStream("audio.wav"),
});
console.log(response.text);curl -X POST https://api.callmissed.com/v1/audio/transcriptions \
-H "Authorization: Bearer cm_your_key" \
-F [email protected] \
-F model=saaras:v4Text to Speech
response = client.audio.speech.create(
model="bulbul:v3",
voice="shubh",
input="Namaste, kaise hain aap?"
)
response.stream_to_file("speech.mp3")const response = await client.audio.speech.create({
model: "bulbul:v3",
voice: "shubh",
input: "Namaste, kaise hain aap?",
});
const buffer = Buffer.from(await response.arrayBuffer());
fs.writeFileSync("speech.mp3", buffer);curl -X POST https://api.callmissed.com/v1/audio/speech \
-H "Authorization: Bearer cm_your_key" \
-H "Content-Type: application/json" \
-d '{"model": "bulbul:v3", "input": "Namaste, kaise hain aap?", "voice": "shubh"}' \
--output speech.mp3