Claude Fable 5 is now on CometAPI — state-of-the-art performance in coding, agents, and scientific research. Try it now
Quickstart

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.

Free credits on sign-up · No credit card required

from openai import OpenAI

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

Get your API key

Takes 60 seconds. No credit card required to start.

  1. Create an account

    . Free credits included on first sign-up — see pricing for details.

  2. Navigate to API Keys

    From the dashboard sidebar, select API Keys. Click Create new key and give it a name.

  3. Copy your key

    Your key starts with sk-. Store it in your environment variables, never in source code.

Make your first call

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

Node.js, curl & error handling →
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)

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% کم کرنے کے لیے تیار ہیں؟

منٹوں میں مفت شروع کریں۔ مفت ٹرائل کریڈٹس شامل ہیں۔ کریڈٹ کارڈ کی ضرورت نہیں۔