gemini-to-seedream-migrationlisted
Install: claude install-skill Durden7/ai-skills
# Gemini to SeeDream v4.5 Migration
Migrate AI image generation from Google Gemini 2.5 Flash Image to BytePlus SeeDream v4.5 with this proven, production-ready workflow.
## Quick Start
**Migration Overview:**
- Replace Gemini SDK with BytePlus REST API
- Update environment variables and validation
- Migrate API routes to new client
- Test and validate changes
- Update documentation
**Benefits:**
- Higher resolution support (up to 4K vs 2K)
- Better control over image dimensions and generation
- Built-in prompt optimization for quality improvement
- Potentially lower costs (check BytePlus pricing)
- Broader format support (adds BMP, TIFF, GIF)
**Prerequisites:**
- Existing project using Google Gemini 2.5 Flash Image
- BytePlus API key (get from https://console.byteplus.com/ark/region:ark+ap-southeast-1/apiKey)
- TypeScript/JavaScript project with image generation endpoints
**Time Estimate:** 3-4 hours for complete migration
---
## Core Migration Workflow
### Phase 1: Environment Setup
Replace Gemini environment variables with BytePlus configuration.
#### Step 1.1: Update .env.example
Find and remove Gemini configuration:
```bash
# REMOVE
GEMINI_API_KEY=your_google_ai_api_key_here
```
Add BytePlus configuration:
```bash
# ADD
BYTEPLUS_API_KEY=your_byteplus_api_key_here
```
#### Step 1.2: Update Environment Validator
If you have environment validation (recommended), update it to check for `BYTEPLUS_API_KEY` instead of `GEMINI_API_KEY`.
Example changes:
```typescr