Prices
Price an image
On this page
POST
/v1/prices/imagesNeedsGenerateMCP toolget_image_price
What this image costs, what the workspace can spend, and whether it can start: what would stop it. Nothing is charged, and linked images aren't fetched.
Authorization
AuthorizationstringrequiredBearerthen the key, with thegeneratescope. A Layo API key, from layo.co/api-keys.
Body
influencerstring<uuid>An influencer with a chosen look, when the image is of them. Leave it out to make it from the prompt and your images alone.promptstringrequiredWhat the image shows. Up to 4,000 characters.Range:
1 <= lengthmodelenum<string>Leave it out for nano-banana. Each one's price is in list_models. nano-banana makes 2 images for its price, to choose from.Available options:
nano-bananaseedream-5.5seedream-5-progpt-image-2.5aspectenum<string>The shape. Leave it out for 3:4.Available options:
3:41:19:1616:9imagesobject[]Images to work from, by link: a product, a place, a person. In ChatGPT, the images the person attached. Up to 8 in all, withimageIds.Range:
items <= 8Show child attributesHide child attributes
download_urlstring<uri>requiredA public https link to a JPEG, PNG or WebP photo. Layo fetches it once, when the request is made; a price read doesn't fetch it.Range:
length <= 4096file_idstringrequiredYour name for this photo. Send the same one when you repeat a request: it's how a repeat knows the photo, even if the link changed.Range:
1 <= length <= 200mime_typestringIgnored: Layo reads the format from the file.Range:
length <= 100file_namestringIgnored.Range:
length <= 255
imageIdsstring<uuid>[]Images you uploaded with create_upload and complete_upload. Up to 8 in all, withimages.Range:
items <= 8
Response
application/jsonOK