Talk

GPT-4 Vision API Image URL Setup

From Wikiprompt, the free prompt encyclopedia

@levelsio
Contributed by@levelsioXSource

Dec 18, 2023

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

Categories:coding| twitter| gpt-4-vision| api

Talk