Build a Content Production Pipeline with Gemini + Nano Banana + Veo: From Copy to Images to Video
Anyone who creates content knows that what really takes time isn't any single step, but "stringing it all together": choosing a topic, writing copy, finding images, and then editing a video often means moving back and forth between four or five tools.
This article covers one specific task—using three models on Ace Data Cloud (api.acedata.cloud) to take "a piece of content" all the way from text to video. Each step uses a JSON request, with a general-purpose or dedicated Key selected according to application permissions. Each of the three models handles one part:
- Gemini (
/gemini/chat/completions)—writes copy and titles, and expands a one-sentence request into a structured script; - Nano Banana (
/nano-banana/images)—creates illustrations, posters, and covers; - Veo (
/veo/videos)—turns static images into short videos with cinematic camera work.
In the console, prepare a general-purpose Key with the appropriate service permissions for all three calls. When using dedicated applications, use the corresponding service's Key for each one. Before starting, check your available balance and the budget for each of the three steps.
Below, we'll walk through the actual process for "a coffee shop's new autumn menu content," with a curl command you can copy and run and a real generated result at each step.
¶ Step 1: Have Gemini turn the request into a script
Content usually starts with a vague sentence, such as "write something about a coffee shop's new autumn menu." Gemini is good at turning this kind of conversational request into an actionable structure. The API uses an OpenAI-compatible format, so you only need to put the conversation in messages.
curl -X POST 'https://api.acedata.cloud/gemini/chat/completions' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"model": "gemini-3.1-pro-preview",
"max_tokens": 1200,
"messages": [
{"role": "system", "content": "你是一名负责社媒内容的文案。输出要精炼、可直接使用。"},
{"role": "user", "content": "为一家精品咖啡店的秋季枫叶拿铁写:1) 一个不超过15字的标题;2) 一段小红书风格的正文(120字内);3) 一句给配图用的英文绘图提示词;4) 一句给短视频用的英文镜头描述。"}
]
}'
The response has a standard chat.completion structure, with the text in choices[0].message.content. usage shows the actual token consumption (billing is per token):
{
"id": "chatcmpl-2026...",
"model": "gemini-3.1-pro-preview",
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "标题:一杯枫叶,接住整个秋天\n正文:……\n配图提示词:A cozy autumn latte with maple leaf art...\n镜头:Slow top-down push-in on a maple-leaf latte, steam rising..."
},
"finish_reason": "stop"
}
],
"usage": { "prompt_tokens": 96, "completion_tokens": 724, "total_tokens": 820 }
}
Tip: The flash / pro models in the
gemini-3.xseries are reasoning models and consume some reasoning tokens before replying. Setmax_tokensto at least 512; otherwise, the reasoning may use up the budget and result in an empty response.
Gemini is natively multimodal, so if you already have a photo, you can also replace a message's content with an array of content blocks containing both text and image_url (supporting public image URLs or data:image/...;base64,), and have it "write copy based on the image." The two English prompts obtained in this step are precisely the inputs for the image and video steps that follow.
¶ Step 2: Have Nano Banana create an illustration
With the prompt ready, hand the illustration over to Nano Banana (Google's Gemini-family image model). Its strengths are clean visuals and orderly layouts with well-organized negative space, making it well suited to images like social media posters that "need space for a headline." Image generation is a little slower than chat, so adding "async": true to get a task_id first and then polling is recommended.
curl -X POST 'https://api.acedata.cloud/nano-banana/images' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"action": "generate",
"model": "nano-banana",
"async": true,
"prompt": "A clean minimal social media poster for a specialty coffee shop autumn menu. Warm cream background, a cup of latte with leaf art in the center, small hand-drawn maple leaves, elegant layout with empty headline space at top, soft natural light, product photography style."
}'
A task_id is returned immediately. Then poll /nano-banana/tasks until image_url appears in data:
curl -X POST 'https://api.acedata.cloud/nano-banana/tasks' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{"id": "74d3df89-9394-4cc1-bb50-f44e653036b1", "action": "retrieve"}'
This is the actual result produced by the request above (the empty space at the top is just right for a headline):

If you want to "edit an image" rather than "generate" one—for example, change the background of a product photo, unify the style of multiple images, or restore an old photograph—use action: edit and put the images to be edited in the image_urls array.
¶ Step 3: Have Veo turn the image into a shot
With the poster ready, add a dynamic short video a few seconds long to use as an opening or play on a social media loop. Veo understands cinematic camera language: clearly describe the "subject + lighting + camera position + movement + pacing," and it will follow that. Video generation is well suited to asynchronous requests; the time taken depends on the result of the individual task.
curl -X POST 'https://api.acedata.cloud/veo/videos' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"action": "text2video",
"model": "veo31-fast",
"async": true,
"prompt": "Extreme slow-motion macro of a hummingbird hovering beside a dew-covered flower at golden hour, wings frozen mid-beat, shallow depth of field, cinematic."
}'
A task_id is returned. Poll /veo/tasks until state is succeeded to get the video_url. Below is a real generated clip (veo31-fast):
📹 https://cdn.acedata.cloud/5e1f2c52a9.mp4
If you want to "bring to life" the poster from step two, just change action to image2video and pass image_urls to make the video start animating from that image. Veo's available models are veo31-fast, veo31, veo3, and veo3-fast: use the fast series to quickly test directions, and the quality-tier models to produce the final video.
¶ Connecting the three steps
The three interfaces are deliberately designed to have the same shape: they all use the same Bearer Token, all use POST + JSON, and time-consuming tasks such as video and image generation all support async + /tasks polling (or use callback_url to receive callbacks). So you can easily write a script of a few dozen lines to connect them into a pipeline:
- A user or operations team provides a one-sentence request → call Gemini to get
title + body copy + image prompt + shot description; - Send the image prompt to Nano Banana → get
image_url; - Send the shot description (or the image) to Veo → get
video_url; - Store the title, body copy, image, and video in a database, and schedule them for publication directly.
What used to involve moving work between four tools becomes a single chain of calls.
¶ Turning it into income along the way
The pipeline itself has two uses:
- Drive traffic for yourself: Consistently producing image-and-text content + short videos provides the "continuous supply" that content accounts need most. And this content naturally features the tools you use—put a registration link on your profile, and every piece of content you publish becomes an opportunity for exposure. Ace Data Cloud's Revenue Alliance pays commissions on spending by users who register through your link.
- Package it as a service for resale: Add an interface to the script above, and you have a small tool that lets users "enter a topic and generate image-and-text content and videos with one click." Your cost is the platform's usage-based charges, and you can sell it to businesses that need to produce content in bulk.
Either way, underneath it all are just these three interfaces.
¶ Reference links
- Gemini chat documentation: https://platform.acedata.cloud/documents/gemini-chat-completions
- Nano Banana image documentation: https://platform.acedata.cloud/documents/nano-banana-images
- Veo video documentation: https://platform.acedata.cloud/documents/veo-videos
- Get a Token / Check balance: https://platform.acedata.cloud/console/applications
First, verify the copy output, the image success status, and the final status of the video task separately. Record the task_id and output address for each step. If a failure occurs, first check the error cause and existing tasks, then decide whether to retry; there is no need to rerun steps that have already succeeded.
