Completion
Create completion
Generate text completions for a given prompt using a language, code, or image model.
post/completions
Request body
Example request
{
"prompt": "<s>[INST] What is the capital of France? [/INST]",
"logit_bias": {
"105": 21.4,
"1024": -10.5
},
"seed": 42
}Response
200
Example response
{
"choices": [
{
"text": "The capital of France is Paris. It's located in the north-central part of the country and is one of the most populous and visited cities in the world, known for its iconic landmarks like the Eiffel Tower, Louvre Museum, Notre-Dame Cathedral, and more. Paris is also the capital of the Île-de-France region and is a major global center for art, fashion, gastronomy, and culture."
}
],
"prompt": [
{
"text": "<s>[INST] What is the capital of France? [/INST]"
}
]
}