Use CometAPI text model docs by matching your request format to the page that implements it. For OpenAI-compatible chat, start with Chat Completions or Responses; for provider-native formats, use the matching provider page.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.
Choose a text API
| Goal | Start here |
|---|---|
| Send OpenAI-compatible chat messages | Chat Completions |
| Use GPT reasoning, multimodal output, or built-in tools | Responses |
| Use Claude Messages format | Anthropic Messages |
| Use Gemini native content generation | Gemini Generating Content |
List available text models
The public model catalog lets you discover available model IDs before you call a text endpoint:Call a text model
The following example sends an OpenAI-compatible chat request:Common errors
| Error | Fix |
|---|---|
401 | Send Authorization: Bearer $COMETAPI_KEY. |
404 or HTML response | Use https://api.cometapi.com/v1 as the base URL. |
429 | Reduce burst concurrency and retry with backoff. |
| Provider-specific parameter error | Remove optional fields, then add the fields back one at a time. |