Completions
Headers
Request body
Example request
{
"model": "llama3.1-70b",
"prompt": "Micheael Jordan is born in ",
"stream": true
}Response
Successful Response
Example response
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"text": "Generative AI is a subfield of artificial intelligence that focuses on generating new, original content, such as images, music, text, or videos. These models are trained on large datasets and learn to recognize patterns, relationships, and structures within the data, allowing them to generate new content that is similar in style, tone, or characteristics to the training data. \n \n Generative AI models can be categorized into two main types: Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs). GANs consist of two neural networks: a generator and a discriminator. The generator creates new content, while the discriminator evaluates the generated content and tells the generator whether it's realistic or not. VAEs are neural networks that learn to compress and reconstruct data. \n \n Generative AI has numerous applications across various industries, including art and design, content generation, data augmentation, and recommendation systems. Some examples of Generative AI in action include Deep Dream Generator, Amper Music, and DALL-E. \n \n In summary, Generative AI is a powerful technology that enables the creation of new, original content using machine learning models. It has the potential to revolutionize various industries and create new opportunities for artists, designers, and content creators."
}
],
"created": 1721088719,
"id": "response_1721",
"model": "llama3.1-8b",
"object": "text_completion",
"system_fingerprint": "88719",
"time_info": {
"completion_time": 0.44,
"prompt_time": 0.02,
"queue_time": 0,
"total_time": 0.46
},
"usage": {
"completion_tokens": 1020,
"prompt_tokens": 40,
"total_tokens": 1060
}
}Changes
Changed in 1 of the 51 revisions of this API.11518
- ▲
removed
subschema #3subschema #4from thepromptrequest propertyanyOflistrequest-property-any-of-removed
- ▲
removed the enum value
hiddenof the request propertyreasoning_formatrequest-property-enum-value-removed
- ▲
removed the enum value
noneof the request propertyreasoning_formatrequest-property-enum-value-removed
- ▲
removed the enum value
parsedof the request propertyreasoning_formatrequest-property-enum-value-removed
- ▲
removed the enum value
rawof the request propertyreasoning_formatrequest-property-enum-value-removed
- ▲
removed the enum value
text_parsedof the request propertyreasoning_formatrequest-property-enum-value-removed
- ▲
the
reasoning_formatrequest property type/format changed fromstring/to/request-property-type-changed
- ▲
response property
anyOf[subschema #1: CompletionResponse]/time_info/anyOf[subschema #1: TimeInfo]/completion_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
anyOf[subschema #1: CompletionResponse]/time_info/anyOf[subschema #1: TimeInfo]/prompt_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
anyOf[subschema #1: CompletionResponse]/time_info/anyOf[subschema #1: TimeInfo]/queue_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
anyOf[subschema #1: CompletionResponse]/time_info/anyOf[subschema #1: TimeInfo]/total_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ●
the
max_tokens/anyOf[subschema #1]/request property's min was set to-1.00request-property-min-set
- ●
the
min_tokens/anyOf[subschema #1]/request property's min was set to-1.00request-property-min-set
- ●
the
n/anyOf[subschema #1]/request property's min was set to1.00request-property-min-set
- ●
removed the optional property
anyOf[subschema #1: CompletionResponse]/choices/items/reasoning_logprobsfrom the response with the200statusresponse-optional-property-removed
- ●
added the new
tool_callsenum value to theanyOf[subschema #1: CompletionResponse]/choices/items/finish_reason/anyOf[subschema #1]/response property for the response status200response-property-enum-value-added
- ○
added the new optional request property
prompt_cache_keynew-optional-request-property
- ○
added the media type
application/msgpackto the request bodyrequest-body-media-type-added
- ○
added the media type
application/vnd.msgpackto the request bodyrequest-body-media-type-added
- ○
added the media type
application/x-msgpackto the request bodyrequest-body-media-type-added
- ○
added
ReasoningFormatsubschema #2to thereasoning_formatrequest propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #3subschema #4to thepromptrequest propertyanyOflistrequest-property-any-of-added
- ○
the
reasoning_formatrequest property default valueparsedwas removedrequest-property-default-value-removed
- ○
request property
reasoning_formatdeprecatedrequest-property-deprecated
- ○
the
temperature/anyOf[subschema #1]/request property's max was increased from1.50to2.00request-property-max-increased
- ○
removed
CompletionChunkResponsefrom the response bodyanyOflist for the response status200response-body-any-of-removed
- ○
added the optional property
anyOf[subschema #1: CompletionResponse]/time_info/anyOf[subschema #1: TimeInfo]/createdto the response with the200statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #1: CompletionResponse]/usage/anyOf[subschema #1: Usage]/completion_tokens_details/anyOf[subschema #1: CompletionTokensDetails]/reasoning_tokensto the response with the200statusresponse-optional-property-added
- ○
added the optional property
anyOf[subschema #1: CompletionResponse]/usage/anyOf[subschema #1: Usage]/image_tokensto the response with the200statusresponse-optional-property-added
- ○
the
completion_timeresponse's property default value0was removed for the status200response-property-default-value-removed
- ○
the
prompt_timeresponse's property default value0was removed for the status200response-property-default-value-removed
- ○
the
queue_timeresponse's property default value0was removed for the status200response-property-default-value-removed
- ○
the
total_timeresponse's property default value0was removed for the status200response-property-default-value-removed
- ○
removed the
text_completionenum value from theanyOf[subschema #1: CompletionResponse]/objectresponse property for the response status200response-property-enum-value-removed
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
Of the 51 revisions, 49 have no diff computed.