Back to all functions
Query the OpenAI Vision API with an Image URL
Easily query the OpenAI Vision API with an image URL and map the 'response' output variable to a variable you have set on your Voiceflow project.
Created By
FlowBridge
INPUT VARIABLES
The maximum amount of tokens you want to set for the OpenAI API (300 - 500 is a good start)
Your OpenAI API token (Found on platform.openai.com)
What you want to ask the Vision API (i.e: What is in this image?)
The URL to the image in question
OUTPUT VARIABLES
This is the response from the OpenAI Vision API
PATHS
If something goes wrong with querying the API or running the function, it will use this path
If the query was made successfully, this path is chosen. You can use the 'response' output variable to do something with the result
Function Walkthrough
Explore More Functions
Build and submit a Function to have it featured in the community.