Thanks to visit codestin.com
Credit goes to runapi.ai

OPENCLAW GUIDE

Use RunAPI in OpenClaw.

RunAPI works as an OpenAI-compatible endpoint for OpenClaw. Paste the setup prompt and the agent writes its own config — provider ID stays local, the model reference maps to runapi/gpt-5.5, and the key lives in RUNAPI_API_KEY.

Copy prompt · one RunAPI key · model catalog links
Configure this OpenClaw workspace to use RunAPI.

Requirements:
- Read the API key from RUNAPI_API_KEY. Do not hardcode the key.
- Add a model provider named runapi.
- Use baseUrl "https://runapi.ai/v1".
- Use api "openai-completions".
- Register provider-local model id "gpt-5.5" with display name "RunAPI GPT 5.5".
- Set the default model to "runapi/gpt-5.5" while keeping existing providers available.
- After editing config, run `openclaw models status` and confirm `runapi/gpt-5.5` appears.
- If RUNAPI_API_KEY is missing, ask me to set it before starting OpenClaw.
{
  agents: {
    defaults: {
      model: { primary: "runapi/gpt-5.5" },
      models: {
        "runapi/gpt-5.5": { alias: "RunAPI GPT 5.5" },
      },
    },
  },
  models: {
    mode: "merge",
    providers: {
      runapi: {
        baseUrl: "https://runapi.ai/v1",
        apiKey: "${RUNAPI_API_KEY}",
        api: "openai-completions",
        models: [
          {
            id: "gpt-5.5",
            name: "RunAPI GPT 5.5",
            reasoning: false,
            input: ["text"],
            contextWindow: 128000,
            maxTokens: 8192,
          },
        ],
      },
    },
  },
}
export RUNAPI_API_KEY="runapi_xxx"
openclaw models status
openclaw models set runapi/gpt-5.5
openclaw
Copy prompt first /v1
SETUP

Install RunAPI in OpenClaw with a prompt

1

Paste the setup prompt

Copy the prompt from the first tab into OpenClaw. It tells OpenClaw to read RUNAPI_API_KEY, add the runapi provider, and keep existing providers available.

Copy prompt
2

Review the generated config

OpenClaw should add gpt-5.5 as the provider-local model ID, then select it through the provider-prefixed reference runapi/gpt-5.5.

runapi/gpt-5.5
3

Verify the selection

Run openclaw models status, switch to the RunAPI model, and start an OpenClaw session. If the model does not appear, confirm the allowlist includes runapi/gpt-5.5.

openclaw models status
REFERENCE

Configuration fields

Field Value Purpose
baseUrl https://runapi.ai/v1 Points OpenClaw at RunAPI's OpenAI-compatible API surface.
apiKey ${RUNAPI_API_KEY} Reads the RunAPI API key from the environment.
api openai-completions Uses the Chat Completions adapter expected by OpenAI-compatible endpoints.
agents.defaults.model.primary runapi/gpt-5.5 Selects the RunAPI model as the default model for new OpenClaw sessions.
BEYOND LLMS

Same API key. Images, video, and music.

OpenClaw users typically install a separate GitHub skill for each modality — one for image generation, another for video, a third for music. With RunAPI, the same RUNAPI_API_KEY you already configured for chat also calls 113+ models across image, video, and music endpoints. No extra skills to install.

Image Generation

Generate and edit images through Flux Kontext, Imagen 4, Seedream, GPT Image, and Nano Banana. Send a prompt to the same /v1 endpoint — RunAPI routes to the model you specify.

Browse image models

Video Generation

Create video from text or images with Kling 3.0, Seedance 2.0, Veo 3, and Wan 2.7. Same task lifecycle, same callback format, same API key.

Browse video models

Music Generation

Generate songs with Suno v4 through v5.5. Pass lyrics, style, and duration — RunAPI returns audio URLs through the standard task polling flow.

Browse music models
MODEL GUIDES

Use any model in OpenClaw

Each guide shows the prompt, curl command, parameters, and FAQ for calling a specific model through RunAPI inside OpenClaw.

FAQ

OpenClaw setup questions

Use one RunAPI key inside OpenClaw.

Browse the model catalog, pick the model ID, and add it to your OpenClaw provider config.