Completions
Generate legacy text completion from prompt
client.completions.create(CompletionCreateParamsbody, RequestOptionsoptions?): Completion { id, choices, created, 4 more } | Stream<Completion { id, choices, created, 4 more } >
POST/v5/completions
ModelsExpand Collapse
Completion { id, choices, created, 4 more }
Completion { id, choices, created, 4 more }
CompletionUsage { completion_tokens, prompt_tokens, total_tokens, 2 more } Usage statistics for the completion request.
CompletionUsage { completion_tokens, prompt_tokens, total_tokens, 2 more }
Usage statistics for the completion request.