Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

WorkspaceKeyCreateInput

Generated from the checked-in source. Do not edit this reference by hand.

SDK source. All SDK types.

TypeScript
/** Explicit null opts into no automatic expiration; omission is invalid. */
export type WorkspaceKeyCreateInput = {
name: string;
ttl_seconds: number | null;
allowed_models?: string[];
spending_limit?: Omit<WorkspaceKeySpendingLimitPatch, 'expected_revision'>;
requests_per_minute?: number | null;
tokens_per_minute?: number | null;
max_concurrent_requests?: number | null;
/** Empty array denies all sources; null or omission leaves sources unrestricted. */
allowed_cidrs?: string[] | null;
};