Xpersona
K

kimi

CLAWHUB · Unverified

Call the Kimi API (kimi-k3, kimi-k2.7-code, kimi-k2.6, kimi-k2.5) through RunAPI using OpenAI-compatible Chat Completions. Use for Kimi text chat, streaming, or an existing compatibility client that needs the conditional reference.

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1771k6pjxksnjws51x2htfjvd876syh:runapi-kimi
  1. Install using `clawhub skill install s1771k6pjxksnjws51x2htfjvd876syh:runapi-kimi` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/runapi-ai/runapi-kimi before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-runapi-ai-runapi-kimi/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

43,940 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: kimi
description: Call the Kimi API (kimi-k3, kimi-k2.7-code, kimi-k2.6, kimi-k2.5) through RunAPI using OpenAI-compatible Chat Completions. Use for Kimi text chat, streaming, or an existing compatibility client that needs the conditional reference.
documentation: https://runapi.ai/models/kimi.md
provider_page: https://runapi.ai/providers/moonshot-ai.md
catalog: https://runapi.ai/models.md
metadata:
  openclaw:
    homepage: https://runapi.ai/models/kimi
    primaryEnv: OPENAI_API_KEY
    requires:
      env: [OPENAI_API_KEY, OPENAI_BASE_URL]
    envVars:
    - {name: OPENAI_API_KEY, required: true, description: RunAPI API key used by OpenAI-compatible Kimi clients.}
    - {name: OPENAI_BASE_URL, required: true, description: Set to https://runapi.ai/v1 for Kimi on RunAPI.}
---

# Kimi on RunAPI

Use OpenAI-compatible Chat Completions at `https://runapi.ai/v1` as the primary protocol.

## Primary protocol recipe

### Authenticate

Set `OPENAI_API_KEY` to a RunAPI API key and `OPENAI_BASE_URL` to `https://runapi.ai/v1`.

### Send request

```python
from openai import OpenAI
client = OpenAI(api_key="YOUR_RUNAPI_TOKEN", base_url="https://runapi.ai/v1")
response = client.chat.completions.create(
    model="kimi-k3",
    messages=[{"role": "user", "content": "Explain this finding."}],
)
print(response.choices[0].message.content)
print(response.usage)
```

For long output, set `stream=True` and
`stream_options={"include_usage": True}`; consume through `[DONE]`.

### Verify result

Require final assistant content, `finish_reason`, and authoritative `usage`.
Use the returned final answer rather than raw reasoning content.

### Stop boundaries

Correct a rejected shape once using the structured error. Retry transport once
only before any response or Usage and when replay is safe. Record a terminal
error and stop without changing model or protocol. For `kimi-k3` and
`kimi-k2.7-code`, start with text history and final answers; add tools,
multimodal input, reasoning controls, cache controls, or continuation only when
the current RunAPI contract explicitly verifies the exact shape.

## Compatibility protocols

Load [compatibility protocols](references/compatibility-protocols.md) only when an existing client requires Anthropic Messages or Gemini contents.

## Supported models

| Model ID | Use when |
|---|---|
| `kimi-k3` | Current flagship basic text requests |
| `kimi-k2.7-code` | Dedicated coding requests |
| `kimi-k2.6` | Recent Kimi K2 chat workloads |
| `kimi-k2.5` | Kimi K2.5 compatibility |

## References

- <https://runapi.ai/models/kimi.md>
- <https://runapi.ai/providers/moonshot-ai.md>
- <https://runapi.ai/models.md>

_meta.json

{
  "ownerId": "kn70me4rk7jqjt92evshjeb5z18768g7",
  "slug": "runapi-kimi",
  "version": "0.2.3",
  "publishedAt": 1786520159354
}

references/compatibility-protocols.md

# Kimi compatibility protocols

Load this reference only for an existing Anthropic Messages or Gemini contents client.

For Messages, use base URL `https://runapi.ai`, a RunAPI key, a supported exact
model ID, `max_tokens`, and text messages. Verify final content, `stop_reason`,
and `usage`; streaming ends at `message_stop`.

For Gemini contents, set `RUNAPI_MODEL` to a supported exact model ID and use
`https://runapi.ai/v1beta/models/$RUNAPI_MODEL:generateContent`
or `streamGenerateContent` with `x-goog-api-key`. Verify candidates,
`finishReason`, and `usageMetadata`.

Apply one evidence-backed shape correction, at most one safe pre-response
transport retry, and no automatic model or protocol hopping.

skill-card.md

## Description:

Call the Kimi API (kimi-k3, kimi-k2.7-code, kimi-k2.6, kimi-k2.5) through RunAPI using OpenAI-compatible Chat Completions.

This skill is ready for commercial/non-commercial use.

## Publisher:

[runapi-ai](https://clawhub.ai/user/runapi-ai)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to configure Kimi access through RunAPI for text chat, streaming responses, coding workloads, and compatibility clients that require Anthropic Messages or Gemini contents shapes.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Requests may be sent with the wrong credential or endpoint, causing authentication failures or unintended provider routing.

Mitigation: Use a scoped RunAPI key and confirm OPENAI_BASE_URL is set to https://runapi.ai/v1 for OpenAI-compatible Kimi clients.

Risk: Unsupported request shapes, automatic model changes, or protocol hopping can produce unreliable behavior.

Mitigation: Follow the documented stop boundaries: correct one rejected shape, retry transport once only when safe, and stop without changing model or protocol automatically.

## Reference(s):

- [Kimi model documentation](https://runapi.ai/models/kimi.md)
- [Moonshot AI provider page](https://runapi.ai/providers/moonshot-ai.md)
- [RunAPI model catalog](https://runapi.ai/models.md)
- [Kimi on RunAPI homepage](https://runapi.ai/models/kimi)
- [Kimi compatibility protocols](references/compatibility-protocols.md)

## Skill Output:

**Output Type(s):** [Guidance, Code, Shell commands, Configuration]

**Output Format:** [Markdown with inline Python and endpoint configuration examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Includes OpenAI-compatible Chat Completions guidance plus conditional Anthropic Messages and Gemini compatibility notes.]

## Skill Version(s):

0.2.3 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to kimi and adjacent AI workflows.