Runware Apiのロゴ

Runware Api

コミュニティ
LayrKits
runware-api

Use when making, reviewing, debugging, or scripting Runware API requests. Follow Runware's raw REST/WebSocket request shape, authentication, UUID, async polling, error, retry, and model-selection rules.

概要

公開者LayrKits
リポジトリSprite-Pipeline
スキル名runware-api
スター
595
フォーク
61
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    LayrKitsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルRunware ApiをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/LayrKits/Sprite-Pipeline/tree/main/skills/runware-api
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LayrKits/Sprite-Pipeline.git /tmp/Sprite-Pipeline
mkdir -p .claude/skills
cp -r /tmp/Sprite-Pipeline/skills/runware-api .claude/skills/runware-api
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでRunware Apiを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にRunware Apiを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Runware Apiは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Runware API Skill

Use this skill when working with Runware requests in this repo. Prefer the current Runware docs for model-specific parameters, because available models and capabilities change often.

Docs To Check

  • Platform intro: https://runware.ai/docs/platform/introduction
  • Authentication: https://runware.ai/docs/platform/authentication
  • Task polling: https://runware.ai/docs/platform/task-polling
  • Errors: https://runware.ai/docs/platform/errors
  • Rate limits: https://runware.ai/docs/platform/rate-limits
  • Model search: https://runware.ai/docs/platform/model-search
  • Text to image guide: https://runware.ai/docs/guides/text-to-image

Request Rules

  • REST endpoint: https://api.runware.ai/v1.
  • WebSocket endpoint: wss://ws-api.runware.ai/v1.
  • Raw API request bodies are always a JSON array of task objects, even for one task.
  • Authenticate REST calls with Authorization: Bearer <API_KEY> whenever possible. Payload auth is allowed by docs but avoid embedding keys in saved JSON.
  • For WebSockets, the first message must be an authentication task containing the API key; subsequent messages use the same authenticated connection.
  • Every task that accepts taskUUID must use a fresh UUID v4. Preserve and log the UUID for debugging and async polling.
  • Match responses to requests by taskUUID and taskType; do not assume array order is enough.

Local Helper

This workspace has an ignored local helper at local/runware_request.py.

Examples:

bash
export RUNWARE_API_KEY="..."
python3 local/runware_request.py model-search --search "pixel art" --limit 5
python3 local/runware_request.py text-to-image --prompt "a small airship over a forest"
python3 local/runware_request.py raw request.json
python3 local/runware_request.py poll <taskUUID>

The helper prints the full JSON response, retries transient REST/capacity failures with exponential backoff, exits nonzero when errors is present, and uses only Python standard-library modules.

Async And Polling

  • For long-running operations, set "deliveryMethod": "async" when the model or workflow supports it.
  • Poll with a getResponse task:
json
[
  {
    "taskType": "getResponse",
    "taskUUID": "00000000-0000-4000-8000-000000000000"
  }
]
  • Use exponential backoff when polling. Start around 1-2 seconds, increase the delay, and add an initial delay for predictable long tasks such as video.
  • getResponse can return processing, success, or error; completed generations can appear before the whole task is finished.

Error And Retry Rules

  • Runware errors are returned in an errors array. Multiple-task requests can have some successful data entries and some scoped errors.
  • Log the full message and taskUUID; the UUID is important for support.
  • Retry only transient failures with exponential backoff: HTTP 429, HTTP 5xx, and capacity/provider codes such as timeoutProvider or providerRateLimitExceeded.
  • Do not blindly retry client errors such as invalid parameters, invalid API keys, missing balance, or permission failures.
  • Keep normal concurrency around 2-4 requests unless the user has a capacity agreement or the current docs say otherwise.

Image Generation Defaults

For imageInference text-to-image work:

  • Use taskType: "imageInference".
  • Include model, positivePrompt, width, height, and a UUID v4 taskUUID.
  • Use runware:101@1 only as a quick FLUX.1 Dev starting point; search or inspect model docs when style, cost, speed, or capability matters.
  • negativePrompt is useful for many diffusion models, but FLUX-style models may ignore it.
  • Check each model's recommended defaults for dimensions, steps, scheduler, CFG, and supported extras before assuming parameters are valid.

Secret Handling

  • Never commit API keys, .env files, generated request payloads containing keys, or downloaded private outputs.
  • Prefer RUNWARE_API_KEY in the shell environment.
  • If a command fails because the key is missing, ask the user to provide or set the key instead of inventing one.

よくある質問

AIスキル「Runware Api」では何ができますか?

Use when making, reviewing, debugging, or scripting Runware API requests. Follow Runware's raw REST/WebSocket request shape, authentication, UUID, async polling, error, retry, and model-selection rules.

TypingMindでRunware Apiを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Runware Apiはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにRunware Apiをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/LayrKits/Sprite-Pipeline/tree/main/skills/runware-apiを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Runware Apiを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Runware Apiは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもRunware Apiを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Runware Api」は無料ですか?

LayrKitsがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇