google/gemini-nano-banana-2.1
Google's image generation and editing model, generally available since October 6, 2026, and the successor to Nano Banana 2, with better image quality, prompt adherence, text rendering, and character consistency across turns. On OneHop it uses the OpenAI-compatible /v1/images/generations and /v1/images/edits endpoints: pick the 1K, 2K, or 4K tier with size (or pass "2K" / "4K" directly), set the frame with aspect_ratio (14 ratios, including 1:8 and 8:1), and send up to 10 reference images for editing. Each request returns one image, billed per image regardless of prompt length; the image comes back synchronously as base64.
Use either ID to call this model via the API.
google/gemini-nano-banana-2.1You can use these names directly in the request model field.
Replace the ONEHOP_KEY placeholder with your API key. Create one →
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
response = client.images.generate(
model="google/gemini-nano-banana-2.1",
prompt="A red panda coding under the moonlight",
n=1,
)
print(response.data[0].url)