Skip to main content
POST

Authorizations

Authorization
string
header
required

Use a JWT or abliteration.ai API key as a Bearer token.

Headers

X-Free-Tier
enum<string>

Set to true to use the single anonymous free request.

Available options:
true

Body

application/json
model
string
required

Model id (e.g. abliterated-model).

messages
object[]
required

Non-empty array of message objects. Each has role (user or assistant) and content (string or content-block array).

Minimum array length: 1
max_tokens
integer

Maximum number of tokens to generate.

Required range: x >= 1
temperature
number

Sampling temperature.

Required range: 0 <= x <= 2
stream
boolean
default:false

Enable Server-Sent Events streaming.

system

System prompt. Can be a string or an array of content blocks.

flagged_categories
string[]

Optional moderation categories to block. Supported: harassment, hate, illicit, sexual. Self-harm and sexual/minors are always blocked.

Response

Message response

id
string
required

Unique message id (e.g. msg_01XFDUDYJgAACzvnptvVoYEL).

type
enum<string>
required
Available options:
message
role
enum<string>
required
Available options:
assistant
model
string
required
content
object[]
required
stop_reason
string | null

Reason the model stopped generating (e.g. end_turn, max_tokens).

stop_sequence
string | null
usage
object
remaining_credits
integer | null

User's remaining credit balance after this call.

estimated_credits_used
integer

Credits consumed by this call.

estimated_cost_usd
number

Estimated cost in USD.

Last modified on May 2, 2026