Apertis AI
Apertis AI (Stima API)
Apertis AI는 430개 이상의 AI 모델을 하나의 API로 제공하는 통합 플랫폼이에요. LiteLLM을 쓰면 Apertis AI의 모든 모델을 표준 인터페이스로 쉽게 호출할 수 있어요.
출처: 문서
본문
Apertis AI란?
- 430+ AI 모델 접근: 모든 모델을 단일 API를 통해 사용해요
- 비용 50% 절감: 경쟁력 있는 가격과 큰 할인 혜택을 제공해요
- 통합 결제: 모든 모델 사용량을 한 장의 청구서로 관리해요
- 빠른 설정: 단 $2 등록으로 바로 시작할 수 있어요
- GitHub 통합: GitHub 계정과 연동할 수 있어요
필요한 변수
os.environ["STIMA_API_KEY"] = "" # your Apertis AI API key
사용법 - LiteLLM Python SDK
비스트리밍 (Non-streaming)
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)
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)
사용법 - LiteLLM Proxy Server
1. 환경에 키 저장하기
export STIMA_API_KEY=""
2. 프록시 시작하기
model_list:
- model_name: apertis-model
litellm_params:
model: apertis/model-name # Replace with actual model name
api_key: os.environ/STIMA_API_KEY
지원되는 OpenAI 파라미터
LiteLLM이 지원하는 표준 OpenAI 파라미터를 그대로 사용할 수 있어요.
비용 혜택
- 50% 비용 절감: 직접 공급업체를 쓰는 것보다 비용을 아낄 수 있어요
- 통합 결제: 모든 AI 모델 사용량을 한 장의 청구서로 처리해요
- 낮은 진입 장벽: 단 $2 등록으로 시작할 수 있어요
모델 가용성
- 하나의 API로 여러 공급업체를 사용해요
- 최신 모델 릴리스를 지원해요
- 다양한 모델 유형(텍스트, 이미지, 비디오)을 다뤄요
추가 리소스
Apertis AI 공식 문서와 기업용(AI Enterprise) 옵션도 확인해 보세요.