Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 2.79 KB

README.md

File metadata and controls

54 lines (34 loc) · 2.79 KB

HEX Uncensored AI API quickstart

HEX Uncensored AI API Quickstart

Connect your app to the HEX Uncensored AI API. Start with an OpenAI-compatible chat request to GLM 5.3 Abliterated using curl, Python, or Node.js. The examples use a prepaid HEX balance and read your key from the HEX_API_KEY environment variable.

Get started with HEX · Browse the model catalog · Set up OpenCode Desktop

Find a model

Create a key in your HEX account and set HEX_API_KEY in your shell. Keep it on your server or development machine.

curl --fail-with-body https://api.hexapi.io/v1/models \
  -H "Authorization: Bearer $HEX_API_KEY"

Make a chat request

curl --fail-with-body https://api.hexapi.io/v1/chat/completions \
  -H "Authorization: Bearer $HEX_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{"model":"glm-5.3-abliterated","messages":[{"role":"user","content":"In one sentence, explain why a development server uses a local port."}],"max_tokens":256}'

The reply text is in choices[0].message.content. To use an OpenAI-compatible client, set its base URL to https://api.hexapi.io/v1 and select an ID returned by the model list.

Run the Python example with python chat.py or the Node.js example with node chat.mjs using Node.js 22 or later. Pass a model ID as the first argument to select a different model. Each run submits a billable request.

Choose a model for your workflow

Model guide Try this first
GLM 5.3 Abliterated API Turn a bug report into a structured JSON ticket.
DeepSeek V4 Pro Uncensored API Stream a release checklist into a Node.js terminal.

If a request fails

Check that the key belongs to the HEX account you intend to use, confirm the account has an available balance, and copy the model ID from the catalog. For a persistent server error, check the status page and include the time and request ID when contacting HEX support.

API reference · Models · Pricing · Status · Support

Discover image and video operations

Use the media catalog to see the models, operation schemas and prices available to your account. Review the quote before starting a media job.

curl --fail-with-body https://api.hexapi.io/v1/media/catalog \
  -H "Authorization: Bearer $HEX_API_KEY"

See media examples · Open Showroom