AIs

Interact with various LLMs models with Anthropic compatible

post/v1/messages

Request body

modelstring

The LLM model of the AI, see /v1/models for more

max_tokensnumber

max_tokens field required

Example request

{
  "model": "gpt-5-nano",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 1000
}

Response

Success - AI response retrieved successfully.

stop_reasonstring

Indicates why the response was stopped, e.g., 'end_turn' for normal completion

stop_sequencestring

Indicates why the response was stopped, e.g., 'end_turn' for normal completion

Example response

{
  "content": [
    {
      "type": "text",
      "content": "Blablabla, shut the fuck up"
    }
  ],
  "stop_reason": "end_turn",
  "usage": {
    "input_tokens": 1,
    "output_tokens": 10
  }
}

Changes

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