4Zapi调用AI识别图片接口 中发帖

import requests 
import json
url = “https://zzzzapi.com/v1/chat/completions”
payload = json.dumps({
“model”: “gpt-4o”,
“messages”: [
{
“role”: “system”,
“content”: “You are a helpful assistant.”
},
{
“role”: “user”,
“content”: [
{
“type”: “text”,
“text”: “这张图片里有什么?请详细描述。”
},
{
“type”: “image_url”,
“image_url”: {
“url”: “https://lsky.zhongzhuan.chat/i/2024/10/17/6711068a14527.png”...