Overzicht van opdrachten
| Command | Description | Auth |
|---|---|---|
chat [MESSAGE] | Verstuur een bericht of start interactieve REPL | API-sleutel |
models | Beschikbare modellen weergeven en doorzoeken | API-sleutel |
balance | Accountsaldo weergeven | API-sleutel (of access token) |
account | Accountprofiel weergeven | Access token |
stats | Gebruiksstatistieken weergeven | Access token |
tokens | Je API-sleutels weergeven en doorzoeken | Access token |
logs | Gebruikslogs bekijken met filters | Access token |
tasks | Async taaklogs weergeven | Access token |
init | Interactieve configuratiewizard | — |
doctor | Diagnostiek en gezondheidscontroles uitvoeren | API-sleutel |
config | CLI-configuratie beheren | — |
repl | Interactieve opdrachtshell starten | API-sleutel |
COMETAPI_ACCESS_TOKEN of de configuratiesleutel access_token. Zie de configuratiegids voor details.
Chat
Verstuur één bericht of start de interactieve REPL met meerdere beurten.| Option | Short | Description |
|---|---|---|
--model | -m | Te gebruiken model (standaard: uit config) |
--system | -s | System prompt |
--temperature | -t | Sampling temperature (0.0–2.0) |
--max-tokens | Max tokens in response | |
--stream/--no-stream | Streaming inschakelen of uitschakelen (standaard: stream) | |
--format | -f | Uitvoerformaat |
--json | Uitvoer als JSON |
Models
Beschikbare modellen weergeven met optionele zoekopdracht en limiet.| Option | Short | Description |
|---|---|---|
--search | -s | Modellen filteren op trefwoord |
--limit | -l | Maximum aantal resultaten |
--format | -f | Uitvoerformaat |
--json | Uitvoer als JSON |
Balance
Je CometAPI-accountsaldo weergeven.| Option | Short | Description |
|---|---|---|
--source | -s | Gegevensbron: account (volledig account) of key (huidige API-sleutel). |
--format | -f | Uitvoerformaat |
--json | Uitvoer als JSON |
Account
Je accountprofiel weergeven. Vereist een access token.| Option | Short | Description |
|---|---|---|
--format | -f | Uitvoerformaat |
--json | Uitvoer als JSON |
Stats
Gebruiksstatistieken voor de huidige maand weergeven. Vereist een access token.| Option | Short | Description |
|---|---|---|
--format | -f | Uitvoerformaat |
--json | Uitvoer als JSON |
Tokens
Je API-sleutels weergeven en doorzoeken. Vereist een access token.| Option | Short | Description |
|---|---|---|
--search | -s | Zoektrefwoord |
--page | -p | Paginanummer |
--page-size | Resultaten per pagina | |
--format | -f | Uitvoerformaat |
--json | Uitvoer als JSON |
Logs
Gebruikslogs bekijken met filters. Vereist een access token.| Option | Short | Description |
|---|---|---|
--model | -m | Filteren op model ID |
--token-name | Filteren op naam van API-sleutel | |
--type | -t | Logtype: consume, topup, error, refund, system, manage |
--start | Startdatum (YYYY-MM-DD) | |
--end | Einddatum (YYYY-MM-DD) | |
--group | -g | Filteren op groep |
--limit | -l | Maximaal aantal items |
--page | -p | Paginanummer |
--page-size | Resultaten per pagina | |
--export | Uitvoer als CSV naar stdout | |
--format | -f | Uitvoerformaat |
--json | Uitvoer als JSON |
Tasks
Async taaklogs weergeven voor platforms zoals Suno, Midjourney, Luma en Kling. Vereist een access token.| Option | Short | Description |
|---|---|---|
--platform | Filteren op platformnaam | |
--status | Filteren op status | |
--limit | -l | Maximaal aantal items |
--format | -f | Uitvoerformaat |
--json | Uitvoer als JSON |
Doctor
Diagnostiek uitvoeren om CLI-configuratie en API-connectiviteit te verifiëren.- Bestaan en leesbaarheid van het configuratiebestand
- Beschikbaarheid en bron van API-sleutel (config, env of ontbrekend)
- Beschikbaarheid van access token
- Netwerkconnectiviteit met het CometAPI-endpoint
- Geldigheid van API-authenticatie
| Option | Short | Description |
|---|---|---|
--format | -f | Uitvoerformaat |
--json | Uitvoer als JSON |
Config
CLI-configuratie beheren die is opgeslagen in~/.config/cometapi/config.toml.
Init
Voer de interactieve configuratiewizard uit om je API-sleutel en access token te configureren.~/.config/cometapi/config.toml.
Repl
Start een volledige interactieve opdrachtshell waarin je elke CLI-opdracht kunt uitvoeren zonder het voorvoegselcometapi.
Uitvoerformaten
Alle data-opdrachten ondersteunen--json of --format:
| Format | Description |
|---|---|
table | Uitgebreide tabel in de terminal (standaard) |
json | JSON-uitvoer |
yaml | YAML-uitvoer |
csv | Komma-gescheiden waarden |
markdown | Markdown-tabel |
Shell completion
Installeer shell completion voor ondersteuning van tab-aanvullen:Exit codes
| Code | Meaning |
|---|---|
0 | Succes |
1 | Algemene fout |
2 | Ongeldige argumenten |
64 | Configuratie ontbreekt |
69 | Service niet beschikbaar |
77 | Authenticatiefout |