Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

891 B
Raw Blame

Shared API contracts

openapi.json records the backend OpenAPI schema. schema.ts is generated by openapi-typescript with the binary-upload, metadata, and enum handling in scripts/typegen.js. Both are checked for drift in CI using this package, independently of the UI packages.

From the repository root with its Python environment activated:

make frontend-api-install
make frontend-openapi
make frontend-typegen
(cd invokeai/frontend/api && pnpm test)

Legacy webv1 keeps its existing services/api/schema import path through a type-only re-export. Webv2 maps backend wire contracts through its owning platform/features adapters. The API package does not add a frontend runtime dependency.

The generator is pinned to its TypeScript 5 peer and existing formatter versions; the active frontend remains on TypeScript 7. See AGENTS.md for validation and ownership rules.