Skip to main content

Samaira Docs

Let's discover Samaira APIs in less than 2 minutes.

Getting Started

  1. Create a Account or Login to Samaira.
  2. Purchase the subscription.
  3. Create an API Key and give it a name.

What you'll need

  • OpenAI Compatible Endpoint or Library

Models List Endpoint

To Get the List of Models.

curl --location 'https://inference.samaira.ai/openai/models'

Response

{
"data": [
{
"acl": [
"free",
"founders",
"professional"
],
"can_do": [
"text_gen"
],
"context_length": 131072,
"created": 1747677981,
"description": "QWQ 32B Model",
"details": {
"families": [
"qwen2"
],
"family": "qwen2"
},
"id": "qwq-32b",
"is_reasoning": true,
"max_completion_tokens": 8196,
"model": "qwq-32b",
"name": "qwq-32b",
"object": "model",
"pricing": {
"completion": "0.00000019",
"image": "0",
"prompt": "0.00000014",
"request": "0"
},
"quantization": "bf16"
}
]
}

Integrate on Python OpenAI Package

pip install openai

from openai import OpenAI
client = OpenAI(api_key="YOUR_KEY",
base_url="https://inference.samaira.ai/openai")

Integrate on NodeJS OpenAI Package

npm i openai

import OpenAI from "openai";
const openai = new OpenAI({
apiKey: 'YOUR_KEY',
baseURL: 'https://inference.samaira.ai/openai',
});

OpenAI Compatible Endpoint

BASE URL: https://inference.samaira.ai/openai

API KEY: YOUR_KEY