> ## Documentation Index
> Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CometAPI Documentation

> CometAPI docs: quick start, OpenAI-compatible chat completions, plus image, video, and audio APIs for GPT, Claude, Gemini, Nano Banana, GPT Image, Veo, Kling.

## Access top models at low cost

<CardGroup cols={3}>
  <Card title="Quick Start" icon="bolt" href="/overview/quick-start">
    Get your free API key and make your first call in minutes.
  </Card>

  <Card title="Model List" icon="list" href="/overview/models">
    Browse all 500+ models with live pricing.
  </Card>

  <Card title="API Dashboard" icon="gauge" href="https://www.cometapi.com/console">
    Manage API keys, monitor usage, and track costs.
  </Card>
</CardGroup>

## Explore by model type

<CardGroup cols={2}>
  <Card title="Text & LLM" icon="message" href="/api/text/chat">
    **GPT, Claude, Gemini, Grok** and more — through a single chat completions endpoint. Fully OpenAI-compatible; change one line of config.
  </Card>

  <Card title="Image Generation" icon="image" href="/api/image/openai/images">
    **Nano Banana, GPT Image, Seedream** and more. Control style, lighting, and character consistency across all major providers.
  </Card>

  <Card title="Video Generation" icon="film" href="/api/video/veo3/self-developed/veo3-async-generation">
    **Sora, Veo, Grok, Kling** in one place. Text-to-video, image-to-video, and video extension through a unified API.
  </Card>

  <Card title="Audio & Speech" icon="microphone" href="/api/audio/create-speech">
    **Whisper, TTS, Kling TTS** for transcription, translation, and synthesis. Build voice experiences with the familiar OpenAI audio API format.
  </Card>
</CardGroup>

## Start in minutes

CometAPI uses the OpenAI SDK format — change only `base_url` and `api_key`:

<CodeGroup>
  ```python Python theme={null}
  import openai

  client = openai.OpenAI(
      api_key="<COMETAPI_KEY>",
      base_url="https://api.cometapi.com/v1"
  )

  response = client.chat.completions.create(
      model="<MODEL_ID>",
      messages=[{"role": "user", "content": "Hello!"}]
  )
  print(response.choices[0].message.content)
  ```

  ```typescript TypeScript theme={null}
  import OpenAI from "openai";

  const client = new OpenAI({
    apiKey: "<COMETAPI_KEY>",
    baseURL: "https://api.cometapi.com/v1",
  });

  const response = await client.chat.completions.create({
    model: "<MODEL_ID>",
    messages: [{ role: "user", content: "Hello!" }],
  });
  console.log(response.choices[0].message.content);
  ```

  ```bash cURL theme={null}
  curl https://api.cometapi.com/v1/chat/completions \
    -H "Authorization: Bearer <COMETAPI_KEY>" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "<MODEL_ID>",
      "messages": [{"role": "user", "content": "Hello!"}]
    }'
  ```
</CodeGroup>

<Tip>
  Already using the OpenAI SDK? Only `base_url` and `api_key` need to change — your existing application code works without modification.
</Tip>

## Why CometAPI

<CardGroup cols={3}>
  <Card title="500+ Models, One Key" icon="key">
    GPT, Claude, Gemini, Nano Banana, Kling, Veo, and hundreds more — accessed with a single API key and a unified endpoint.
  </Card>

  <Card title="Pay-as-you-go pricing" icon="tag">
    No monthly fees. Pay only for what you use, with competitive rates across all model categories.
  </Card>

  <Card title="OpenAI Compatible" icon="plug">
    Drop-in replacement for the OpenAI SDK. Point to `https://api.cometapi.com/v1` and keep everything else unchanged.
  </Card>

  <Card title="Usage Analytics" icon="chart-line">
    Real-time dashboards for request counts, token usage, latency, and per-model cost breakdown.
  </Card>

  <Card title="Enterprise Ready" icon="shield">
    Enterprise-grade security, data privacy, and SLA-backed uptime for production workloads.
  </Card>

  <Card title="Human Support" icon="headset">
    1:1 support from real engineers for integration help, model selection, and performance tuning.
  </Card>
</CardGroup>

## More resources

<CardGroup cols={2}>
  <Card title="Important Notes" icon="circle-exclamation" href="/overview/important-guidelines">
    Rate limits, behavioral differences, and key constraints to know before building.
  </Card>

  <Card title="Integration Guides" icon="puzzle-piece" href="/integrations/index">
    Connect CometAPI to Dify, LobeChat, Open WebUI, and 40+ popular AI tools.
  </Card>

  <Card title="Code Examples" icon="code" href="/code-examples/code-example">
    Runnable examples for chat, streaming, embeddings, image generation, and more.
  </Card>

  <Card title="Error Reference" icon="triangle-exclamation" href="/errors/error-codes-handling">
    Error codes, handling strategies, and retry logic for production reliability.
  </Card>
</CardGroup>
