This repo holds the documentation for the Venice API. The doc-site itself is built using Mintlify, providing a clean, modern interface for exploring our API capabilities.
Our documentation is organized into several key sections:
- Docs - Overview, getting started, and the capability guides for text, image, video, audio, search, and integrations
- Models - The model catalog, by modality
- Learn - Complete, runnable walkthroughs and projects built on the API
- API Reference - Endpoint documentation generated from
swagger.yaml - Changelog - Latest updates and API changes
- Status Page - Live service status
- Node.js installed on your system
!! Make sure you're on the node version specified in the
.nvmrcfile.
- Clone this repository and navigate to the project directory:
git clone git@github.com:veniceai/api-docs.git
cd api-docs- Install dependencies:
yarn- Start the development server:
yarn devThe documentation will be available at http://localhost:3000.
The pages under models/ render an interactive explorer from data/model-hub.bundle.json and data/model-catalog.json. mintlify dev does not serve .json files, so when the docs run on localhost the explorer first loads them from a data server on port 3333. Start one from the repo root in a second terminal:
npx http-server . -p 3333 --cors -c-1Without it, the pages keep showing their first screen, which isn't interactive.
Mintlify renders custom components only in the browser, so each page's first screen is its view rendered at build time into snippets/model-hub/<page>.mdx (scripts/model-hub-prerender.js). The explorer replaces it once it loads. After editing src/model-hub.jsx, rebuild the bundle and those snippets, and commit the results:
node scripts/build-model-hub.js
node scripts/build-model-catalog.js --offline
node scripts/generate-models-static.jsThe data files are refreshed hourly by .github/workflows/sync-static-models.yml; the scripts it runs live in scripts/.
changelog.mdx is generated by scripts/generate-changelog.js, so don't edit it by hand. It has two sources:
- Model changes come from
data/model-changes.json. The hourly sync adds to it wheneverGET /modelsadds, deprecates, removes or reprices a model. - API changes come from
data/api-changelog/<YYYY-MM>.md, one file per month, added in a pull request early the next month. Each line is one change, written as- **Title Case Name** — What a caller now observes.Include only what a caller with an API key can observe on/api/v1: endpoints, parameters, response fields, errors, limits, rate limits and billing behavior. Leave out app-only changes, internal routing, and the model launches, deprecations, removals and price changes the model log already records. Thevenice-api-changelogskill drafts a month with these rules.
After adding a month, run node scripts/generate-changelog.js and commit both files.
- Edit
.mdxfiles to modify the documentation content - Update
docs.jsonto configure site navigation and metadata - Place images and assets in the corresponding directories
- Reference the OpenAPI specification in
swagger.yamlfor API details
Translations: Edit English source pages only. Mintlify regenerates locale copies after merge to main. Do not hand-edit every locale in the same PR unless you are intentionally updating all translations. When adding a new nav page, add the English path in docs.json only — not {locale}/... paths until translations exist.
- 🎨 Clean, modern UI with customizable theming
- 📱 Responsive design for all devices
- 🔍 Full-text search capabilities
- 🚦 Interactive API request builder
- 📊 OpenAPI specification integration - Swagger
- 🌙 Dark/light mode support
Changes are automatically deployed when pushed to the main branch. Just:
- Push changes to your default branch
- Your documentation will automatically update at your deployment URL
Pull requests get a Mintlify preview deployment, linked from the checks on the PR, so a reviewer can read the rendered pages without pulling the branch. Mintlify also runs a link-rot check and a spellcheck on each PR. Testing locally with yarn dev is still the fastest loop while you are writing.
If you encounter any issues:
- 404 Errors: Ensure you're running the dev server in a directory containing
docs.json - Development Server Issues: Run
yarn installto reinstall dependencies - Content Not Updating: Clear your browser cache or try a hard refresh
- Create a new branch for your changes
- Make your updates to the documentation
- Test locally using
yarn dev - Submit a pull request with a clear description of your changes
Built with Mintlify