| name | ideogram-deploy-integration |
| description | Deploy Ideogram integrations to Vercel, Cloud Run, and Docker platforms.
Use when deploying Ideogram-powered applications to production,
configuring platform-specific secrets, or setting up deployment pipelines.
Trigger with phrases like "deploy ideogram", "ideogram Vercel",
"ideogram production deploy", "ideogram Cloud Run", "ideogram Docker".
|
| allowed-tools | Read, Write, Edit, Bash(vercel:*), Bash(gcloud:*), Bash(docker:*) |
| version | 1.10.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","ideogram","deployment"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Ideogram Deploy Integration
Overview
Deploy Ideogram image generation endpoints to Vercel, Cloud Run, or Docker. Key concerns: API key security, function timeouts (generation takes 5-15s), image persistence (URLs expire), and CDN integration for serving generated images.
Prerequisites
IDEOGRAM_API_KEY configured
- Cloud storage for generated images (S3, GCS, or R2)
- Platform CLI installed (vercel, gcloud, or docker)
Instructions
Step 1: API Endpoint (Next.js / Vercel)
import { NextRequest, NextResponse } from "next/server";
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";
const s3 = new S3Client({ region: process.env.AWS_REGION });
export async function POST(req: NextRequest) {
const { prompt, style, aspectRatio } = await req.json();
if (!prompt || prompt.length > 10000) {
return NextResponse.json({ error: "Invalid prompt" }, { status: 400 });
}
const response = await fetch(, {
: ,
: {
: process..!,
: ,
},
: .({
: {
prompt,
: ,
: style || ,
: aspectRatio || ,
: ,
},
}),
});
(!response.) {
err = response.();
.({ : }, { : });
}
result = response.();
image = result.[];
imgResponse = (image.);
buffer = .( imgResponse.());
key = ;
s3.( ({
: process..!,
: key,
: buffer,
: ,
}));
.({
: ,
: image.,
: image.,
: image.,
});
}
maxDuration = ;