Make an AI image
create_imageMake AI images from the user's prompt with a chosen MakeViral Create model, from text or from the user's photos (edit a photo, put a person in a new scene, combine photos). It spends credits from the user's MakeViral account (a failed image gives them back) and usually returns the finished image link in this call. Before calling: 1) pick the model (get_model gives its sizes and prices), 2) tell the user the price in credits, 3) when photos are used, ask the user to confirm the people in them are them or agreed, and that no one is a child. Photos: pass the files the user attached in this chat as photos, or public image links as photoUrls. Never use photos of a public figure or of someone who did not agree. Calling again with the same input within 10 minutes returns the first result; pass a new requestId to make more.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many images (each one is charged). Default 1. | |
| model | Yes | Image model id (list_models). nano-banana-2 is a good default. | |
| aspect | No | Shape. Default 9:16 (vertical, for TikTok and Reels). | |
| photos | No | The user's photos attached in the chat (references to edit or follow) | |
| prompt | Yes | What the image shows, in the user's words, made clear and specific | |
| photoUrls | No | Public https links to photos (JPEG, PNG or WebP) | |
| requestId | No | Optional id (8-64 letters, digits, - or _). The same id never charges twice. | |
| resolution | No | Size. Default: the model's smallest (1K). | |
| photosConsent | No | Needed with photos: true only after the user confirmed everyone in them is the user or agreed, and no one is a child | |
| transparentBackground | No | GPT Image only, text only: a transparent background |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| creations | Yes |