Anthropic-compatible

Create a message

Send a conversation in the Anthropic Messages format and get Pareto's reply. Set stream: true for server-sent events in the Anthropic streaming format.

post/messages

Request

  • Base URL: https://api.unbiased.ai/v1
  • URL: https://api.unbiased.ai/v1/messages
  • Auth: one of:
    • HTTP bearer
    • API key in header x-api-key

Request body

model'pareto' required

The model string. Always send pareto.

max_tokensinteger required
streamboolean
temperaturenumber
toolsobject[]

Tool definitions in the Anthropic format.

Response

The message. With stream: true, a text/event-stream of events instead.

idstring required
type'message' required
role'assistant' required
modelstring
contentobject[] required
stop_reasonstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.