Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Generate images via OpenAI, Google, OpenRouter, DashScope, Jimeng, Seedream, and Replicate APIs with batch support.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/types.ts
1export type Provider =2| "google"3| "openai"4| "openrouter"5| "dashscope"6| "minimax"7| "replicate"8| "jimeng"9| "seedream"10| "azure"11| "zai";12export type Quality = "normal" | "2k";1314export type CliArgs = {15prompt: string | null;16promptFiles: string[];17imagePath: string | null;18provider: Provider | null;19model: string | null;20aspectRatio: string | null;21size: string | null;22quality: Quality | null;23imageSize: string | null;24referenceImages: string[];25n: number;26batchFile: string | null;27jobs: number | null;28json: boolean;29help: boolean;30};3132export type BatchTaskInput = {33id?: string;34prompt?: string | null;35promptFiles?: string[];36image?: string;37provider?: Provider | null;38model?: string | null;39ar?: string | null;40size?: string | null;41quality?: Quality | null;42imageSize?: "1K" | "2K" | "4K" | null;43ref?: string[];44n?: number;45};4647export type BatchFile =48| BatchTaskInput[]49| {50tasks: BatchTaskInput[];51jobs?: number | null;52};5354export type ExtendConfig = {55version: number;56default_provider: Provider | null;57default_quality: Quality | null;58default_aspect_ratio: string | null;59default_image_size: "1K" | "2K" | "4K" | null;60default_model: {61google: string | null;62openai: string | null;63openrouter: string | null;64dashscope: string | null;65minimax: string | null;66replicate: string | null;67jimeng: string | null;68seedream: string | null;69azure: string | null;70zai: string | null;71};72batch?: {73max_workers?: number | null;74provider_limits?: Partial<75Record<76Provider,77{78concurrency?: number | null;79start_interval_ms?: number | null;80}81>82>;83};84};85