Menu

1 / 2

Nano-Banana Image API: Complete English Tutorial

DEV Community·Owen·6 months ago
#QzIFPnI8
#using#api#ai#imagegeneration#banana
Reading 0:00
15s threshold

Nano-Banana Image API: Complete English Tutorial

TL;DR: Nano-Banana is an image generation model accessible through ofox.ai's unified API at https://api.ofox.ai/v1/images/generations . It uses OpenAI-compatible endpoints, supports sizes from 256×256 to 1792×1024, and returns base64-encoded images. This guide covers authentication, parameters, code examples in Python/JavaScript/cURL, and production tips.

What Is Nano-Banana?

Nano-Banana is an image generation model provided by Banana and available through ofox.ai's model catalog. Unlike text-based LLMs, it takes natural language prompts and outputs PNG/JPEG/WebP images.

Key characteristics:

Provider: Banana

Access: OpenAI-compatible API via ofox.ai

Endpoint: POST https://api.ofox.ai/v1/images/generations

Output formats: PNG, JPEG, WebP

Supported sizes: 256×256, 512×512, 1024×1024, 1536×1024, 1024×1536, 1792×1024, 1024×1792, or auto

Nano-Banana sits alongside other image models on ofox.ai like Flux 2 Max, Seedream 4.5, and Qwen-Image-Turbo.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.