AIGC2D官方地址为:https://www.aigc2d.com
API接口地址为:https://api.aigc2d.com
Authorization: Bearer ********************
{
"model": "text-davinci-003",
"prompt": "Say this is a test"
}
curl --location --request POST 'https://api.aigc2d.com/v1/completions' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "text-davinci-003",
"prompt": "Say this is a test"
}'
{
"id": "cmpl-uqkvlQyYK7bGYrRHQ0eXlWi7",
"object": "text_completion",
"created": 1589478378,
"model": "text-davinci-003",
"choices": [
{
"text": "\n\nThis is indeed a test",
"index": 0,
"logprobs": null,
"finish_reason": "length"
}
],
"usage": {
"prompt_tokens": 5,
"completion_tokens": 7,
"total_tokens": 12
}
}