Get an approximate text prompt, with style, matching an image. (Optimized for stable-diffusion (clip ViT-L/14))

  • Public
  • 2.4M runs

Run img2prompt with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
Input image

Output schema

The shape of the response you’ll get when you run this model with an API.

{'title': 'Output', 'type': 'string'}
Example API response
View prediction
 'a cat wearing a suit and tie with green eyes, a stock photo by Hanns Katz, '
 'pexels, furry art, stockphoto, creative commons attribution, quantum '