Use models to extract information from images.
https://api.inference.net/v1
.
In the following examples, we are reading the API key from the environment variable INFERENCE_API_KEY
.
image/png
)content
array of a user messageHeight | Width | Tokens | Note |
---|---|---|---|
32px | 32px | 1,601 | Images smaller than 560x560 are still considered 560x560 |
560px | 560px | 1,601 | |
1120px | 1120px | 6,404 | 6,404 is the approximate maximum token usage of a single image |