RUNLODE FOR DEVELOPERS

Use Runlode models
in your own app.

Create a personal API key, choose an available model and send a text request from your server. Your application uses the same AI balance as Playground.

From your applicationRunlode API
Your serverA prompt from your application
Personal API key
Available model
Shared wallet balance
POST/v1/chat/completions

Text response, token usage and a settled charge.

MAKE YOUR FIRST REQUEST

A small integration.
A complete response.

  1. Prepare AI balance

    Connect your wallet and redeem eligible mining credits in Wallet.

  2. Create a key

    Open Keys, choose a label and save the new secret on your server.

  3. Choose an available model

    Use the public ID returned by GET /v1/models. Terminal’s Models catalog shows rates and availability.

  4. Send and inspect

    Set an output limit within the model’s range. Keep a unique request ID and inspect the response and Usage.

Follow the API setup guide
curl -fsS https://api.runlode.xyz/v1/chat/completions \
  -H "Authorization: Bearer $RUNLODE_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: YOUR_UNIQUE_REQUEST_ID" \
  --data '{
    "model": "deepseek-v4.1-flash",
    "messages": [{"role": "user", "content": "Hello, Runlode."}],
    "max_tokens": 256
  }'

Use an available public model ID. Keep your key on your server.

A KEY FOR EACH INTEGRATION

Keep the secret
on your server.

Keys belong to the connected wallet. Label them for the applications you use, then inspect their request records in Usage. Every active key draws from the same wallet balance.

A new secret is displayed once. Existing secrets cannot be displayed again, and keys can be deleted from Terminal at any time.

Read the API key guide
Create and label

Name the key for the integration you intend to use.

Use server-side

Pass the key in the Authorization Bearer header.

Review and delete

Read Usage and delete a key when it is no longer needed.

A CLEAR REQUEST CONTRACT

Know what your
integration can send.

The API follows the OpenAI chat completions format, so existing SDKs, agents and tools work by changing the base URL and key.

PartSupported behaviorReference
AuthenticationRunlode Bearer key in a server-side request.Authentication
Model discoveryPublic model IDs from GET /v1/models.List models
MessagesEvery OpenAI message type: system, user, assistant and tool, text and image parts.Chat completions
ResponseJSON or streaming (SSE), tool calls, token usage and billing.Response format
Output controlAny parameter is passed to the model; max_tokens above the model limit is lowered to it.Request limits
ConcurrencySeveral requests at once per wallet, shared by Playground and keys.Request status

Whether a model accepts tools or images is decided by the model; its own error is returned unchanged.

BALANCE AND BILLING

Reserve first.
Settle from usage.

A maximum charge is reserved before dispatch. The completed request settles from your model’s rates and reported token counts, capped at that reservation.

The response includes billing.chargedMicros and billing.balanceMicros, in integer micro-dollars. Usage keeps the wallet’s Playground and key-labelled request records.

Understand credits and billing

RETRIES AND RECORDED REQUESTS

Give each request
a stable identity.

Send an Idempotency-Key for each logical request. Keep the same key, input and original API key when retrying it.

A retained completed response can be returned without another paid dispatch. Conflicting input and recorded requests without a replayable response return an error; check Usage before creating a new request.

Read the retry rules

KEEP BUILDING

The next detail
is already documented.

Use the guides for exact input limits, error recovery and request records.

YOUR NEXT STEP

Put your next idea to work.

Connect your wallet. Earn credits. Choose a model.