还没有输出。提交表单以生成内容。
透明定价,无隐藏费用。按需支付。
| 规则与模式 | 渠道 | 积分 | 价格(美元) | 官方/参考价格 | 每日节省 |
|---|---|---|---|---|---|
user-tweets otherTwitter | Starter | 0.01per post | $0.00005 | - | - |
twitter-api-simple 使用完整指南
Integrate the Nano Banana 2 API on ApiPass and build with Google's Gemini 3.1 Flash Image technology. Generate production-ready 4K images at lightning speed, with strong character consistency, accurate text rendering, multi-image fusion, and search-grounded generation. Built for developers who need Flash-level speed with Pro-level visual quality.

Nano Banana 2 is Google's Gemini 3.1 Flash Image model, designed for fast, high-quality image generation and editing. It improves on the original Nano Banana with significantly better visual fidelity, sharper textures, and stronger reasoning capabilities. Built on the Gemini 3.1 Flash architecture, it delivers Pro-level output quality at Flash-level generation speeds. Nano Banana 2 supports text-to-image generation, image editing via text prompts, multi-image composition using up to 14 reference images, and search-grounded generation powered by Google Web Search and Google Image Search. It outputs images up to 4K resolution and supports new ultra-wide aspect ratios such as 4:1, 1:4, 8:1, and 1:8, making it suitable for banners, cinematic layouts, and social media content.
The Nano Banana 2 text-to-image API generates high-quality images from natural language prompts. Powered by Gemini 3.1 Flash Image, it understands complex prompts with strong spatial reasoning and world knowledge, delivering photorealistic and illustrated outputs with consistent detail and composition at 1K, 2K, or 4K resolution.
The Nano Banana 2 image-to-image API enables precise image editing through text prompts. Provide one or more reference images and describe the desired changes — style transfer, background replacement, color adjustment, subject transformation — while preserving identity, composition, and visual coherence across the output.
Nano Banana 2 supports up to 14 reference images as input for complex composition and fusion tasks. Developers can merge photos, blend styles from multiple sources, or build character-consistent visual sequences without losing identity or design coherence across different inputs.
Nano Banana 2 delivers Pro-level visual quality while maintaining Flash-speed generation. Developers get high-detail, production-ready images faster, improving workflow efficiency without sacrificing consistency, realism, or creative control.
Nano Banana 2 supports production-ready 4K output and newly added ultra-wide ratios including 4:1, 1:4, 8:1, and 1:8. This makes it ideal for generating banners, panoramic ads, cinematic layouts, and platform-specific social media content at scale.
Nano Banana 2 supports Google Web Search and Google Image Search grounding, enabling real-time reference awareness during generation. This reduces hallucination and improves accuracy when creating images of specific subjects, current events, trending topics, or real-world references.
Use Nano Banana 2 to create impossible selfies by transforming scenes, adding fantastical elements, or changing environments while keeping the subject's identity consistent. Build engaging, shareable portrait experiences for social and consumer apps at scale.
Combine multiple photos into a single coherent image using the multi-image input capability. Merge group photos, blend visual elements from different sources, and generate natural-looking compositions for creative, social, or commercial content workflows.
Transform real photos into stylized figurine, toy, or avatar visuals while preserving subject identity. Nano Banana 2 enables consistent character styling ideal for collectibles, avatar creators, gaming assets, and branded merchandise platforms.
Compare Nano Banana 2 with other models in the Nano Banana family to choose the best fit for your workflow.
Nano Banana 2 upgrades the original Nano Banana with significantly higher visual fidelity, faster generation, improved text rendering, and support for 4K output powered by Gemini 3.1 Flash Image. The original Nano Banana focuses on lightweight image creation, while Nano Banana 2 delivers sharper details, stronger world knowledge, and production-ready quality suited for modern developer workflows.
Nano Banana 2 is optimized for Flash-speed generation with strong visual quality, making it ideal for high-volume, rapid workflows where speed and cost efficiency matter. Nano Banana Pro targets maximum fidelity and advanced control for projects requiring higher precision or deeper reasoning. On ApiPass, developers can choose based on their speed, quality, and budget requirements — with Nano Banana 2 offering the best balance for most use cases.
Credit consumption is based on output resolution. 1K resolution costs 10 credits per image, 2K costs 15 credits, and 4K costs 22 credits. Default resolution is 1K — ideal for most production use cases.
ApiPass prices Nano Banana 2 at approximately 2/3 of standard Replicate pricing. This makes ApiPass one of the most cost-effective access points for Nano Banana 2 at scale, with no compromises on API reliability or output quality.
New users receive free credits to test Nano Banana 2 before committing to production usage. Try text-to-image, image editing, multi-image fusion, and search grounding — all free, with no time limit on testing.
Use the ApiPass Playground to try Nano Banana 2 at no cost. New users receive free credits to explore text-to-image generation, image editing, and multi-image fusion. Test different resolutions, aspect ratios, and search grounding features before writing a single line of code.
Create your ApiPass API key from the dashboard and review the Nano Banana 2 API documentation. Clear endpoint guides, parameter references, and code examples help you understand request structure, credit billing, and best practices before moving to production.
Send your first Nano Banana 2 request using the text-to-image or image editing workflow. ApiPass provides stable, low-latency endpoints so you can quickly generate results and integrate Nano Banana 2 into your application, pipeline, or content platform.
所有 API 都需要通过 Bearer Token 进行身份验证。
Authorization: Bearer
创建用于获取用户推文的任务
该 API 接受以下结构的 JSON 负载:
1{
2 "model": "string",
3 "callBackUrl": "string (optional)",
4 "channel": "auto",
5 "input": {
6 // Input parameters
7 }
8}model必填string用于生成的模型名称
"twitter/simple/user-tweets"
callBackUrl可选string任务完成通知的回调 URL。如省略,则不会发送回调。
"https://your-domain.com/api/callback"
channel可选string你可以通过 channel 参数指定 APIPASS 中对应的提供方;这些提供方会处理实际的图像和视频生成任务。APIPASS 当前提供三种提供方选项:
channel 参数的默认值为 auto。启用后,APIPASS 会根据实时价格和稳定性指标,在可用提供方之间自动分配任务,以平衡最低成本与可靠性能。除非你有自定义路由需求,否则请保留默认值 auto。
可用选项:
auto
input 对象包含以下参数:
input.user_id必填string用户 ID
为获得最佳效果,请描述主体、风格、光照和构图
44196397
1curl -X POST "https://api.apipass.dev/api/v1/jobs/createTask" \
2 -H "Content-Type: application/json" \
3 -H "Authorization: Bearer YOUR_API_KEY" \
4 -d '{
5 "model": "twitter/simple/user-tweets",
6 "callBackUrl": "https://your-domain.com/api/callback",
7 "input": {
8 "user_id": "44196397"
9 }
10 }'1{
2 "code": 200,
3 "message": "success",
4 "data": {
5 "taskId": "task_12345678"
6 }
7}code状态码,200 表示成功,其他表示失败
message响应消息,失败时为错误描述
data.taskId用于查询任务状态和结果的任务 ID