Skip to main content

Apertis AI (Stima API)

Overview​

PropertyDetails
DescriptionApertis AI (formerly Stima API) is a unified API platform providing access to 430+ AI models through a single interface, with cost savings of up to 50%.
Provider Route on LiteLLMapertis/
Link to Provider DocApertis AI Website ↗
Base URLhttps://api.stima.tech/v1
Supported Operations/chat/completions

What is Apertis AI?​

Apertis AI is a unified API platform that lets developers:

  • Access 430+ AI Models: All models through a single API
  • Save 50% on Costs: Competitive pricing with significant discounts
  • Unified Billing: Single bill for all model usage
  • Quick Setup: Start with just $2 registration
  • GitHub Integration: Link with your GitHub account

Required Variables​

Environment Variables
os.environ["STIMA_API_KEY"] = ""  # your Apertis AI API key

Get your Apertis AI API key from api.stima.tech.

Usage - LiteLLM Python SDK​

Non-streaming​

Apertis AI Non-streaming Completion
import os
import litellm
from litellm import completion

os.environ["STIMA_API_KEY"] = "" # your Apertis AI API key

messages = [{"content": "What is the capital of France?", "role": "user"}]

# Apertis AI call
response = completion(
model="apertis/model-name", # Replace with actual model name
messages=messages
)

print(response)

Streaming​

Apertis AI Streaming Completion
import os
import litellm
from litellm import completion

os.environ["STIMA_API_KEY"] = "" # your Apertis AI API key

messages = [{"content": "Write a short poem about AI", "role": "user"}]

# Apertis AI call with streaming
response = completion(
model="apertis/model-name", # Replace with actual model name
messages=messages,
stream=True
)

for chunk in response:
print(chunk)

Usage - LiteLLM Proxy Server​

1. Save key in your environment​

export STIMA_API_KEY=""

2. Start the proxy​

model_list:
- model_name: apertis-model
litellm_params:
model: apertis/model-name # Replace with actual model name
api_key: os.environ/STIMA_API_KEY

Supported OpenAI Parameters​

Apertis AI supports all standard OpenAI-compatible parameters:

ParameterTypeDescription
messagesarrayRequired. Array of message objects with 'role' and 'content'
modelstringRequired. Model ID from 430+ available models
streambooleanOptional. Enable streaming responses
temperaturefloatOptional. Sampling temperature
top_pfloatOptional. Nucleus sampling parameter
max_tokensintegerOptional. Maximum tokens to generate
frequency_penaltyfloatOptional. Penalize frequent tokens
presence_penaltyfloatOptional. Penalize tokens based on presence
stopstring/arrayOptional. Stop sequences
toolsarrayOptional. List of available tools/functions
tool_choicestring/objectOptional. Control tool/function calling

Cost Benefits​

Apertis AI offers significant cost advantages:

  • 50% Cost Savings: Save money compared to direct provider costs
  • Unified Billing: Single invoice for all your AI model usage
  • Low Entry: Start with just $2 registration

Model Availability​

With access to 430+ AI models, Apertis AI provides:

  • Multiple providers through one API
  • Latest model releases
  • Various model types (text, image, video)

Additional Resources​