Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt

Use this file to discover all available pages before exploring further.

Make sure you add your s3 details for nano_banana server, so you can receive image generated in your bucket. Images generated without s3 details being added will be delete after 24hours

Request

Make a POST request to below endpoint and pass the required parameters in the request body.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/nano_banana/multi_ref' \

Body

json
{
  "key": "enterprise_api_key",
  "prompt": "Combine these reference images into a single cohesive scene",
  "ref_image": [
    "https://assets.modelslab.ai/generations/a56df09f-4c7f-4172-8390-29a22b17877a.avif",
    "https://assets.modelslab.ai/generations/c64f47e2-2e4e-43eb-b370-4d4d4b8a0113.webp"
  ],
  "samples": 1,
  "seed": 42,
  "negative_prompt": "blurry, low quality, distorted",
  "noise_scale_start": 7.5,
  "noise_scale_end": 7.5,
  "noise_clip_std": 2.5,
  "watermark": "no",
  "temp": "no",
  "base64": "no",
  "track_id": null,
  "webhook": null
}

Body Attributes

key
string
required
Your API Key used for request authorization.
prompt
string
required
Text prompt describing the image you want to generate.
ref_image
array
required
Array of image URLs to use as reference images for multi-reference composition.
negative_prompt
string
Items you don’t want in the image.
width
number
Width of the generated image. Must be between 1024 and 2048 and divisible by 32.
height
number
Height of the generated image. Must be between 1024 and 2048 and divisible by 32.
seed
number
Seed for reproducible generation. 0 triggers a random seed.
samples
number
default:"1"
Number of images to return. Maximum: 4.
noise_scale_start
number
default:"7.5"
Starting noise scale for the generation process.
noise_scale_end
number
default:"7.5"
Ending noise scale for the generation process.
noise_clip_std
number
default:"2.5"
Noise clip standard deviation.
watermark
string
default:"no"
Whether to add a watermark to the generated image. Values: “yes” or “no”.
temp
string
default:"no"
Store in temporary directory. Values: “yes” or “no”.
base64
string
default:"no"
Return image as base64 encoded text. Values: “yes” or “no”.
webhook
string
A URL to receive a POST API call once the image generation is complete.
track_id
string
A unique ID used in the webhook response to identify the request.