CompletionsResponsePayload

CompletionsResponsePayload
CompletionsResponsePayload
JSON Example
{
    "choices": [
        {
            "finish_reason": "length",
            "index": 0,
            "text": "Hello! I am an AI Assistant!"
        }
    ],
    "created": 1589478378,
    "id": "cmpl-123",
    "model": "gpt-4",
    "object": "text_completion",
    "usage": {
        "completion_tokens": 7,
        "prompt_tokens": 5,
        "total_tokens": 12
    }
}
string
id
Optional

id

string
object
Optional
Constraints: default: text_completion

object

integer
created
Required

created

string
model
Required

model

choices
Required

choices

usage
Required

usage