Documentation

API

Use Chatular from your own code. Anyone with an account can create a key. There are three calls in two APIs:

CallAPIAddress
Text to textchatular-chat-apiPOST /api/chat
Text to imagechatular-image-apiPOST /api/image/text-to-image
Image to imagechatular-image-apiPOST /api/image/image-to-image

One key works for all three, on the same account and limits as the app. For a chat assistant on your website, the Agent has its own guide, linked below.

Your API key

1
Open Settings › API and create a key.
2
Copy it right away: it is shown only once.
3
Send it with every request, from your server. A key acts as your account, so never put it in a web page.
Authorization: Bearer YOUR_API_KEY

The address is https://api.chatular.ai.

Errors and limits

400Something is missing from the request, or the message breaks the usage policy.
401The key is missing, wrong or revoked.
429Too many requests (wait Retry-After seconds), or your token allowance is used up until it resets.
503The chatbot is paused, or its owner's token allowance has run out.
Tip: For a chat assistant on your website you don't need to write code: see Website chatbots.