cURL
curl --request POST \ --url https://api.zerobot.ai/v1/chat/completions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "assistant_id": "<string>", "thread_id": "<string>", "messages": [ { "role": "<string>", "content": [ { "type": "<string>", "text": "<string>", "image_url": { "url": "<string>" } } ] } ], "max_tokens": 123 } '
{ "completion": {} }
Creates a completion for the provided prompt and parameters.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the assistant to use to execute this run.
The ID of the thread to use to execute this run.
A list of messages to include in the completion request.
Show child attributes
The maximum number of tokens to generate in the completion.
Successful response
A completion object.