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| "zai"7| "minimax"8| "replicate"9| "jimeng"10| "seedream"11| "azure"12| "codex-cli"13| "agnes";14export type Quality = "normal" | "2k";15export type OpenAIImageApiDialect = "openai-native" | "ratio-metadata";16export type ResponseFormat = "file" | "url";1718export type CliArgs = {19prompt: string | null;20promptFiles: string[];21imagePath: string | null;22provider: Provider | null;23model: string | null;24aspectRatio: string | null;25aspectRatioSource?: "cli" | "task" | "config" | null;26size: string | null;27quality: Quality | null;28imageSize: string | null;29imageSizeSource?: "cli" | "task" | "config" | null;30imageApiDialect: OpenAIImageApiDialect | null;31responseFormat: ResponseFormat | null;32referenceImages: string[];33n: number;34batchFile: string | null;35jobs: number | null;36json: boolean;37help: boolean;38};3940export type BatchTaskInput = {41id?: string;42prompt?: string | null;43promptFiles?: string[];44image?: string;45provider?: Provider | null;46model?: string | null;47ar?: string | null;48size?: string | null;49quality?: Quality | null;50imageSize?: "1K" | "2K" | "4K" | null;51imageApiDialect?: OpenAIImageApiDialect | null;52responseFormat?: ResponseFormat | null;53ref?: string[];54n?: number;55};5657export type BatchFile =58| BatchTaskInput[]59| {60tasks: BatchTaskInput[];61jobs?: number | null;62};6364export type ExtendConfig = {65version: number;66default_provider: Provider | null;67default_quality: Quality | null;68default_aspect_ratio: string | null;69default_image_size: "1K" | "2K" | "4K" | null;70default_image_api_dialect: OpenAIImageApiDialect | null;71default_model: {72google: string | null;73openai: string | null;74openrouter: string | null;75dashscope: string | null;76zai: string | null;77minimax: string | null;78replicate: string | null;79jimeng: string | null;80seedream: string | null;81azure: string | null;82"codex-cli": string | null;83agnes: string | null;84};85batch?: {86max_workers?: number | null;87provider_limits?: Partial<88Record<89Provider,90{91concurrency?: number | null;92start_interval_ms?: number | null;93}94>95>;96};97};98