Model endpointsGoogleNano banana 2 lite reference to image

Generate image with google/nano-banana-2-lite/reference-to-image

Generates an image using the google/nano-banana-2-lite/reference-to-image model.

POST
/api/v1/model/generateImage

Authorization

BearerAuth
AuthorizationBearer <token>

API key is required to authorize requests. Create a key in the Atlas Cloud dashboard.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/model/generateImage" \  -H "Content-Type: application/json" \  -d '{    "model": "google/nano-banana-2-lite/reference-to-image",    "prompt": "string",    "video_clips": [      {        "url": "http://example.com",        "start": 0,        "ends": 0,        "fps": 1      }    ]  }'
{  "code": 0,  "message": "string",  "data": {    "id": "string",    "model": "string",    "outputs": [      "string"    ],    "urls": {      "get": "http://example.com"    },    "has_nsfw_contents": [      true    ],    "status": "string",    "created_at": "2019-08-24T14:15:22Z",    "error": "string",    "error_code": 0,    "executionTime": 0,    "timings": {      "inference": 0    },    "stt_result": {      "text": "string",      "language": "string",      "language_code": "string",      "duration": 0,      "language_probability": 0,      "words": [        {          "text": "string",          "start": 0,          "end": 0,          "type": "string",          "speaker_id": "string"        }      ],      "channels": [        {          "text": "string",          "language": "string",          "language_code": "string",          "duration": 0,          "language_probability": 0,          "words": [            {              "text": "string",              "start": 0,              "end": 0,              "type": "string",              "speaker_id": "string"            }          ],          "index": 0        }      ]    }  }}

Last updated on