English
cURL
curl --request POST \ --url https://dream-gateway.livepeer.cloud/llm \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "messages": [ { "role": "<string>", "content": "<string>" } ], "model": "", "temperature": 0.7, "max_tokens": 256, "top_p": 1, "top_k": -1, "stream": false } '
{ "id": "<string>", "model": "<string>", "created": 123, "usage": { "prompt_tokens": 123, "completion_tokens": 123, "total_tokens": 123 }, "choices": [ { "index": 123, "finish_reason": "", "delta": { "role": "<string>", "content": "<string>" }, "message": { "role": "<string>", "content": "<string>" } } ] }
Generate text using a language model.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show child attributes
Successful Response
Was this page helpful?