クイックスタート

One Key for text, image, and video models

Two lines of code. No new SDK to learn. Swap your base URL and API key — models across 20+ providers work instantly.

サインアップ時に無料クレジット·クレジットカードは必要ありません

from openai import OpenAI

client = OpenAI(
  api_key="sk-openai-...",
  api_key="YOUR_COMET_KEY",
  base_url="https://api.cometapi.com/v1",
)

API キーを取得

60秒かかります。開始にクレジットカードは必要ありません。

  1. アカウントを作成

    ます。初回登録時に無料クレジットが含まれています。詳細は料金設定をご覧ください。

  2. APIキーに移動

    ダッシュボードのサイドバーから、[APIキー]を選択します。[新しいキーを作成]をクリックし、名前を付けます。

  3. あなたの API キーをコピーします。

    あなたの鍵はsk -で始まります。環境変数に保存します。ソースコードには保存しません。

Make your first call

Same OpenAI Python SDK — swap your key and base URL, then call models from multiple providers.

Node.js、CURL、エラー処理 →
from openai import OpenAI

client = OpenAI(
  api_key="sk-openai-...",
  api_key="YOUR_COMET_KEY",
  base_url="https://api.cometapi.com/v1",
)

response = client.chat.completions.create(
    model="gpt-5.5",
    messages=[
        {"role": "user", "content": "Hello, world!"}
    ]
)

print(response.choices[0].message.content)

モデルを選ぶ

テキスト、画像、ビデオ、オーディオにわたる500以上のモデル。まずはこちらからいくつかご紹介します。

500以上のすべてのモデルを閲覧 →

Common questions

, navigate to the API Keys section in your dashboard, and click Create new key. Your key starts with sk-. Store it in your environment variables, never in source code.

The base URL is https://api.cometapi.com/v1. It's a drop-in replacement for api.openai.com. No other configuration changes are required when switching from the OpenAI SDK.

Yes. CometAPI is fully compatible with the OpenAI Python and Node.js SDKs. Pass your CometAPI key as api_key and set base_url="https://api.cometapi.com/v1". No additional packages required.

Yes — new accounts receive free credits on sign-up. See the pricing page for the current amount and usage limits.

AI開発コストを20%削減する準備はできていますか?

数分で無料スタート。無料トライアルクレジット付き。クレジットカード不要。