cURL
curl --request POST \ --url https://api.optimix.app/v1/completion/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "messages": [ { "role": "user", "content": "<string>" } ], "prompt_id": "<string>" }'
{ "data": { "id": "<string>", "output": "<string>" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Input for Completion
The body is of type object.
object
Successful Completion Response
The response is of type object.