| 코멧 가격 (USD / M Tokens) | 공식 가격 (USD / M Tokens) | 할인 |
|---|---|---|
입력:$0.12/M 출력:$0.48/M | 입력:$0.15/M 출력:$0.6/M | -20% |
from openai import OpenAI
import os
# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com/v1"
client = OpenAI(base_url=BASE_URL, api_key=COMETAPI_KEY)
response = client.responses.create(
model="gpt-4o-mini", input="Tell me a three sentence bedtime story about a unicorn."
)
print(response)| version |
|---|
| gpt-4o-mini-transcribe |
| gpt-4o-mini-tts |
| gpt-4o-mini |
| gpt-4o-mini-2024-07-18 |
| gpt-4o-mini-audio-preview |
| gpt-4o-mini-realtime-preview-2024-12-17 |
| gpt-4o-mini-search-preview-2025-03-11 |
| gpt-4o-mini-audio-preview-2024-12-17 |
| gpt-4o-mini-realtime-preview |
| gpt-4o-mini-search-preview |