Completions
post/v1/completions
Headers
X-Amz-Cf-Idstring nullable
CF-RAYstring nullable
X-delay-timenumber nullable
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
}
}