Getting Started

DEVELOPER QUICKSTART

Get started with CallMissed APIs in under a minute using just a few lines of code

1

Create an API Key

Visit the CallMissed Dashboard and create a new API key. Keep this key secure β€” you'll need it to authenticate your requests.

2

Set Up Your Environment

Export your API key as an environment variable:

export CALLMISSED_API_KEY="your_api_key_here"
3

Install the SDK

Choose your preferred language and install our SDK:

pip install openai
4

Make Your First API Call

from openai import OpenAI

client = OpenAI(
    api_key="cm_your_api_key_here",
    base_url="https://api.callmissed.com/v1"
)

response = client.chat.completions.create(
    model="sarvam-30b",
    messages=[{"role": "user", "content": "Hello in Hindi"}]
)

print(response.choices[0].message.content)

Quick Tips:

  • Store your API key securely and never commit it to version control
  • Use environment variables or a secure configuration manager

CallMissed APIs

Chat Completion

response = client.chat.completions.create(
    model="sarvam-30b",
    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="")

Speech to Text

with open("audio.wav", "rb") as f:
    response = client.audio.transcriptions.create(
        model="saaras:v3",
        file=f
    )
print(response.text)

Text to Speech

response = client.audio.speech.create(
    model="bulbul:v3",
    voice="meera",
    input="Namaste, kaise hain aap?"
)

response.stream_to_file("speech.mp3")

Next Steps

  1. Learn More about our Models β€” Explore CallMissed's available models from Sarvam AI, OpenAI, Anthropic, Google, and more.
  2. Explore API Capabilities β€” Discover our comprehensive API for chat, speech, and bot management.
  3. View Examples β€” Browse our Cookbooks for step-by-step tutorials.
  4. Community β€” Join our community for support, discussions, and updates.
Was this page helpful?