Generate an image on Nano Banana Pro, Nano Banana 2.1, GPT Image 2.6 or Ideogram 4.6 from a text prompt, or a set of images from several, optionally guided by reference images.
Use this when the user asks for an image, picture, illustration, character, logo, sticker or background, for the frames of a story or for the scenes of a video. Send `model` only when the user's own message names a model, never by your own choice, and never switch models silently; a finished image names the model that drew it. Never use it for a YouTube thumbnail: `vidiq_generate_thumbnail` designs those.
Ask for several images in ONE call, an entry of `images` each, not one call per image: they are made at once and shown together. To keep a character or product the same across images, pass a picture of it in referenceImages (referenceImageFiles for a ChatGPT upload); if the user has none, make that picture first and pass its imageUrl in referenceImages. To keep it for later requests too, send it as pinReferenceImage: it is kept only where pinning is offered (pinnedReference used); else nothing is kept (not_kept), the call uses it only where it can (the message says if it was left out), and later calls pass it in referenceImages again. Send usePinnedReference: true only when the user asks for their pinned reference, or refers to their character, product or reference once you know one is pinned (a result's pinnedReference was available or used, or the image card shows one); never merely because a series continues.
Runs asynchronously: returns an mcpJobId for each image. An image that ended before the call returns has a status in its entry of `images`: "completed" with its imageUrl, or "failed" with whether its credits were returned. Never poll one that has a status. Poll `vidiq_job_poll` with the id of every image that has none until it is "completed" to get its imageUrl, and include the links in your reply so the user can open or save the files.
Cost per image: at most 22 credit(s) with no model named, at most 28 with one; the result says what was charged. Charged as each starts; an image that fails is refunded automatically. Before starting a set, tell the user the most it can cost.