한국어
Aihubmix는 개발자를 위해 모든 모델에 대해 10% 할인을 제공하는 APP-Code를 소개합니다.
curl https://aihubmix.com/v1/responses \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-***" \ -H "APP-Code:***" \ -d '{ "model": "gpt-4o-2024-11-20", "input": "Hello! Please say Hello back to me." }'
client = genai.Client( api_key="sk-***", # 🔑 AiHubMix에서 생성한 API 키로 바꾸세요 http_options={ "base_url": "https://api.aihubmix.com/gemini", "headers": { "APP-Code": "***" } }, )
import os import anthropic client = anthropic.Anthropic( api_key="sk-***", # 🔑 AiHubMix에서 생성한 API 키로 바꾸세요 base_url="https://aihubmix.com" ) message = client.messages.create( extra_headers={"APP-Code":"***"}, model="claude-3-7-sonnet-20250219", max_tokens=1024, messages=[ {"role": "user", "content": "안녕하세요, Claude"} ] ) print(message.content)