Chat
Headers
Request body
Example request
{
"max_completion_tokens": -1,
"messages": [
{
"content": "You are a helpful assistant running on a CS-3 hardware at Cerebras Systems",
"role": "system"
},
{
"content": "What is Generative AI?",
"role": "user"
}
],
"min_tokens": 1000,
"model": "llama3.1-8b",
"seed": 0,
"stop_sequence": null,
"stream": false,
"temperature": 0,
"top_p": 1
}Response
Successful Response
Example response
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "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.",
"role": "assistant"
}
}
],
"created": 1721088719,
"id": "response_1721",
"model": "llama3.1-8b",
"object": "chat.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,
"prompt_tokens_details": {
"cached_tokens": 1020
},
"total_tokens": 1060
}
}Changes
Changed in 1 of the 51 revisions of this API.331430
- ▲
removed
subschema #1from therequest propertyanyOflistrequest-property-any-of-removed
- ▲
the request property
became requiredrequest-property-became-required
- ▲
removed the enum value
contentof the request property//request-property-enum-value-removed
- ▲
removed the enum value
json_objectof the request property///request-property-enum-value-removed
- ▲
removed the enum value
json_schemaof the request property///request-property-enum-value-removed
- ▲
removed the enum value
textof the request property/////request-property-enum-value-removed
- ▲
removed the enum value
textof the request property///request-property-enum-value-removed
- ▲
request property
list-of-types was narrowed by removing typesnullfrom media typeapplication/jsonrequest-property-list-of-types-narrowed
- ▲
the
request property's minItems was increased to1request-property-min-items-increased
- ▲
the response property
///became optional for the statusresponse-property-became-optional
- ▲
the response property
/////became optional for the statusresponse-property-became-optional
- ▲
the response property
/////became optional for the statusresponse-property-became-optional
- ▲
the response property
////////became optional for the statusresponse-property-became-optional
- ▲
the response property
////////became optional for the statusresponse-property-became-optional
- ▲
the response property
///////became optional for the statusresponse-property-became-optional
- ▲
the response property
/////became optional for the statusresponse-property-became-optional
- ▲
the response property
/////became optional for the statusresponse-property-became-optional
- ▲
the response property
/became optional for the statusresponse-property-became-optional
- ▲
the response property
/became optional for the statusresponse-property-became-optional
- ▲
the response property
//////became optional for the statusresponse-property-became-optional
- ▲
the response property
//////became optional for the statusresponse-property-became-optional
- ▲
the response property
//////became optional for the statusresponse-property-became-optional
- ▲
the response property
//////became optional for the statusresponse-property-became-optional
- ▲
response property
anyOf[subschema #1: ChatCompletionResponse]/choices/items/finish_reasonlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
anyOf[subschema #1: ChatCompletionResponse]/choices/items/message/tool_calls/anyOf[subschema #1]/items/function/argumentslist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
anyOf[subschema #1: ChatCompletionResponse]/choices/items/message/tool_calls/anyOf[subschema #1]/items/function/namelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
anyOf[subschema #1: ChatCompletionResponse]/choices/items/message/tool_calls/anyOf[subschema #1]/items/idlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
anyOf[subschema #2: ChatChunkResponse]/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 #2: ChatChunkResponse]/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 #2: ChatChunkResponse]/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 #2: ChatChunkResponse]/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
/response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
/response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ●
the
/request property's min was set to-1.00request-property-min-set
- ●
the
/request property's min was set to-1.00request-property-min-set
- ●
the
/request property's min was set to-1.00request-property-min-set
- ●
the
/request property's min was set to-1.00request-property-min-set
- ●
the
/request property's min was set to1.00request-property-min-set
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-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 to the
request propertyanyOflistrequest-property-any-of-added
- ○
the
/request property's max was increased from1.50to2.00request-property-max-increased
- ○
added the optional property
///////to the response with the statusresponse-optional-property-added
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
- ○
added the optional property
/////to the response with the statusresponse-optional-property-added
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
- ○
added
subschema #2to the/response propertyanyOflist for the response statusresponse-property-any-of-added
- ○
added
subschema #2to the/response propertyanyOflist for the response statusresponse-property-any-of-added
- ○
the
response property const valuechat.completion.chunkwas added for the statusresponse-property-const-added
- ○
the
response's property default value0was removed for the statusresponse-property-default-value-removed
- ○
the
response's property default value0was removed for the statusresponse-property-default-value-removed
- ○
the
response's property default value0was removed for the statusresponse-property-default-value-removed
- ○
the
response's property default value0was removed for the statusresponse-property-default-value-removed
- ○
response property
anyOf[subschema #2: ChatChunkResponse]/choices/anyOf[subschema #1]/items/delta/anyOf[subschema #1: ChunkResponseMessage]/tokensdeprecatedresponse-property-deprecated
- ○
response property
anyOf[subschema #2: ChatChunkResponse]/choices/anyOf[subschema #1]/items/textdeprecatedresponse-property-deprecated
- ○
response property
anyOf[subschema #2: ChatChunkResponse]/choices/anyOf[subschema #1]/items/tokensdeprecatedresponse-property-deprecated
- ○
removed the
chat.completionenum value from the/response property for the response statusresponse-property-enum-value-removed
- ○
removed the
chat.completion.chunkenum value from the/response property for the response statusresponse-property-enum-value-removed
- ○
removed the
content_filterenum value from the///response property for the response statusresponse-property-enum-value-removed
- ○
removed the
functionenum value from the///////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
functionenum value from the/////////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
lengthenum value from the///response property for the response statusresponse-property-enum-value-removed
- ○
removed the
stopenum value from the///response property for the response statusresponse-property-enum-value-removed
- ○
removed the
text_completionenum value from the/response property for the response statusresponse-property-enum-value-removed
- ○
removed the
tool_callsenum value from the///response property for the response statusresponse-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.