| name | ideogram-multi-env-setup |
| description | Configure Ideogram across development, staging, and production environments.
Use when setting up multi-environment deployments, configuring per-environment keys,
or implementing environment-specific Ideogram configurations.
Trigger with phrases like "ideogram environments", "ideogram staging",
"ideogram dev prod", "ideogram environment setup", "ideogram multi-env".
|
| allowed-tools | Read, Write, Edit, Bash(aws:*), Bash(gcloud:*), Grep |
| version | 1.10.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","ideogram","deployment","environments"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Ideogram Multi-Environment Setup
Overview
Configure Ideogram API access across development, staging, and production with isolated API keys, environment-specific model/speed settings, and proper secret management. Each environment gets its own key and configuration to prevent cross-environment issues.
Environment Strategy
| Environment | API Key Source | Model | Speed | Cache | Billing |
|---|
| Development | .env.local | V_2_TURBO | TURBO | Disabled | Minimal top-up |
| Staging | CI/CD secrets | V_2 | DEFAULT | 5 min TTL | Moderate |
| Production | Secret manager | V_2 or V3 | DEFAULT | 10 min TTL | Full auto top-up |
Instructions
Step 1: Configuration Structure
type Environment = "development" | "staging" | "production";
interface IdeogramConfig {
apiKey: string;
defaultModel: string;
renderingSpeed: string;
timeout: number;
maxRetries: number;
concurrency: number;
cache: { enabled: boolean; ttlSeconds: number };
debug: boolean;
}
const configs: Record<, <, >> = {
: {
: ,
: ,
: ,
: ,
: ,
: { : , : },
: ,
},
: {
: ,
: ,
: ,
: ,
: ,
: { : , : },
: ,
},
: {
: ,
: ,
: ,
: ,
: ,
: { : , : },
: ,
},
};
(): {
env = ();
apiKey = (env);
(!apiKey) {
();
}
{ ...configs[env], apiKey };
}
(): {
env = process.. || ;
(env === ) ;
(env === || process.. === ) ;
;
}
(): {
envVar = {
: ,
: ,
: ,
}[env];
process.[envVar] || process.. || ;
}