v1
latestOpenAPI 3.0.32026-07-2644164161.5 KBGeneration API
Text generation
Generate text completions using the specified model and prompt. This endpoint is useful for text generation tasks that don't require conversational context.
post/v1/completions
Request body
Example request
{
"model": "palmyra-x5",
"prompt": "Write me an SEO article about...",
"max_tokens": 150,
"temperature": 0.7,
"top_p": 0.9,
"stop": [
"."
],
"best_of": 1,
"random_seed": 42,
"stream": false
}Response
Successful response
Example response
{
"choices": [
{
"text": "Sure! Here's a search engine optimized article about...",
"log_probs": null
}
],
"model": "palmyra-x5"
}