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 role of the message sender. Can be 'user' or 'assistant'.
The content of the message.
The type of content. Can be 'text' or 'image_url'.
The text content of the message, if type is 'text'.
The image URL, if type is 'image_url'.
The URL of the image.
The maximum number of tokens to generate in the completion.
Successful response
A completion object.