API Reference
Models
Every model has an InferexAI name, such as medha. Use a model ID returned by /v1/models in the model field of all API requests. Your code only ever refers to InferexAI names.
How model names work
Managed by InferexAI
InferexAI runs every model behind its own name. /v1/models lists the models open to your account, and the rate card shows the price of each.
Stable across changes
When InferexAI improves how a model is served, the name stays the same, so your application code does not change.
Resilient
If a request to a model fails on our side, InferexAI retries it before answering, so a brief interruption does not reach your code.
Type-aware
Each model has a type — llm, stt, tts, embedding or intent. Use the matching endpoint (chat completions, audio/transcriptions, audio/speech, embeddings, or understand).
What a model accepts
Every model lists input_modalities and output_modalities (text, audio, image, video; an embedding model outputs embedding). A chat request with an image part is only accepted by a model that lists image; otherwise it returns 400 modality_not_supported and is not charged.
Capability fields per type
llm carries reasoning; stt carries languages and streaming (whether it supports the realtime WebSocket); tts carries voices; intent carries languages. Read these before building a UI instead of hardcoding them.
List models
GET/v1/models
Returns the list of model IDs active on your account. Always call this endpoint to get the current list — model names are set by your administrator and may change.
curl https://api.inferexai.in/v1/models \
-H "Authorization: Bearer sk-live-your-key-here"
{
"object": "list",
"data": [
{
"id": "my-chat-model",
"object": "model",
"owned_by": "inferexai",
"type": "llm",
"reasoning": false,
"input_modalities": ["text"],
"output_modalities": ["text"]
},
{
"id": "shruti",
"object": "model",
"owned_by": "inferexai",
"type": "stt",
"languages": ["hi-IN", "en-IN", "ta-IN"],
"streaming": true
},
{
"id": "tts-voice",
"object": "model",
"owned_by": "inferexai",
"type": "tts",
"voices": ["ananya", "aryan", "manisha"]
},
{
"id": "inferex-embed",
"object": "model",
"owned_by": "inferexai",
"type": "embedding"
},
{
"id": "inferex-intent-demo",
"object": "model",
"owned_by": "inferexai",
"type": "intent",
"languages": ["en-IN", "hi-IN", "mr-IN"]
}
]
}
Using models in code
from inferexai import InferexAI
client = InferexAI(api_key="sk-live-your-key-here")
# List available models
models = client.models.list()
for m in models.data:
print(m.id)
# Use a specific model
response = client.chat.completions.create(
model="my-chat-model", # use any ID from the list above
messages=[{"role": "user", "content": "Hello!"}],
)
Model catalog in the portal
Log in to the Customer Portal → Models to see a visual catalog of all available models with descriptions and type badges. From there you can click Open in Playground to test any model interactively before writing code.
LLMLarge Language Models. Use with /v1/chat/completions.
STTSpeech-to-Text. Use with /v1/audio/transcriptions, async jobs, or the realtime WebSocket.
TTSText-to-Speech. Use with /v1/audio/speech.
EMBEDDINGText embeddings. Use with /v1/embeddings, for search and knowledge.
INTENTDeterministic intent classification. Use with /v1/understand.
See the Intent Engine reference for how classification, entities, and the decision engine fit together.
New models appear in
/v1/models as soon as they are open to your account, with no change to your code. To ask for a model,
contact us.