Open Layo
Browse

Prices

Price an image

On this page
POST/v1/prices/images

NeedsGenerateNo chargeMCP 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

  • Authorizationstringrequired

    Bearer then the key, with the generate scope. 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.
  • promptstringrequired

    What the image shows. Up to 4,000 characters.

    Range: 1 <= length

  • modelenum<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.5

  • aspectenum<string>

    The shape. Leave it out for 3:4.

    Available options: 3:41:19:1616:9

  • imagesobject[]

    Images to work from, by link: a product, a place, a person. In ChatGPT, the images the person attached. Up to 8 in all, with imageIds.

    Range: items <= 8

    Show child attributes
    • download_urlstring<uri>required

      A 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 <= 4096

    • file_idstringrequired

      Your 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 <= 200

    • mime_typestring

      Ignored: Layo reads the format from the file.

      Range: length <= 100

    • file_namestring

      Ignored.

      Range: length <= 255

  • imageIdsstring<uuid>[]

    Images you uploaded with create_upload and complete_upload. Up to 8 in all, with images.

    Range: items <= 8

Response

application/json

OK