Skip to content
PALEPALE / DOCUMENTATION

Connect your app

Copy a streaming request for curl, Python, or TypeScript, using your own access details.

Before your first request

Activate access on Discord and receive your gateway address, device credential, and approved model IDs. Set PALEPALE_BASE_URL to the supplied address ending in /v1, PALEPALE_API_KEY to your device credential, and PALEPALE_MODEL to an ID from GET /v1/models.

Use your existing client

In a client that supports chat completions, change the base URL and API key, then choose an approved model. Python and TypeScript examples use their OpenAI SDK packages. Install the package in your own project before running the example.

The examples below stream a short request. They are setup templates; this website does not execute them or contain a live API key. See the API reference for usage events and errors.

Coding tools

OpenCode supports a custom provider. For the Palepale client, set PALEPALE_API_URL to the gateway origin without /v1; that client appends its own endpoint paths. Set PALEPALE_API_KEY to your issued credential.

Check the result

Start with a short prompt. Confirm you receive text, a finish reason, and final usage. If a request fails, keep its error type and request ID for support. Troubleshooting.

Need a hand?

Open Palepale Discord for activation or account support. Compare API offers or choose a plan.

REQUEST EXAMPLES

Make your first request.
Use your own access details.

Set the address, key, and model from your activation details. These examples stream one short request.

Get API access
first-request.sh
# Set these to the details supplied at activation.# PALEPALE_BASE_URL ends with /v1; PALEPALE_MODEL is a live catalog ID.curl -N "$PALEPALE_BASE_URL/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}}"