Nano Banana API
Fast text-to-image with accurate in-image text rendering and multi-character consistency.
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-edit",
"prompt": "Create a motivational poster with the text 'Never Give Up' in bold serif, sunset mountains in the background."
}'
import { NanoBananaClient } from "@runapi.ai/nano-banana";
const client = new NanoBananaClient();
const result = await client.textToImage.run({
model: "nano-banana-edit",
prompt: "Create a motivational poster with the text 'Never Give Up' in bold serif, sunset mountains in the background.",
});
<?php
require __DIR__ . "/vendor/autoload.php";
use RunApi\NanoBanana\NanoBananaClient;
$client = new NanoBananaClient();
$result = $client->textToImage->run([
'model' => 'nano-banana-edit',
'prompt' => 'Create a motivational poster with the text \'Never Give Up\' in bold serif, sunset mountains in the background.',
]);
require "runapi/nano_banana"
client = RunApi::NanoBanana::Client.new
result = client.text_to_image.run(
model: "nano-banana-edit",
prompt: "Create a motivational poster with the text 'Never Give Up' in bold serif, sunset mountains in the background."
)
npx skills add runapi-ai/nano-banana -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
# Codex
codex plugin install runapi-mcp@agents
# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
Nano Banana is Google's fast image generation model optimized for accurate text rendering within images and consistent multi-character scenes. It delivers rapid results without sacrificing prompt fidelity.
- عدة إصدارات لمستويات مختلفة من السرعة / الجودة
- يتضمن model skill التوثيق والـschemas وملاحظات الإعداد
- يعمل مع workflows موجهة لتطوير التطبيقات
- لا يتم احتساب رسوم على عمليات التوليد الفاشلة
قارن جميع إصدارات API
ثبّت skill Nano Banana لتطوير التطبيقات
حمّل توثيق النموذج والـschemas وملاحظات الأسعار وخطوات الإعداد إلى مساحة عمل الكود.
# Install the model skill for app development workflows
npx skills add runapi-ai/nano-banana -g
Install the Nano Banana skill for this app: 1. Add runapi-ai/nano-banana with the skills installer. 2. Load SKILL.md in this workspace. 3. Use its docs, schemas, pricing notes, and setup steps when adding model features. 4. Confirm the install path when done.
من model skill إلى أول نتيجة في أربع خطوات
اختر النموذج
اختر النموذج والإصدار المناسبين لنوع المخرجات ومستوى الجودة وزمن الاستجابة المستهدف.
الإعداد
اضبط مفتاح RunAPI وثبّت model skill في مساحة عمل الكود.
التنفيذ
استخدم تعليمات المهارة لإضافة ميزة النموذج داخل تطبيقك.
الاستلام
استعلم عبر task ID أو استخدم البث عند دعمه أو عالج webhook callback.
ما هي Nano Banana API؟
Nano Banana is Google's image model embedded in Gemini, purpose-built for fast generation with in-image text accuracy. Through RunAPI, all Nano Banana variants share a single key.
لماذا تستخدم Nano Banana API عبر RunAPI
مصادقة واحدة لكل مزود
مفتاح RunAPI واحد يفتح الوصول إلى الكتالوج بالكامل. لا حسابات منفصلة، ولا تدوير مفاتيح لكل تكامل.
تسعير وفوترة موحّدان
تسعير لكل استدعاء بالدولار الأمريكي، ويُفوتر شهريًا. لا تُحتسب التوليدات الفاشلة.
Skill مع schemas
تأتي الـschemas المعرّفة وملاحظات الإعداد داخل model skill حتى يبدأ التنفيذ من العقد الصحيح.
أسئلة شائعة
How accurate is in-image text rendering?
Nano Banana is optimized for text accuracy — it reliably renders short to medium-length text like headlines, labels, and captions within generated images.
What is multi-character consistency?
Nano Banana maintains consistent character appearance across multiple subjects in the same image — faces, clothing, and proportions stay coherent.
How fast is generation?
The base variant is fast. The pro variant takes 10–20 seconds but outputs at 4K resolution.
What is the difference between Nano Banana and Nano Banana Pro?
Pro is built on Gemini 3 Pro and outputs at 4K with the best text rendering. The standard variant is optimized for faster, cheaper generation at 1K.
Can I use Nano Banana for editing existing images?
Yes — Nano Banana 2 Lite and the edit variant accept source images and apply prompt-driven modifications while preserving the original composition.
أي نسخة ينبغي أن أبدأ بها؟
اختر أرخص نسخة تفي بمعيار الجودة لديك. يبدأ معظم الفرق بالنسخة السريعة ثم ينتقلون إلى pro للإنتاج.
هل توجد خطة مجانية؟
تحصل الحسابات الجديدة على أول طلبات مجانية على كل نموذج. بعد ذلك، الدفع حسب كل طلب.
هل تدعمون البث المباشر للنتائج؟
حيث يتوفر البث المباشر، يوفّر RunAPI البث من البداية إلى النهاية.
كيف يتم احتساب الرسوم عند الفشل؟
لا يتم تحصيل رسوم على عمليات التوليد الفاشلة.
هل يتم تخزين المخرجات مؤقتًا؟
يتم حفظ المخرجات المولدة ويمكن استرجاعها بواسطة task ID. لا يتم تخزين المدخلات مؤقتًا.
هل يمكنني الاستخدام تجاريًا؟
نعم — يشمل كل إصدار الاستخدام التجاري ما لم يقيّده ترخيص النموذج صراحةً، ويُشار إلى ذلك في صفحة الإصدار.
ماذا عن حدود المعدل؟
تتدرج حدود المعدل لكل مفتاح وفق فئة الاستخدام. راجع صفحة الأسعار للاطلاع على الحدود الحالية.
أين يمكنني الإبلاغ عن المشاكل؟
افتح issue في مستودع GitHub العام أو راسل الدعم عبر البريد الإلكتروني.