Developer documentation
LowCostAi also works without the website: from code through the REST API, from the terminal through the CLI, and from AI assistants such as ChatGPT and Claude through MCP. These pages explain every endpoint, parameter and error, with examples you can copy
- Base URL
- https://low-cost.ai
- OpenAPI file
- /openapi.json The full specification as OpenAPI 3.1, to import into Postman or a code generator
1 Quickstart
Your first call in a few minutes: create a key, check the price, generate a clip, wait for the result and download it, with curl, the CLI or an AI assistant
2 Authentication and API keys
How you identify yourself to the API: API keys, the Authorization header, how it differs from a website sign-in, OAuth for AI assistants and keeping your key safe
3 Credits and prices
What a credit is, how a generation is priced, why an estimate is free, how the max_credits cap works, when you are charged and refunded, and storage
4 Jobs and results
The life of a generation: statuses and transitions, polling, waiting in MCP, the time limit, output files and links, input files, parameters and the analysis report
5 Full API reference
Every LowCostAi REST endpoint: what it does, its parameters, response, errors and a curl example
6 Errors and limits
The error body, every error code with its HTTP status, meaning and what to do, parameter error reasons, rate limits, MCP and OAuth errors
7 CLI: create from the terminal
Install, sign in with a key, the config file, and every CLI command with its arguments, flags, an example and what it prints
8 The MCP server
What MCP is, the address and transport, authenticating with a key or OAuth, each of the nine tools with its input, what it returns and whether it spends, and the recommended flow
9 Connect ChatGPT Claude and Cursor
Step by step: ChatGPT with OAuth sign-in, Claude Code with a key, Claude on the web and desktop as a custom connector, Cursor through mcp.json, and how to disconnect