GPT-4 Vision API Image URL Setup
From Wikiprompt, the free prompt encyclopedia
GPT-4 Vision API Image URL Setup A code snippet showing how to include image URLs in a GPT-4 Vision API call, with a system prompt for moderation.
Prompt ContentSave
🌐
if(image) {
you set the model to gpt-4-vision-preview and add the image URLs as
'type' => 'image_url',
'image_url' => array(
'url' => {urlToImageOnTelegram}
)
along with the chat message and the system prompt (you're a moderator and rules etc) before that
}
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with coding. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
References
- Category: coding Prompts
- Source: https://x.com/levelsio/status/1736835750740529304
Talk
0 comments