This guide helps host applications adopt aigc-provider-runtime-kit without copying private implementation details from another product.
npm install aigc-provider-runtime-kitFor local development from the repository:
npm ci
npm run build
npm testimport {
defaultParameterSchemaForModel,
uiMetadataFromSchema
} from "aigc-provider-runtime-kit/core";
const schema = defaultParameterSchemaForModel("image", "gpt-image-2", "openai");
const ui = uiMetadataFromSchema(schema, "image");Use this when your host app needs a stable model configuration layer that can drive forms, nodes, or admin configuration screens.
import { buildRunningHubExecutionDescriptor } from "aigc-provider-runtime-kit/runninghub";
const descriptor = buildRunningHubExecutionDescriptor({
kind: "workflow",
workflowId: "workflow-id",
taskCapability: "video",
fields: []
});The descriptor is intentionally host-app friendly: it describes what to submit, how to poll, and how outputs should be interpreted, but it does not own your database, queue, or permission model.
- Store provider and key records in your own secure database.
- Use this package to normalize model schemas and RunningHub execution contracts.
- Keep credentials on the server side only.
- Wrap provider calls with your own audit, quota, and permission checks.
- Add integration tests around the host app boundary.
- It does not store credentials.
- It does not provide an admin UI.
- It does not run a hosted worker service.
- It does not enforce end-user permissions.
- It does not include private application schemas.