Generate and Translate Article
3 StepsFull article generation with images and Vietnamese translation
Workflow Flow
1
Generate EN Article
ON
📝 Article Gen
model:
gemini-2.0-flash-exp
use_memory:
✓ Yes
2
Generate Images
ON
🖼️ Image Gen
model:
flash
aspect_ratio:
16:9
resolution:
1K
3
Translate to Vietnamese
ON
🌐 Translation
model:
gemini-2.5-flash
target_languages:
['vi']
Step Details
1
Generate EN Article
Article Generation
ENABLED
Generates English article content using Google Gemini AI with memory-aware context for consistent writing style.
Configuration
Model
gemini-2.0-flash-exp
Use_Memory
✓ true
2
Generate Images
Image Generation
ENABLED
Scans article content for image prompts (e.g., [Image: ...]) and generates actual images, replacing prompts with image URLs.
Configuration
Model
flash
Aspect_Ratio
16:9
Resolution
1K
3
Translate to Vietnamese
Translation
ENABLED
Translates the article content to specified languages while preserving markdown structure and image URLs. Expert multi-linguistic rewriting, not word-by-word translation.
Configuration
Model
gemini-2.5-flash
Target_Languages
['vi']
API Usage Example
// Generate article using this workflow
fetch('/plans/{plan_id}/generate/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': getCookie('csrftoken')
},
body: JSON.stringify({
workflow_name: '',
custom_config: {
// Optional: override step configurations
image_generation: {
resolution: '2K', // Change to 2K resolution
aspect_ratio: '16:9'
}
}
})
});