Intern S2 Preview API

CN Shanghai AI Lab
Playground에서 사용해보기 → API 키 받기

Intern S2 Preview는 Shanghai AI Lab의 추론 모델입니다. 단계별 추론을 제공합니다. MeshTok 통합 API를 통해 사용 가능합니다.

추론

가격 (공식 목록, 100만 토큰 기준)

입력
$0.40/M
출력
$1.20/M

사양

컨텍스트 창128K 토큰 입력 모달리티텍스트 스트리밍 APIOpenAI 호환

Intern S2 Preview 사용 방법

OpenAI를 바로 대체할 수 있습니다. base_url과 model만 변경하세요.

# Python - pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://meshtok.com/v1",
    api_key="sk-your-MeshTok-key",
)

resp = client.chat.completions.create(
    model="intern/intern-s2-preview",
    messages=[{"role":"user","content":"Hello!"}],
)
print(resp.choices[0].message.content)
# cURL
curl https://meshtok.com/v1/chat/completions \
  -H "Authorization: Bearer sk-your-MeshTok-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"intern/intern-s2-preview","messages":[{"role":"user","content":"Hello!"}]}'

관련 모델

고려해볼 만한 다른 모델입니다.