Generate an image
nano-banana/fastGenerate an image from a written description.
- image
- $0.078
- Nano Banana
- 5 min
Overview
Turns a written description into a generated image, returned inline in the response rather than as a link that expires. The prompt is the whole interface: describe the subject, style, composition, and lighting in one string of up to a thousand characters and the model renders it. Generation is a single synchronous call, so the request stays open until the image is ready; a picture takes appreciably longer than a text completion.
The generated image, returned inline as base64 with its media type and size in bytes.
Input
These go in the input object of the run request.
| Field | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | What to draw, in plain language. |
Requests up to 1 MB, prompt up to 1,000 characters.
Example
A call that works, with your own key.
curl https://gateway.agentsky.dev/v1/run \
-H "authorization: Bearer $AGENTSKY_API_KEY" \
-H "content-type: application/json" \
-d '{"provider":"nano-banana","endpoint":"fast","input":{"prompt":"A paper airplane over a city at dusk, flat illustration"}}'Pricing
$0.078 per image on the default plan. Every run carries its price in the response.
