Skip to content
Copy a prompt for your AI tool. Keep your key local.
PALEPALE / DOCUMENTATION

Start with Palepale

Create an account, issue an inference key, and connect your app.

Create an account and key

  1. Create an account. Save the po_ owner credential when it appears. You'll use it to manage the account.
  2. In Your account, create a pk_ inference key. To create one through the API, send the owner credential as a Bearer token to POST /v1/account/keys with {"label":"my-app"}. Save the returned key locally.
  3. Add wallet credit in Billing when payments are available. Check payment options and limits.

Keep both credentials out of source code, frontend bundles and AI chats.

Make your first request

Use https://api.palepale.tech/v1 as your SDK base URL and set PALEPALE_API_KEY to your inference key. Disable automatic SDK retries.

Get an available model ID from Models or GET /v1/models. Check GET /v1/models/{id} for that model's limits and capabilities. Send the model ID, messages and an output limit to POST /v1/chat/completions. Client setup and examples.

An HTTP 200 stream can still report an error before [DONE]. After an interruption, check Usage before sending another request. With the owner credential, use GET /v1/account/wallet for funds and GET /v1/account/usage for charges. One dollar equals 1,000,000 microdollars. API reference.

Need a hand?

Open Palepale Discord for account support. Compare model rates or read about wallet billing.

REQUEST EXAMPLES

Make your first request.
Use your own access details.

Set your local key and catalog model ID. These examples need streaming support.

Get API access
first-request.sh
# Set PALEPALE_API_KEY locally; choose a catalog ID with streaming enabled.curl -N "https://api.palepale.tech/v1/chat/completions" \  -H "Authorization: Bearer $PALEPALE_API_KEY" \  -H "Content-Type: application/json" \  -d "{\"model\":\"$PALEPALE_MODEL\",\"messages\":[{\"role\":\"user\",\"content\":\"Hello\"}],\"stream\":true,\"stream_options\":{\"include_usage\":true}}"