Authorization: Bearer ********************
{
"model": "gpt-4o-all",
"messages": [
{
"role": "user",
"content": "画一只猫"
}
]
}
curl --location --request POST 'https://api.ecovai.cn/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-4o-all",
"messages": [
{
"role": "user",
"content": "画一只猫"
}
]
}'
{
"id": "chatcmpl-89DzXhJ3dvHIbnUADjqaYgp5vVyf1",
"model": "gpt-4o-all",
"object": "chat.completion",
"created": 1730454367,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "{\"prompt\":\"A realistic cat sitting gracefully, with a calm and curious expression, detailed fur, and expressive eyes. The background is soft and neutral to keep the focus on the cat. The cat is in a natural and comfortable position, conveying a peaceful demeanor. The lighting is soft to enhance the details of the fur and the texture.\",\"size\":\"1024x1024\"}\n\n\n\n[下载1](https://filesystem.site/cdn/download/20241101/r8OQfXQsP4uuv1lzIDEBTjVj5aVap6.webp)\n\n这里是一只优雅的小猫形象,具有温和、好奇的表情,栩栩如生。"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 11,
"completion_tokens": 183,
"total_tokens": 194
}
}